RenderWare V2.1

Previous Page Index Next Page

RwClump *

RwSetClumpState(RwClump *clump, RwState state);

Description

Sets the clump‘s on/off state.

Arguments

clump Pointer to the clump.

state The clump state.

Return Value

The argument clump if successful, and NULL otherwise.

Comments

The clump’s state determines whether the clump will be considered as a candidate for rendering and picking.

The clump states are:

• rwON The clump will be a candidate for rendering and picking.

• rwOFF The clump will not be a candidate for rendering and picking.

A state of rwON should be interpreted as making the clump a candidate for rendering and picking. Such a clump will not appear if it lies outside the view volume and it will not be picked unless one of its polygons is the foremost under the pick position.

The state affects only the clump to which it is applied and not to the clump’s children. Thus, to prevent a single clump in a hierarchy from being rendered it is preferable to modify the clump’s state rather than to remove it from a scene with RwRemoveClumpFromScene().

See Also

RwAddClumpToScene()

RwDestroyClump()

RwGetClumpState()

RwRemoveClumpFromScene()