RwGetClumpImmVertex(RwClump *clump, RwInt32 vindex);
Description
Returns an immediate mode vertex structure for a vertex in a clump.
Arguments
clump Pointer to the clump from which the immediate mode vertex structure is to be found.
vindex Vertex index (1 is the first vertex in a clump)
Comments
This function allows low level access into a clumps vertices. Doing this could be for many reasons - speed and flexibility being the most critical. Using the structure you can perform your own lighting clumps (by first switching off clump lighting with RwSetClumpLightSampleRate()). It is also possible to quickly change the texture and object space coordinates for a vertex. It is important to be careful when doing thing as incorrect values can cause unexpected results - possibly crashes. Read the chapter on immediate mode rendering for more details.
The maximum luminance value can be found using the RwGetDeviceInfo() with the rwMAXLUMINANCE parameter.
This structure can also be useful for pulling out screen space coordinates of vertices in an immediate mode callback. Note that if you wish to do this it is advisable to make a call to RwImmVertexPixelSpace() to force the vertex into pixel space.
See Also