16#define C8_LOW_DISPLAY_WIDTH 64
17#define C8_LOW_DISPLAY_HEIGHT 32
18#define C8_HIGH_DISPLAY_WIDTH 128
19#define C8_HIGH_DISPLAY_HEIGHT 64
21#define C8_DEFAULT_WINDOW_WIDTH 800
22#define C8_DEFAULT_WINDOW_HEIGHT 400
23#define C8_WINDOW_SCALE_X (C8_DEFAULT_WINDOW_WIDTH / C8_LOW_DISPLAY_WIDTH)
24#define C8_WINDOW_SCALE_Y (C8_DEFAULT_WINDOW_HEIGHT / C8_LOW_DISPLAY_HEIGHT)
26#define C8_DISPLAYMODE_LOW 0
27#define C8_DISPLAYMODE_HIGH 1
void c8_deinit_graphics(void)
Deinitialize the graphics library.
Definition: graphics_sdl2.c:66
uint8_t c8_init_graphics(void)
Initialize the graphics library.
Definition: graphics_sdl2.c:76
void c8_render(c8_display_t *, int *)
Definition: graphics_sdl2.c:96
int c8_tick(int *, int)
Process keypresses and delay based on clockspeed.
Definition: graphics_sdl2.c:138
#define C8_HIGH_DISPLAY_HEIGHT
Definition: graphics.h:19
uint8_t * c8_get_pixel(c8_display_t *, int, int)
Get the value of (x,y) from display
Definition: graphics.c:82
#define C8_HIGH_DISPLAY_WIDTH
Definition: graphics.h:18
Definition: graphics.h:37
uint8_t x
Definition: graphics.h:40
uint8_t mode
Definition: graphics.h:39