RenderWare V2.1

Previous Page Index Next Page

RwClump *

RwClumpEnd(RwClump **pointer);

Description

Marks the end of the construction of clump and returns the newly created clump. The main transformation stack, the joint transformation stack and the material stack are restored to their state at the time of the matching RwClumpBegin().

Arguments

pointer Pointer to the clump pointer that will receive the clump.

Return Value

A pointer to the new clump if successful, and NULL otherwise.

Comments

The function returns a pointer to the newly created clump. If a non-NULL argument is passed then pointer will also be set to point to the new clump.

When there are nested RwClumpEnd() calls, i.e., a hierarchical model is being built, NULL should be used as the argument in all RwClumpEnd() calls except the top-level one. Do not rely on the clump pointers returned by this function when creating child clumps.

See Also

RwClumpBegin()

RwModelBegin()

RwModelEnd()

RwProtoBegin()

RwProtoEnd()