RenderWare V2.1

Previous Page Index Next Page

RwBool

RwTriangle(RwInt32 v1, RwInt32 v2, RwInt32 v3);

Description

Adds a triangle to the current clump under construction. The current material is assigned to the triangle.

Arguments

v1 First vertex of the triangle.

v2 Second vertex of the triangle.

v3 Third vertex of the triangle.

Return Value

TRUE if successful, and FALSE otherwise.

Comments

This function is exactly equivalent to calling RwPolygon() with an array of three vertex indices.

This function can only be called within the context of an RwClumpBegin()RwClumpEnd() or RwProtoBegin()RwProtoEnd() block.

See Also

RwAddPolygonToClump()

RwClumpBegin()

RwClumpEnd()

RwPolygon()

RwPolygonExt()

RwProtoBegin()

RwProtoEnd()

RwQuad()

RwQuadExt()

RwVertex()

RwVertexExt()