#include <revolution/gx.h>void GXDrawSphere1( u8 depth );depth |
Number of segmentation levels |
None.
This function draws a unit sphere by recursively subdividing an icosahedron. You can specify the number of levels of subdivision using depth. For example, a depth of 0 will draw an icosahedron. A depth of 1 will subdivide each triangle of the icosahedron into four triangles, for a total of 80 triangles.
By default, this function generates both position and normal information in 32-bit floating point. The 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. An example usage is:
GXDrawSphere1(2);
The model is drawn centered about the origin. There are 320 triangles.
2006/03/01 Initial version.
CONFIDENTIAL