libc8
CHIP-8 utility library
|
#include "chip8.h"
Go to the source code of this file.
Macros | |
#define | C8_FONT_START 0x000 |
#define | C8_HIGH_FONT_START C8_FONT_START + (0x10 * 5) |
Functions | |
void | print_fonts (c8_t *) |
Print fonts (for debug) More... | |
void | c8_set_fonts (c8_t *, int, int) |
Loads small and/or big fonts in c8 More... | |
int | c8_set_fonts_s (c8_t *, char *) |
Set fonts from string. More... | |
int | c8_set_small_font (c8_t *, const char *) |
Set small font from s (fontNames name) More... | |
int | c8_set_big_font (c8_t *, const char *) |
Set big font from s (fontNames name) More... | |
Variables | |
const char * | c8_fontNames [2][5] |
Stuff related to loading fonts.
#define C8_FONT_START 0x000 |
#define C8_HIGH_FONT_START C8_FONT_START + (0x10 * 5) |
int c8_set_big_font | ( | c8_t * | c8, |
const char * | s | ||
) |
Set big font from s
(fontNames
name)
c8 | c8_t to set font from |
s | string to get font from |
void c8_set_fonts | ( | c8_t * | c8, |
int | small, | ||
int | big | ||
) |
Loads small and/or big fonts in c8
c8 | c8_t 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_t * | c8, |
char * | s | ||
) |
Set fonts from string.
c8 | c8_t to set fonts |
s | string to get fonts from (comma-separated fontNames names) |
int c8_set_small_font | ( | c8_t * | c8, |
const char * | s | ||
) |
Set small font from s
(fontNames
name)
c8 | c8_t to set font from |
s | string to get font from |
|
extern |