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
|
gSPViewPortSyntax#include <ultra64.h> /* gbi.h */ gSPViewport(Gfx *gdl, Vp *v) gsSPViewport(Vp *v)Arguments
Explanation
vscale,vtrans are the screen coordinates. The array indices 0, 1, 2 correspond to x, y, z, while array index 3 is used for the alignment. The viewport is the area the image occupies on the screen. For details, see Section 3-3-4, "The View Coordinate System" in Step 3 of the Kantan Manual.
Comment
typedef struct { short vscale[4]; /* Scale, 14.2 */ short vtrans[4]; /* Transformation, 14.2 */ } Vp_t; typedef union { Vp_t vp; long long int force_structure_alignment; } Vp;
See Also
Revision History
|