UGDK
0.4.1
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
font.h
Go to the documentation of this file.
1
#ifndef HORUSEYE_FRAMEWORK_FONT_H_
2
#define HORUSEYE_FRAMEWORK_FONT_H_
3
4
#include <string>
5
#include <
ugdk/math/vector2D.h
>
6
#include <
ugdk/graphic.h
>
7
8
9
namespace
ugdk {
10
namespace
graphic {
11
12
class
Font
{
13
public
:
14
enum
IdentType
{
15
LEFT
,
16
CENTER
,
17
RIGHT
18
};
19
Font
(
Texture
** letters,
int
fontsize,
char
ident
,
bool
fancy);
20
~Font
();
21
int
id
() {
return
id_; }
22
IdentType
ident
() {
return
ident_; }
23
Vector2D
GetLetterSize
(
wchar_t
letter);
24
bool
IsFancy
() {
return
fancy_;}
25
26
private
:
27
int
id_;
28
int
size_;
29
Texture
** letters_;
30
IdentType
ident_;
31
bool
fancy_;
32
};
33
34
35
}
// namespace graphic
36
}
// namespace ugdk
37
38
#endif
src
ugdk
graphic
font.h
Generated on Sat Oct 13 2012 02:25:11 for UGDK by
1.8.2