libc8
CHIP-8 utility library
Loading...
Searching...
No Matches
font.h
Go to the documentation of this file.
1
7#ifndef LIBC8_FONT_H
8#define LIBC8_FONT_H
9
10#include "chip8.h"
11
12#define C8_FONT_START 0x000
13#define C8_HIGH_FONT_START C8_FONT_START + (0x10 * 5)
14
15extern const char* c8_fontNames[2][5];
16
17void print_fonts(c8_t*);
18void c8_set_fonts(c8_t*, int, int);
19int c8_set_fonts_s(c8_t*, char*);
20int c8_set_small_font(c8_t*, const char*);
21int c8_set_big_font(c8_t*, const char*);
22
23#endif
int c8_set_small_font(c8_t *, const char *)
Set small font from s (fontNames name)
Definition: font.c:279
int c8_set_big_font(c8_t *, const char *)
Set big font from s (fontNames name)
Definition: font.c:299
void c8_set_fonts(c8_t *, int, int)
Loads small and/or big fonts in c8
Definition: font.c:222
void print_fonts(c8_t *)
Print fonts (for debug)
Definition: font.c:316
const char * c8_fontNames[2][5]
Definition: font.c:32
int c8_set_fonts_s(c8_t *, char *)
Set fonts from string.
Definition: font.c:242
Represents current state of the CHIP-8 interpreter.
Definition: chip8.h:56