GXDrawCylinder

C Specification

#include <revolution/gx.h>
void GXDrawCylinder( u8 numEdges );

Arguments

numEdges Number of sides of the cylinder. Max value is 99

Return Values

None.

Description

This function draws a unit cylinder. The cylinder has a radius of 1.0 and a height of 2.0. You can specify the number of  radial divisions used to draw the cylinder using numEdges.

GXDrawCylinder 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:

GXDrawCylinder(16);

The model is drawn centered about the origin.

See Also

Revision History

2006/03/01 Initial version.


CONFIDENTIAL