GBDK 2020 Docs API Documentation for GBDK 2020

font.h
Go to the documentation of this file.
1
6 #ifndef __FONT_H
7 #define __FONT_H
8
9 #include <gb/gb.h>
10
13 #define FONT_256ENCODING 0
14 #define FONT_128ENCODING 1
15 #define FONT_NOENCODING 2
16
17 #define FONT_COMPRESSED 4
18
19 /* See gb.h/M_NO_SCROLL and gb.h/M_NO_INTERP */
20
23 typedef UINT16 font_t;
24
25
31 extern UINT8 font_spect[], font_italic[], font_ibm[], font_min[];
32
34 extern UINT8 font_ibm_fixed[];
35
42 void font_init(void) NONBANKED;
43
50 font_t font_load( void *font ) NONBANKED;
51
58 font_t font_set( font_t font_handle ) NONBANKED;
59
60 /* Use mode() and color() to set the font modes and colours */
61
64 typedef struct sfont_handle mfont_handle;
65 typedef struct sfont_handle *pmfont_handle;
66
69 struct sfont_handle {
70 UINT8 first_tile;
71 void *font;
72 };
73
74 #endif /* __FONT_H */
UINT8
unsigned char UINT8
Definition: types.h:21
sfont_handle
Definition: font.h:69
gb.h
UINT16
unsigned int UINT16
Definition: types.h:27
font_set
font_t font_set(font_t font_handle) NONBANKED
font_ibm
UINT8 font_ibm[]
Definition: font.h:31
font_min
UINT8 font_min[]
Definition: font.h:31
sfont_handle::font
void * font
Definition: font.h:71
font_load
font_t font_load(void *font) NONBANKED
font_italic
UINT8 font_italic[]
Definition: font.h:31
font_t
UINT16 font_t
Definition: font.h:23
font_ibm_fixed
UINT8 font_ibm_fixed[]
font_spect
UINT8 font_spect[]
NONBANKED
#define NONBANKED
Definition: types.h:11
sfont_handle::first_tile
UINT8 first_tile
Definition: font.h:70
pmfont_handle
struct sfont_handle * pmfont_handle
Definition: font.h:65
font_init
void font_init(void) NONBANKED