RenderWare V2.1

Previous Page Index Next Page

RwBool

RwCone(RwReal height, RwReal radius, RwInt32 nsides);

Description

Adds a cone to the current clump under construction. The cone is transformed by the CTM, and the current material is assigned to its polygons. The base of the cone lies on the X-Z plane, extending up the Y axis. The base is not closed.

Arguments

height Cone height.

radius Radius of the cone base.

nsides Number of sides.

Return Value

TRUE if successful, and FALSE otherwise.

Comments

It is an error if the cone’s radius is degenerate, i.e. CREAL(0.0).

If a negative radius is specified, the polygons forming the cone will face inward.

This function can only be called within the context of an RwClumpBegin()RwClumpEnd() or RwProtoBegin()RwProtoEnd() block.

See Also

RwBlock()

RwClumpBegin()

RwClumpEnd()

RwCylinder()

RwDisc()

RwHemisphere()

RwProtoBegin()

RwProtoEnd()

RwSphere()