RwPolygon(RwInt32 sides, RwInt32 *vlist);
Description
Adds a polygon to the current clump under construction. The current material is assigned to the polygon.
Arguments
sides Number of sides of the polygon.
vlist Pointer to an array of vertex indices.
Return Value
TRUE if successful, and FALSE otherwise.
Comments
The size of the array vlist must be equal to sides.
This function can only be called within the context of an RwClumpBegin() RwClumpEnd() or RwProtoBegin() RwProtoEnd() block.
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
RwQuad()
RwVertex()