RenderWare V2.1

Previous Page Index Next Page

RwBool

RwTriangleExt(RwInt32 v1, RwInt32 v2, RwInt32 v3, RwInt32 tag);

Description

Adds a triangle with the specified integer tag to the 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.

tag Integer tag to set (only the least significant 16 bits are valid).

Return Value

TRUE if successful, and FALSE otherwise.

Comments

This function is exactly equivalent to calling RwPolygonExt() 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()

RwFindTaggedPolygon()

RwGetPolygonTag()

RwPolygon()

RwPolygonExt()

RwProtoBegin()

RwProtoEnd()

RwQuad()

RwQuadExt()

RwSetPolygonTag()

RwSetTag()

RwTriangle()

RwVertex()

RwVertexExt()