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
|
gSPLookAtSyntax#include <ultra64.h> /* gbi.h */ gSPLookAt(Gfx *gdl, LookAt *l) gsSPLookAt(LookAt *l)Arguments
Explanation
Comment
typedef struct { unsigned char col[3]; /* Diffuse light value (RGBA) */ char pad1; unsigned char colc[3]; /* Copy of the diffuse light value (RGBA) */ char pad2; signed char dir[3]; /* Direction toward the light source (normalized) */ char pad3; /* IMPORTANT: "dir" must be less than 127 */ } Light_t; typedef union { Light_t l; long long int force_structure_alignment[2]; } Light; typedef struct { Light l[2]; } LookAt;
See Also
Revision History
|