RenderWare V2.1

Previous Page Index Next Page

RwTextureModes

RwGetPolygonTextureModes(RwPolygon3d *polygon);

Description

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

Arguments

polygon Pointer to the polygon.

Return Value

The polygon’s 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

RwAddTextureModeToPolygon()

RwGetError()

RwGetMaterialTextureModes()

RwRemoveTextureModeFromPolygon()

RwSetPolygonTexture()

RwSetPolygonTextureModes()