Ninja Library - System Function

njRenderStart

Starts rendering.

FORMAT

void njRenderStart( void )

PARAMETER

None

RETURN

None

DESCRIPTION

Notifies the renderer when one scene of vertex cataloging has been completed. Renderer begins data development. Actual rendering is started after the screen has been flipped with the function njFlipFrameBuffer(). In this function, set _nj_calc_vertex_, _nj_calc_polygon_ _nj_draw_polygon_ to 0.


EXAMPLE

<>When the njWaitVSync function 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;
		/* Completion of vertex cataloging  Start of data development */
		njRenderStart();
		/* Screen flip Flip screen with Vsync timing */
		njFlipFrameBuffer();
		/* Acquire pad data */
		pdExecPeripheralServer();	
	}

	njUserExit();
}

NOTE

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

REFERENCE

njFlipFrameBuffer()
njWaitVSync()

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