RenderWare V2.1

Previous Page Index Next Page

RwBool

RwAddTextureModeToSurface(RwTextureModes mode);

Description

Adds the given texture mode (or modes) to the current material. Texture modes permit fine grain control over the rendering of textures.

Arguments

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

Return Value

TRUE if successful, and FALSE otherwise.

Comments

The following texture modes are supported:

• 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.

This function can only be called within the context of an RwModelBegin()RwModelEnd() block.

See Also

RwAddTextureModeToMaterial()

RwAddTextureModeToPolygon()

RwModelBegin()

RwModelEnd()

RwSetSurfaceTexture()

RwSetSurfaceTextureModes()

RwRemoveTextureModeFromSurface()