RenderWare V2.1

Previous Page Index Next Page

RwBool

RwBlock(RwReal width, RwReal height, RwReal depth);

Description

Adds a block, centered about the origin, to the current clump under construction. The block is transformed by the CTM, and the current material is applied to its polygons.

Arguments

width Block width.

height Block height.

depth Block depth.

Return Value

TRUE if successful, and FALSE otherwise.

Comments

It is an error if any of the block’s dimensions are degenerate, i.e., CREAL(0.0).

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

See Also

RwClumpBegin()

RwClumpEnd()

RwCone()

RwCylinder()

RwDisc()

RwHemisphere()

RwProtoBegin()

RwProtoEnd()

RwSphere()