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 cubes 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 clumps polygons; this must be accomplished separately. The following code fragment illustrates this procedure:
RwForAllPolygonsInClumpPointer(clump, (RwPolygon3d*(*)())RwSetPolygonTexture, texture);
See Also