RenderWare V2.1

Previous Page Index Next Page

RwPolygon3d *

RwAddPolygonToClump(RwClump *clump, RwInt32 sides, RwInt32 *vlist);

Description

Creates a polygon and adds it to the clump. The current material is applied to the new polygon.

Arguments

clump Pointer to the clump.

sides Number of sides of the polygon.

vlist Pointer to an array of RwInt32s containing the vertex indices of the new polygon.

Return Value

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

Comments

As this function modifies the geometry of the destination clump, the destination clump is made editable (the rwEDITABLE hint is set).

For 16-bit applications accessing the RenderWare DLL the vertex index list pointed to by vlist must be declared as an array of RwInt32s and not ints.

See Also

RwAddHintToClump()

RwAddPolygonsToClump()

RwAddVertexToClump()

RwForAllPolygonsInClump()

RwGetClumpNumPolygons()

RwGetPolygonOwner()