|
libc8
CHIP-8 utility library
|
Functions | |
| void | c8_beep (void) |
| Play sound. | |
| void | c8_deinit_graphics (void) |
| Deinitialize graphics system. | |
| uint8_t | c8_init_graphics (void) |
| Initialize graphics system. | |
| void | c8_render (C8_Display *display, int *colors) |
| Render graphics. | |
| int | c8_tick (int *key) |
| Grab current keypresses and delay execution to match clockspeed. | |
| uint8_t * | c8_get_pixel (C8_Display *display, int x, int y) |
Get the value of (x,y) from display | |
Backend-agnostic graphics-related functions
| void c8_beep | ( | void | ) |
Play sound.
This function is weak and is overridden by internal/graphics_sdl.c by default. This can also be overridden by the user when compiling without SDL2 support.
| void c8_deinit_graphics | ( | void | ) |
Deinitialize graphics system.
This function is weak and is overridden by internal/graphics_sdl.c by default. This can also be overridden by the user when compiling without SDL2 support.
| uint8_t * c8_get_pixel | ( | C8_Display * | display, |
| int | x, | ||
| int | y | ||
| ) |
Get the value of (x,y) from display
| display | C8_Display to get pixel from |
| x | the x value |
| y | the y value |
display | uint8_t c8_init_graphics | ( | void | ) |
Initialize graphics system.
This function is weak and is overridden by internal/graphics_sdl.c by default. This can also be overridden by the user when compiling without SDL2 support.
| void c8_render | ( | C8_Display * | display, |
| int * | colors | ||
| ) |
Render graphics.
This function is weak and is overridden by internal/graphics_sdl.c by default. This can also be overridden by the user when compiling without SDL2 support.
| int c8_tick | ( | int * | key | ) |
Grab current keypresses and delay execution to match clockspeed.
This function is weak and is overridden by internal/graphics_sdl.c by default. This can also be overridden by the user when compiling without SDL2 support.