Function


nuGfxFuncSet


Syntax

void nuGfxFuncSet(NUGfxFunc func)
Arguments
func	call back function
Return Value
None
Description

Registers the retrace call back function in the graphics thread

Registers the call back function which executes synchronously with retrace in the graphics thread. Send the graphics task number which is left in the graphics task thread queue as an argument to the function which was specified by the func file. The func file is a function which was defined as void the func(u32 gfxTaskNum) function. Use the nuGfxFuncRemove function to delete the call back function.

Example

/* the retrace function*/
void retraceFunc(u32 gfxTaskNum)
{
  /* Nothing is processed when the graphics task remains  */
  if(gfxTaskNum >0) return;
  ......
}
	
void gameGfxInit(void)
{
  ......
  /* Register the function which is executed by retrace */
  nuGfxFuncSet(retraceFunc);
}

See Also

nuGfxFuncRemove