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