#include <revolution/gx.h>void GXDrawSphere(
u8 numMajor,
u8 numMinor );numMajor |
Number of latitude divisions |
numMinor |
Number of longitude divisions |
None.
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.
2006/03/01 Initial version.
CONFIDENTIAL