RenderWare V2.1

Previous Page Index Next Page

RwBool

RwProtoInstanceGeometry(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 current material is assigned to the new polygons. The materials of the source polygons are ignored.

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()

RwProtoInstance()