GXDrawSphere

C Specification

#include <revolution/gx.h>
void GXDrawSphere(
u8          numMajor,
u8          numMinor );

Arguments

numMajor Number of latitude divisions
numMinor number of longitude divisions

Return Values

None.

Description

This function draws a unit sphere. You can control the number of divisions in latitude and longitude using numMajor and numMinor. This function generates both position and normal information in 32-bit floating point. Also, when this function is called, it attaches texture coordinate (GX_VA_TEX0) corresponding to the vertex descriptor state. This function saves the current vertex descriptor and the vertex attribute format used before drawing (and restores them afterward), so as not to interfere with the application's state.

GXDrawSphere(8, 16);


The model is drawn centered about the origin.

See Also

GXDrawSphere1

Revision History

03/01/2006 Initial version.