|
GBDK 2020 Docs
API Documentation for GBDK 2020
|
#include <gb/gb.h>Go to the source code of this file.
Data Structures | |
| struct | sfont_handle |
Macros | |
| #define | FONT_256ENCODING 0 |
| #define | FONT_128ENCODING 1 |
| #define | FONT_NOENCODING 2 |
| #define | FONT_COMPRESSED 4 |
Typedefs | |
| typedef UINT16 | font_t |
| typedef struct sfont_handle | mfont_handle |
| typedef struct sfont_handle * | pmfont_handle |
Functions | |
| void | font_init (void) NONBANKED |
| font_t | font_load (void *font) NONBANKED |
| font_t | font_set (font_t font_handle) NONBANKED |
Variables | |
| UINT8 | font_spect [] |
| UINT8 | font_italic [] |
| UINT8 | font_ibm [] |
| UINT8 | font_min [] |
| UINT8 | font_ibm_fixed [] |
Multiple font support for the GameBoy Michael Hope, 1999 michaelh@earthling.net
| #define FONT_256ENCODING 0 |
Various flags in the font header.
| #define FONT_128ENCODING 1 |
| #define FONT_NOENCODING 2 |
| #define FONT_COMPRESSED 4 |
font_t is a handle to a font loaded by font_load(). It can be used with font_set()
| typedef struct sfont_handle mfont_handle |
Internal representation of a font. What a font_t really is
| typedef struct sfont_handle* pmfont_handle |
| void font_init | ( | void | ) |
Initializes the font system. Should be called before other font functions.
| font_t font_load | ( | void * | font | ) |
Load a font and set it as the current font.
| font | Pointer to a font to load (usually a gbdk font) |
Set the current font.
| font_handle | handle of a font returned by font_load() |