*func | Pointer to the execution function following rendering |
In practice, the function registered and waiting for the rendering termination interruption within the njWaitVSync() function is executed to perform the next rendering.
If the rendering termination is not returned, time-out will occur within approximately 10 into, the registration function is not executed and the next rendering is executed.
Only one function can be registered. When parameter is specified as NULL, the registered function is deleted.
static Int count=0; void foo(void) { count++; } void njUserInit(void) { /* Registration of foo function */ njSetEORFunction( foo ); } Sint32 njUserMain(void) { /* Count increases with 1 at a time */ njPrintD(NJM_LOCATION(0,0),count,8); }