GXDrawCylinder

Syntax

#include <revolution/gx.h>

void GXDrawCylinder( u8 numEdges );

Arguments

numEdges Number of sides of the cylinder. Maximum 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.

Generates both vertex coordinate 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);

In the above example the model is drawn centered about the origin, with sixteen radial divisions.

See Also

None.

Revision History

2006/03/01 Initial version.


CONFIDENTIAL