RenderWare V2.1

Previous Page Index Next Page

RwMaterial *

RwSetMaterialModes(RwMaterial *material, RwMaterialModes modes);

Description

Sets the Material modes of the material.

Arguments

material Pointer to the material.

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

Return Value

The argument material if successful, and NULL otherwise.

Comments

The following material modes are supported:

• rwDOUBLE The material will be rendered double sided.

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

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

See Also

RwAddMaterialModeToMaterial()

RwAddMaterialModeToPolygon()

RwAddMaterialModeToSurface()

RwGetMaterialModes()

RwGetPolygonMaterialModes()

RwRemoveMaterialModeFromMaterial()

RwRemoveMaterialModeFromPolygon()

RwRemoveMaterialModeFromSurface()

RwSetMaterialModes()

RwSetPolygonMaterialModes()

RwSetSurfaceMaterialModes()