N64® Functions Menu

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

Nintendo® Confidential

   

nuGfxSetCfb

Format
void nuGfxSetCfb(u16** framebuf, u32 framebufnum)

Arguments
  • framebuf is the pointer to the frame buffer pointer arrays
  • framebufnum is the frame buffer number
Returned Value
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



Nintendo® Confidential

Warning: all information in this document is confidential and covered by a non-disclosure agreement. You are responsible for keeping this information confidential and protected. Nintendo will vigorously enforce this responsibility.


Copyright © 1998
Nintendo of America Inc. All rights reserved
Nintendo and N64 are registered trademarks of Nintendo
Last updated January 1998