RenderWare V2.1

Previous Page Index Next Page

PolygonExt <nsides> <v1> ... <vn> [ Tag <tag> ]

Description

Creates a new polygon with the given vertices and adds it to the current clump under construction. An integer tag may be specified in order to mark the polygon.

Arguments

nsides The number of sides of the polygon.

v1 ... vn The indices of the polygon’s vertices.

tag An optional integer tag to assign to the polygon.

Comments

v1 ... vn are indices into the vertex list of the current clump under construction. The number of indices specified must be equal to nsides.

The current material is applied to the new polygon.

The integer tag is optional. To specify a tag use the optional keyword modifier Tag followed by an integer.

API Equivalent

RwPolygonExt()