Ninja Library - System Function

njSetEORFunction

Registers the execution function following rendering

FORMAT

void njSetEORFunction( *func )
void (*func)(void)

PARAMETER

 *func  Pointer to the execution function following rendering 

RETURN

None

DESCRIPTION

Registers 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.


EXAMPLE

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);
}

REFERENCE

njWaitVSync()
njSetVSyncFunction()

njSetEORFunction
COPYRIGHT © SEGA ENTERPRISES, LTD., 1998,1999