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
38GF_DECLARE_TYPE(font_bbox, {
39 int width;
40 int height;
41 int x;
42 int y;
43});
44
65GF_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
87GF_DECLARE_TYPE(font, {
88 gf_font_glyph_t** glyph;
89 int count;
90 gf_font_bbox_t bbox;
91});
92#else
93typedef void gf_font_glyph_t;
94typedef void gf_font_bbox_t;
95typedef void gf_font_t;
96#endif
97
98#endif
#define GF_DECLARE_TYPE(n, b)
Macro to define engine type shorter.
Definition gf_macro.h:172
Required headers before anything.
Bounding box.
Definition font.h:43
Glyph.
Definition font.h:71
Font.
Definition font.h:91
Texture.
Definition texture.h:47
Type definitions related to texture.