RenderWare V2.1

Previous Page Index Next Page

RwMaterial *

RwSetMaterialTextureModes(RwMaterial *material, RwTextureModes modes);

Description

Sets the texture modes of the material. Texture modes permit fine grain control over the rendering of textures.

Arguments

material Pointer to the material.

modes A bitfield representing a texture mode (or "bitwise or" of modes).

Return Value

The argument material if successful, and NULL otherwise.

Comments

The texture modes are:

• rwLIT The texture will be lit according to the current light sampling type of the material (rwFACET or rwVERTEX).

• rwFORESHORTEN The texture will be foreshortened in a perspectively correct manner.

• rwFILTER A filter will be applied to the texture to reduce the effect of pixelation due to aliasing.

For further information see the Texture Modes section in Chapter 2: Data Types.

Unlike RwAddTextureModeToMaterial(), which simply adds one or more texture modes to a material’s set of modes, RwSetMaterialTextureModes() replaces a material’s entire set of modes with those specified.

See Also

RwAddTextureModeToMaterial()

RwGetMaterialTextureModes()

RwRemoveTextureModeFromMaterial()

RwSetMaterialLightSampling()

RwSetMaterialTexture()

RwSetPolygonTextureModes()

RwSetSurfaceTextureModes()