RenderWare V2.1

Previous Page Index Next Page

RwTextureModes

RwGetMaterialTextureModes(RwMaterial *material);

Description

Retrieves the material’s texture mode (or modes).

Arguments

material Pointer to the material.

Return Value

The material’s texture modes if successful. Errors can be checked for using RwGetError().

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.

See Also

RwAddTextureModeToMaterial()

RwGetError()

RwGetMaterialTexture()

RwGetPolygonTextureModes()

RwRemoveTextureModeFromMaterial()

RwSetMaterialTextureModes()