Ninja Library - System Function

njFlipFrameBuffer

Flips the screen

FORMAT

void njFlipFrameBuffer( void )

PARAMETER

None

RETURN

None

DESCRIPTION

Flips the display screen and the rendering object screen.

Initial Vsync timing is flipped after the command is issued. The renderer starts rendering after the screen is flipped.

The main processing time of Nindows is the time from when this function is completed to the next time this function is called.


EXAMPLE

<>When njWaitVSync is used.
void main(void)
{
	njUserInit();

	while (1) {
		if (njUserMain() < 0) break;
		njWaitVSync();
	}

	njUserExit();
}

<>When njRenderStart,njFlipFrameBuffer is used.
void main(void)
{
	njUserInit();

	while (1) {
		if (njUserMain() < 0) break;
		/* End of vertex cataloging  Start of data expansion */
		njRenderStart();
		/* Screen flip  Flip with Vsync timing */
		njFlipFrameBuffer();
		/* Acquisition of pad data */
		pdExecPeripheralServer();	
	}

	njUserExit();
}

NOTE

Use the njFlipFrameBuffer() function together with the njRenderStart() function and pdExecPeripheralServer() function.


REFERENCE

njRenderStart()
njWaitVSync()

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