Function
nuGfxPreNMIFuncSet
Syntax
void nuGfxPreNMIFuncSet(NUGfxPreNMIFunc func)
Arguments
func call back function
Return Value
None
Description
Registers the PRE_NMI call back function in the graphics thread
Registers the call back function which is executed by the PRE NMI event in the graphics thread.
Example
u8 gfxTaskEnd = FALSE;
/* retrace function */
void prenmiFunc(void)
{
/* Set the Y-scale to 1.0 using PRE NMI*/
osViSetYScale(1.0);
/* Set the flag so as not to create a new graphics task*/
gfxTaskEnd = TRUE;
}
void gameGfxInit(void)
{
......
/*Register the function which is executed by retrace */
nuGfxPreNMIFuncSet(prenmiFunc);
}
See Also