RenderWare V2.1

Previous Page Index Next Page

RwInt32

RwVertexExt(RwReal x, RwReal y, RwReal z, RwUV *uv, RwV3d *normal);

Description

Adds a vertex, transformed by the CTM, to the clump under construction and specifies the vertex’s texture coordinates and normal vector.

Arguments

x X coordinate of the vertex.

y Y coordinate of the vertex.

z Z coordinate of the vertex.

uv Pointer to the RwUV structure holding the vertex’s texture coordinates.

normal Pointer to the RwV3d structure holding the X, Y, and Z components of the normal vector.

Return Value

The index of the new vertex if successful, and 0 otherwise.

Comments

NULL may be passed as the value of uv or normal if the application programmer does not wish to set the value of either or both of these parameters.

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

See Also

RwAddVertexToClump()

RwClumpBegin()

RwClumpEnd()

RwGetClumpVertexUV()

RwGetClumpVertexNormal()

RwPolygon()

RwPolygonExt()

RwProtoBegin()

RwProtoEnd()

RwQuad()

RwQuadExt()

RwSetClumpVertexUV()

RwTriangle()

RwTriangleExt()

RwVertex()