RenderWare V2.1

Previous Page Index Next Page

Polygon <nsides> <v1> ... <vn>

Description

Creates a new polygon with the given vertices and adds it to the current clump under construction.

Arguments

nsides The number of sides of the polygon.

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

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.

Polygon is a synonym of PolygonExt. The optional integer tag may also be specified when using the Polygon keyword.

API Equivalent

RwPolygon()