KallistiOS git master
Independent SDK for the Sega Dreamcast
Loading...
Searching...
No Matches
VBlank

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.
 

Detailed Description

VBlank interrupt handler management

Function Documentation

◆ vblank_handler_add()

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.

Parameters
hndThe handler to add.
dataA user pointer that will be passed to the callback.
Returns
The handle id on success, or <0 on failure.

◆ vblank_handler_remove()

int vblank_handler_remove ( int handle)

Remove a vblank handler.

This function removes the specified handler from the vblank handler list.

Parameters
handleThe handle id to remove (returned by vblank_handler_add() when the handler was added).
Return values
0On success.
-1On failure.