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
|
gSPViewportFormat#include "gbi.h" typedef struct { short vscale[4]; /* scale, 2 bits fraction */ short vtrans[4]; /* translate, 2 bits fraction */ /* both arrays are padded to the 64-bit boundary */ } Vp_t; typedef union { Vp_t vp; long long int force_structure_alignment; } Vp; gSPViewport(Gfx *gdl, Vp *v) gsSPViewport(Vp *v)Arguments
It sets up the viewport region of the graphics pipeline and loads the viewport projection parameter. Both vc and vo are S13.2 numbers. Both the vscale and vtrans numbers are in screen coordinates. Array indices of 0, 1, 2 correspond to x, y, z. An array index of 3 is used for padding. See Also gDPSetScissor
|