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
typedef
struct
gf_font_bbox_t
gf_font_bbox_t
;
15
typedef
struct
gf_font_glyph_t
gf_font_glyph_t
;
16
typedef
struct
gf_font_t
gf_font_t
;
17
18
/* External library */
19
20
/* Engine */
21
#include <
gf_type/texture.h
>
22
23
/* Standard */
24
42
GF_DECLARE_TYPE
(font_bbox, {
43
int
width;
44
int
height;
45
int
x;
46
int
y;
47
});
48
69
GF_DECLARE_TYPE
(font_glyph, {
70
int
code;
71
gf_texture_t
* texture;
72
int
bpl;
73
gf_font_bbox_t
bbox
;
74
int
dwidth[2];
75
});
76
91
GF_DECLARE_TYPE
(font, {
92
gf_font_glyph_t
**
glyph
;
93
int
count
;
94
gf_font_bbox_t
bbox
;
95
});
96
#else
97
typedef
void
gf_font_glyph_t
;
98
typedef
void
gf_font_bbox_t
;
99
typedef
void
gf_font_t
;
100
#endif
101
102
#endif
gf_macro.h
Macro.
GF_DECLARE_TYPE
#define GF_DECLARE_TYPE(n, b)
Macro to define engine type shorter.
Definition
gf_macro.h:180
gf_pre.h
Required headers before anything.
gf_font_bbox_t
Bounding box.
Definition
font.h:47
gf_font_glyph_t
Glyph.
Definition
font.h:75
gf_font_t
Font.
Definition
font.h:95
gf_font_t::glyph
gf_font_glyph_t ** glyph
Glyph data.
Definition
font.h:95
gf_font_t::count
int count
Glyph count.
Definition
font.h:95
gf_font_t::bbox
gf_font_bbox_t bbox
Bounding box.
Definition
font.h:95
gf_texture_t
Texture.
Definition
texture.h:49
texture.h
Type definitions related to texture.
include
gf_type
font.h
Generated by
1.9.8