18#define C8_LOW_DISPLAY_WIDTH 64
23#define C8_LOW_DISPLAY_HEIGHT 32
28#define C8_HIGH_DISPLAY_WIDTH 128
33#define C8_HIGH_DISPLAY_HEIGHT 64
38#define C8_DEFAULT_WINDOW_WIDTH 800
43#define C8_DEFAULT_WINDOW_HEIGHT 400
48#define C8_DISPLAYMODE_LOW 0
53#define C8_DISPLAYMODE_HIGH 1
int c8_tick(int *)
Grab current keypresses and delay execution to match clockspeed.
Definition: graphics.c:92
int c8_sound_stop(void)
Play sound.
Definition: graphics.c:35
int c8_render(C8_Display *, int *)
Render graphics.
Definition: graphics.c:77
int c8_deinit_graphics(void)
Deinitialize graphics system.
Definition: graphics.c:49
int c8_sound_play(void)
Stop sound.
Definition: graphics.c:21
uint8_t * c8_get_pixel(C8_Display *, int, int)
Get the value of (x,y) from display
Definition: graphics.c:106
int c8_init_graphics(void)
Initialize graphics system.
Definition: graphics.c:63
#define C8_HIGH_DISPLAY_HEIGHT
Height of the high-resolution display.
Definition: graphics.h:33
#define C8_HIGH_DISPLAY_WIDTH
Width of the high-resolution display.
Definition: graphics.h:28
Represents a graphics display.
Definition: graphics.h:60
uint8_t mode
Display mode (C8_DISPLAYMODE_LOW or C8_DISPLAYMODE_HIGH)
Definition: graphics.h:62