GoldFish Engine
Quite simple and lightweight game engine
Loading...
Searching...
No Matches
font.h
Go to the documentation of this file.
1
7
#ifndef __GF_TYPE_FONT_H__
8
#define __GF_TYPE_FONT_H__
9
10
#include <
gf_pre.h
>
11
#include <
gf_macro.h
>
12
13
#ifdef GF_EXPOSE_FONT
14
/* External library */
15
16
/* Engine */
17
#include <
gf_type/texture.h
>
18
19
/* Standard */
20
38
GF_DECLARE_TYPE
(font_bbox, {
39
int
width;
40
int
height;
41
int
x;
42
int
y;
43
});
44
65
GF_DECLARE_TYPE
(font_glyph, {
66
int
code;
67
gf_texture_t
* texture;
68
int
bpl;
69
gf_font_bbox_t
bbox;
70
int
dwidth[2];
71
});
72
87
GF_DECLARE_TYPE
(font, {
88
gf_font_glyph_t
** glyph;
89
int
count;
90
gf_font_bbox_t
bbox;
91
});
92
#else
93
typedef
void
gf_font_glyph_t
;
94
typedef
void
gf_font_bbox_t
;
95
typedef
void
gf_font_t
;
96
#endif
97
98
#endif
gf_macro.h
Macro.
GF_DECLARE_TYPE
#define GF_DECLARE_TYPE(n, b)
Macro to define engine type shorter.
Definition
gf_macro.h:172
gf_pre.h
Required headers before anything.
gf_font_bbox_t
Bounding box.
Definition
font.h:43
gf_font_glyph_t
Glyph.
Definition
font.h:71
gf_font_t
Font.
Definition
font.h:91
gf_texture_t
Texture.
Definition
texture.h:47
texture.h
Type definitions related to texture.
include
gf_type
font.h
Generated by
1.9.8