#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. By default, this function generates both vertex coordinate information and normal information in 32-bit floating point. This function also includes a binormal/tangent or texture coordinates (GX_VA_TEX0) corresponding to the vertex descriptor state at the time this function is called. Before rendering, this function saves the current vertex descriptor and the vertex attribute format (and restores them afterward), so as not to interfere with the application's state.
GXDrawSphere(8, 16);In the above example, the sphere is rendered centered about the origin.
2006/03/01 Initial version.
CONFIDENTIAL