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
|
SetImage FunctionsSyntax#include "gbi.h" gDPSetColorImage(Gfx *gdl, int fmt, int siz, int width, int img) gsDPSetColorImage(int fmt, int siz, int width, int img) gDPSetDepthImage(Gfx *gdl, int img) gsDPSetDepthImage(int img) gDPSetTextureImage(Gfx *gdl, int fmt, int siz, int width, int img) gsDPSetTextureImage(int fmt, int siz, int width, int img)Arguments
These macros set the framebuffer area for color, depth, and texture images. An application typically has two color frame buffers for double buffering; they are swapped during the vertical retrace interval. If Z-Buffering is enabled, the application should use the gDPSetDepthImage macro to set up the Z-Buffer area. The width parameter is not needed for gDPSetDepthImage because the RDP assumes the width is the same as the color buffer. The siz parameter is not needed for gDPSetDepthImage because the depth-buffer is always G_IM_SIZ_16b. The gDPSetTextureImage macro is used to point to different textures. This macro is usually not used directly, it is embedded in the appropriate gDPLoadTexture macros. The gDPSetDepthImage and gDPSetColorImage macros require a 64-BYTE aligned address. Following are the descriptions for each of the format and size argument elements:
|