KallistiOS git master
Independent SDK for the Sega Dreamcast
|
VBlank interrupt handler management More...
Files | |
file | vblank.h |
VBlank handler registration. | |
Functions | |
int | vblank_handler_add (asic_evt_handler hnd, void *data) |
Add a vblank handler. | |
int | vblank_handler_remove (int handle) |
Remove a vblank handler. | |
VBlank interrupt handler management
int vblank_handler_add | ( | asic_evt_handler | hnd, |
void * | data ) |
Add a vblank handler.
This function adds a handler to the vblank handler list. The function will be called at the start of every vblank period with the same parameters that were passed to the IRQ handler for vblanks.
hnd | The handler to add. |
data | A user pointer that will be passed to the callback. |
int vblank_handler_remove | ( | int | handle | ) |
Remove a vblank handler.
This function removes the specified handler from the vblank handler list.
handle | The handle id to remove (returned by vblank_handler_add() when the handler was added). |
0 | On success. |
-1 | On failure. |