GBDK 2020 Docs
4.0.6
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
32
extern
uint8_t
font_spect
[],
font_italic
[],
font_ibm
[],
font_min
[];
33
35
extern
uint8_t
font_ibm_fixed
[];
36
43
void
font_init
();
44
51
font_t
font_load
(
void
*font)
OLDCALL
;
52
59
font_t
font_set
(
font_t
font_handle)
OLDCALL
;
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
{
71
uint8_t
first_tile
;
72
void
*
font
;
73
};
74
76
void
font_color
(
uint8_t
forecolor,
uint8_t
backcolor)
OLDCALL
;
77
78
#endif
/* __FONT_H */
sfont_handle
Definition:
font.h:70
uint8_t
unsigned char uint8_t
Definition:
stdint.h:51
font_init
void font_init()
font_color
void font_color(uint8_t forecolor, uint8_t backcolor) OLDCALL
sfont_handle::font
void * font
Definition:
font.h:72
uint16_t
unsigned short int uint16_t
Definition:
stdint.h:52
font_ibm_fixed
uint8_t font_ibm_fixed[]
font_spect
uint8_t font_spect[]
font_set
font_t font_set(font_t font_handle) OLDCALL
font_t
uint16_t font_t
Definition:
font.h:24
stdint.h
OLDCALL
#define OLDCALL
Definition:
types.h:19
sfont_handle::first_tile
uint8_t first_tile
Definition:
font.h:71
font_ibm
uint8_t font_ibm[]
Definition:
font.h:32
pmfont_handle
struct sfont_handle * pmfont_handle
Definition:
font.h:66
font_load
font_t font_load(void *font) OLDCALL
font_min
uint8_t font_min[]
Definition:
font.h:32
font_italic
uint8_t font_italic[]
Definition:
font.h:32