RenderWare V2.1

Previous Page Index Next Page

RwClump *

RwSetClumpVertices(RwClump *clump, RwInt32 *vlist, RwV3d *coords, RwInt32 nverts);

Description

Sets the object space coordinates of one or more vertices of the clump.

Arguments

clump Pointer to the clump.

vlist Pointer to an array of vertex indices.

coords Pointer to an array of vertex coordinates (in object space coordinates).

nverts Number of vertices whose coordinates will be modified.

Return Value

The argument clump if successful, and NULL otherwise.

Comments

Each element of the indices array gives the vertex index of a vertex to modify, the corresponding element of the coords array gives the new coordinates of that vertex.

The arrays indices and coords must be of length nverts. There must be at least nverts vertices in the clump.

It is considerably more efficient to use a single call to RwSetClumpVertices() then multiple calls to RwSetClumpVertex() when modifying two or more vertices of a clump.

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

For 16-bit applications accessing the RenderWare DLL the vertex index list pointed to by vlist must be declared as an array of RwInt32s and not ints.

See Also

RwGetClumpVertex()

RwSetClumpVertex()

RwSetClumpVertexNormal()

RwSetClumpVertexUV()