al - Audio Library Functions gDP - DP GBI Macros gdSP - General GBI Macros gSP - SP GBI Macros gt - Turbo Microcode RDP gu - Graphics Utilities Math - Math Functions nuSys - NuSystem os - N64 Operating System sp - Sprite Library Functions uh - Host to Target IO 64DD - N64 Disk Drive
|
nuGfxSetCfbFormatvoid nuGfxSetCfb(u16** framebuf, u32 framebufnum) Arguments
none What This Function Does It registers the frame buffers. It registers the frame buffer's RDRAM address arrays. The default with the nuGfxInit function is registration of three frame buffer pointer arrays as a triple frame buffer with low resolution (320x240 dot), 16-bit color pixels as follows: u16* FrameBuf[3] = { (u16*)NU_GFXFRAMEBUFFER0_ADDR, (u16*)NU_GFXFRAMEBUFFER1_ADDR, (u16*)NU_GFXFRAMEBUFFER2_ADDR, } ;When you need to change the frame buffer pointer array or create an initializer function that is independent of the nuGfxInit function, use the nuGfxSetCfb function to register the frame buffer pointer. The pointer array registered with this function is used internally by the Graphics Task Manager. Example /* frame buffer pointer array */ u16* FrameBuf[3] = { (u16*)NU_GFXFRAMEBUFFER0_ADDR, (u16*)NU_GFXFRAMEBUFFER1_ADDR, (u16*)NU_GFXFRAMEBUFFER2_ADDR, } ; /* register frame buffer */ void gfxSetCfb(FrameBuf, 3); ....... }See Also nuGfxInit
|