|
libc8
CHIP-8 utility library
|
#include "../common.h"#include "../graphics.h"#include "exception.h"#include <ncurses.h>#include <string.h>Functions | |
| int | c8_init_graphics (void) |
| int | c8_sound_play (void) |
| Start playing the sound. | |
| int | c8_sound_stop (void) |
| Stop the sound playing. | |
| int | c8_deinit_graphics (void) |
| Deinitialize the graphics library. | |
| int | c8_render (C8_Display *display, int *colors) |
| int | c8_tick (int *keys) |
| Process keypresses. | |
ncurses graphics implementation. When NCURSES is defined, overrides weak graphics utility function definitions in graphics.c.
| int c8_deinit_graphics | ( | void | ) |
Deinitialize the graphics library.
| int c8_init_graphics | ( | void | ) |
| int c8_render | ( | C8_Display * | display, |
| int * | colors | ||
| ) |
Render the given display to the ncurses window.
| display | C8_Display to render |
| colors | colors to render (UNUSED) |
| int c8_sound_play | ( | void | ) |
Start playing the sound.
| int c8_sound_stop | ( | void | ) |
Stop the sound playing.
| int c8_tick | ( | int * | keys | ) |
Process keypresses.
If a relevant key is pressed or released (see c8_keyMap in this file), this function will update keys accordingly.
| keys | pointer to int arr of keys |