RenderWare V2.1

Previous Page Index Next Page

RwState

RwGetClumpState(RwClump *clump);

Description

Retrieves the clump‘s on/off state.

Arguments

clump Pointer to the clump.

Return Value

The clump’s state if successful, and rwNASTATE otherwise.

Comments

The states are:

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

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

A state of rwON should be interpreted as making a clump a candidate for rendering and picking. Such a clump will not be rendered 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 that 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()

RwRemoveClumpFromScene()

RwSetClumpState()