RenderWare V2.1

Previous Page Index Next Page

RwClump *

RwCubicTexturizeClump(RwClump *clump);

Description

Sets the texture coordinates for every polygon belonging to the clump using the cubic projection method.

A cubic mapping results in the construction of a nominal cube which has the texture applied to each of the cube’s six facets. The resulting cube (with a copy of the texture applied to each face) is then mapped to the clump by "shrink wrapping" the clump with the cube.

Arguments

clump Pointer to the clump.

Return Value

The argument clump if successful, and NULL otherwise.

Comments

This function need only be called once, the first time a clump is textured, and not each time the clump is rendered.

Note that this function does not set the textures associated with the clump’s polygons; this must be accomplished separately. The following code fragment illustrates this procedure:

RwForAllPolygonsInClumpPointer(clump, (RwPolygon3d*(*)())RwSetPolygonTexture, texture);

See Also

RwEnvMapClump()

RwForAllPolygonsInClump()

RwSetClumpVertexUV()

RwSetPolygonTexture()

RwSetPolygonUV()

RwSphericalTexturizeClump()

RwVertexExt()