Ninja Library - System Function

njSetVSyncFunction

Registers the vertical sync interrupt callback function

FORMAT

void njSetVSyncFunction( func )
void (*func)()

PARAMETER

 *func  Pointer to the vertical sync interrupt callback function 

RETURN

None

DESCRIPTION

Registers the vertical sync interrupt callback function. Only one such function can be registered. Specifying NULL deletes the registered function.

EXAMPLE

static Int count=0;
void foo(void)
{
 count++;
}
void njUserInit(void)
{
	:
 /* Register foo function */
 njSetVSyncFunction( foo );
}
Sint32 njUserMain(void)
{
 /* All the count one at a time */
 njPrintD(NJM_LOCATION(0,0),count,8);
  
}

REFERENCE

njWaitVSync()

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