GBDK 2020 Docs  4.5.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
25
26
33
35extern uint8_t font_ibm_fixed[];
36
43void font_init(void);
44
52
60
61/* Use mode() and color() to set the font modes and colours */
62
67
72 void *font;
73};
74
76void 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)
font_t font_load(void *font) OLDCALL
font_t font_set(font_t font_handle) OLDCALL
uint16_t font_t
Definition: font.h:24
struct sfont_handle * pmfont_handle
Definition: font.h:66
uint8_t font_ibm[]
Definition: font.h:32
uint8_t font_ibm_fixed[]
uint8_t font_italic[]
Definition: font.h:32
uint8_t font_min[]
Definition: font.h:32
uint8_t font_spect[]
unsigned short int uint16_t
Definition: stdint.h:52
unsigned char uint8_t
Definition: stdint.h:51
Definition: font.h:70
uint8_t first_tile
Definition: font.h:71
void * font
Definition: font.h:72