|
libc8
CHIP-8 utility library
|
#include "chip8.h"Go to the source code of this file.
Macros | |
| #define | C8_FONT_START 0x000 |
| Font storage address in memory. | |
| #define | C8_HIGH_FONT_START (C8_FONT_START + (0x10 * 5)) |
| HD font storage address in memory. | |
Enumerations | |
| enum | C8_SmallFont { C8_SMALLFONT_OCTO = 0 , C8_SMALLFONT_VIP = 1 , C8_SMALLFONT_DREAM6800 = 2 , C8_SMALLFONT_ETI660 = 3 , C8_SMALLFONT_FISH = 4 } |
| Small font IDs. More... | |
| enum | C8_BigFont { C8_BIGFONT_OCTO = 0 , C8_BIGFONT_SCHIP = 1 , C8_BIGFONT_FISH = 2 } |
| Big font IDs. More... | |
Functions | |
| void | c8_print_fonts (C8 *) |
| Print fonts (for debug) | |
| void | c8_set_fonts (C8 *, C8_SmallFont, C8_BigFont) |
Loads small and/or big fonts in c8 | |
| int | c8_set_fonts_s (C8 *, char *) |
| Set fonts from string. | |
| int | c8_set_small_font (C8 *, const char *) |
Set small font from s (fontNames name) | |
| int | c8_set_big_font (C8 *, const char *) |
Set big font from s (fontNames name) | |
Variables | |
| const char * | c8_fontNames [2][5] |
| Font names. | |
Stuff related to loading fonts.
| #define C8_FONT_START 0x000 |
Font storage address in memory.
| #define C8_HIGH_FONT_START (C8_FONT_START + (0x10 * 5)) |
HD font storage address in memory.
| enum C8_BigFont |
| enum C8_SmallFont |
| int c8_set_big_font | ( | C8 * | c8, |
| const char * | s | ||
| ) |
Set big font from s (fontNames name)
| c8 | C8 to set font from |
| s | string to get font from |
| void c8_set_fonts | ( | C8 * | c8, |
| C8_SmallFont | small, | ||
| C8_BigFont | big | ||
| ) |
Loads small and/or big fonts in c8
| c8 | C8 to set fonts |
| small | small font identifier (-1 to not set) |
| big | big font identifier (-1 to not set) |
| int c8_set_fonts_s | ( | C8 * | c8, |
| char * | s | ||
| ) |
Set fonts from string.
| c8 | C8 to set fonts |
| s | string to get fonts from (comma-separated fontNames names) |
| int c8_set_small_font | ( | C8 * | c8, |
| const char * | s | ||
| ) |
Set small font from s (fontNames name)
| c8 | C8 to set font from |
| s | string to get font from |
|
extern |
Font names.