RenderWare V2.1

Previous Page Index Next Page

RwBool

RwProtoInstance(char *name);

Description

Creates an instance of the named prototype and copies its polygons and vertices to the clump under construction. The source polygons and vertices are transformed by the CTM before being added to the current clump. The materials of the source polygons are copied to the new polygons.

Arguments

name Name of a prototype.

Return Value

TRUE if successful, and FALSE otherwise.

Comments

A prototype of the given name must have already been defined within the enclosing RwModelBegin()RwModelEnd() block.

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

See Also

RwClumpBegin()

RwClumpEnd()

RwModelBegin()

RwModelEnd()

RwProtoBegin()

RwProtoEnd()

RwProtoInstanceGeometry()