Function

nuGfxSetCfb

Syntax
void nuGfxSetCfb(u16** framebuf, u32 framebufnum);

Arguments

Return Value
None

Explanation
Register the frame buffer.

Register an array of RDRAM address for the frame buffer. By default, the following low resolution (320*240 Dot), 16 bit color pixel, and pointer arrays for three frame buffers are registered by the nuGfxInit function with the triple frame buffer.

	u16*	FrameBuf[3] = {
		(u16*)NU_GFX_FRAMEBUFFER0_ADDR,
		(u16*)NU_GFX_FRAMEBUFFER1_ADDR,
		(u16*)NU_GFX_FRAMEBUFFER2_ADDR
	};

The pointer for the frame buffer can be registered using the nuGfxSetCfb function when changing the pointer for the frame buffer or creating the initialized function without using the nuGfxInit function.

Specify the pointer for the pointer array of the frame buffer for framebuf. Specify the number of the frame buffer for framebufnum.

The number of frame buffers can also be registered in the scheduler using the nuScFrameBufferNum function.

The pointer array registered here will be used inside the Graphics Task Manager.

Example

	/* The pointer array of the frame buffer */
	u16*	FrameBuf[3] = {
		(u16*)NU_GFX_FRAMEBUFFER0_ADDR,
		(u16*)NU_GFX_FRAMEBUFFER1_ADDR,
		(u16*)NU_GFX_FRAMEBUFFER2_ADDR
	};

	void gfxSetCfb(void)
	{
		nuGfxSetCfb(FrameBuf, 3);	/* Register the frame  buffer */
		......
	}

See Also
nuGfxInit
nuScSetFrameBufferNum


Revision History
2/1/1999   Added text regarding registration of the number of frame buffers in the scheduler.