|
libc8
CHIP-8 utility library
|
Macros | |
| #define | OCTO_S "octo" |
| #define | VIP_S "vip" |
| #define | DREAM6800_S "dream6800" |
| #define | ETI660_S "eti660" |
| #define | FISH_S "fish" |
| #define | SCHIP_S "schip" |
Functions | |
| void | c8_set_fonts (C8 *c8, C8_SmallFont small, C8_BigFont big) |
Loads small and/or big fonts in c8 | |
| int | c8_set_fonts_s (C8 *c8, char *s) |
| Set fonts from string. | |
| int | c8_set_small_font (C8 *c8, const char *s) |
Set small font from s (fontNames name) | |
| int | c8_set_big_font (C8 *c8, const char *s) |
Set big font from s (fontNames name) | |
| void | c8_print_fonts (C8 *c8) |
| Print fonts (for debug) | |
Variables | |
| const char * | c8_fontNames [2][5] |
| Font names. | |
| const uint8_t | c8_smallFonts [5][80] |
| const uint8_t | c8_bigFonts [3][160] |
Stuff related to loading fonts.
| #define DREAM6800_S "dream6800" |
| #define ETI660_S "eti660" |
| #define FISH_S "fish" |
| #define OCTO_S "octo" |
| #define SCHIP_S "schip" |
| #define VIP_S "vip" |
| 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 |
| const uint8_t c8_bigFonts[3][160] |
Big fonts.
From Octo (https://github.com/JohnEarnest/Octo).
| const char* c8_fontNames[2][5] |
Font names.
| const uint8_t c8_smallFonts[5][80] |
Small fonts.
From Octo (https://github.com/JohnEarnest/Octo).