Adonthell
0.4
Main Page
Related Pages
Classes
Files
File List
File Members
win_font.h
1
/*
2
(C) Copyright 2000 Joel Vennin
3
Part of the Adonthell Project http://adonthell.linuxgames.com
4
5
This program is free software; you can redistribute it and/or modify
6
it under the terms of the GNU General Public License.
7
This program is distributed in the hope that it will be useful,
8
but WITHOUT ANY WARRANTY.
9
10
See the COPYING file for more details
11
*/
12
13
#ifndef _WIN_FONT_H_
14
#define _WIN_FONT_H_
15
16
#include <iostream>
17
#include <stdlib.h>
18
#include <string.h>
19
20
#if __GNUG__ > 2
21
#include <ext/hash_map>
22
using
__gnu_cxx::hash_map;
23
#else
24
#include <hash_map>
25
#endif
26
27
#include "win_types.h"
28
#include "
image.h
"
29
30
using namespace
std;
31
32
class
win_font
{
33
34
protected
:
35
void
erase();
36
37
hash_map<u_int16, image*> glyphs;
38
39
u_int8
height_;
40
u_int8
length_;
//just for space bar
41
42
public
:
43
44
win_font
(
char
*);
45
46
win_font
(
win_font
&);
47
48
win_font
();
49
50
virtual
~
win_font
();
51
52
void
load(
char
*);
53
54
// void load_font(char *);
55
56
virtual
bool
in_table(
u_int16
tmp);
57
58
virtual
image
& operator[](
u_int16
);
59
60
//win_font & operator=(win_font &);
61
62
u_int16
height(){
return
height_;}
63
64
u_int16
length(){
return
length_;}
65
66
image
* cursor;
67
68
};
69
70
#endif
71
src
win_font.h
Generated by
1.8.3.1