RenderWare V2.1

Previous Page Index Next Page

RwMaterial *

RwAddMaterialModeToMaterial(RwMaterial *material,
RwMaterialModes mode);

Description

Adds the given material mode (or modes) to the material.

Arguments

material Pointer to the material.

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

See Also

RwAddMaterialModeToMaterial()

RwAddMaterialModeToPolygon()

RwAddMaterialModeToSurface()

RwGetMaterialModes()

RwGetPolygonMaterialModes()

RwRemoveMaterialModeFromMaterial()

RwRemoveMaterialModeFromPolygon()

RwRemoveMaterialModeFromSurface()

RwSetMaterialModes()

RwSetPolygonMaterialModes()

RwSetSurfaceMaterialModes()