RenderWare V2.1

Previous Page Index Next Page

RwPolygon3d *

RwReversePolygonFace(RwPolygon3d *polygon);

Description

Reverses the vertex ordering of the polygon.

Arguments

polygon Pointer to the polygon.

Return Value

The argument polygon if successful, and NULL otherwise.

Comments

RwReversePolygonFace() modifies the facedness of a single polygon by reversing the order of the vertices in the polygon’s vertex list.

As this function modifies the geometry of the clump which owns the polygon, the clump is made editable (the rwEDITABLE hint is set) by this function.

See Also

None.