GBDK 2020 Docs  4.3.0
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 <types.h>
10 #include <stdint.h>
11 
14 #define FONT_256ENCODING 0
15 #define FONT_128ENCODING 1
16 #define FONT_NOENCODING 2
17 
18 #define FONT_COMPRESSED 4
19 
20 /* See gb.h/M_NO_SCROLL and gb.h/M_NO_INTERP */
21 
24 typedef uint16_t font_t;
25 
26 
33 
35 extern uint8_t font_ibm_fixed[];
36 
43 void font_init(void);
44 
51 font_t font_load(void *font) OLDCALL;
52 
60 
61 /* Use mode() and color() to set the font modes and colours */
62 
65 typedef struct sfont_handle mfont_handle;
66 typedef struct sfont_handle *pmfont_handle;
67 
70 struct sfont_handle {
72  void *font;
73 };
74 
76 void font_color(uint8_t forecolor, uint8_t backcolor) OLDCALL;
77 
78 #endif /* __FONT_H */
#define OLDCALL
Definition: types.h:21
void font_color(uint8_t forecolor, uint8_t backcolor) OLDCALL
void font_init(void)
uint16_t font_t
Definition: font.h:24
font_t font_set(font_t font_handle) OLDCALL
struct sfont_handle * pmfont_handle
Definition: font.h:66
font_t font_load(void *font) OLDCALL
uint8_t font_italic[]
Definition: font.h:32
uint8_t font_spect[]
uint8_t font_ibm[]
Definition: font.h:32
uint8_t font_ibm_fixed[]
uint8_t font_min[]
Definition: font.h:32
unsigned char uint8_t
Definition: stdint.h:51
unsigned short int uint16_t
Definition: stdint.h:52
Definition: font.h:70
uint8_t first_tile
Definition: font.h:71
void * font
Definition: font.h:72