RenderWare V2.1

Previous Page Index Next Page

RwInt32

RwAddVertexToClump(RwClump *clump, RwReal x, RwReal y, RwReal z);

Description

Adds a vertex to the clump.

Arguments

clump Pointer to the clump.

x X coordinate of the vertex (in object space coordinates).

y Y coordinate of the vertex (in object space coordinates).

z Z coordinate of the vertex (in object space coordinates).

Return Value

A positive integer representing the index of the vertex within the clump if successful, and 0 otherwise.

Comments

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

The initial texture coordinates of the vertex are [CREAL(0.5), CREAL(0.5)] and the initial unit shading normal is computed by RenderWare.

See Also

RwAddPolygonsToClump()

RwAddPolygonToClump()

RwGetClumpNumVertices()

RwSetClumpVertex()

RwSetClumpVertexUV()

RwSetClumpVertexNormal()

RwSetClumpVertices()