RenderWare V2.1

Previous Page Index Next Page

RwBool

RwSetSurfaceMaterialModes(RwMaterialModes modes);

Description

Sets the Material mode (or modes) of the current material.

Arguments

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

Return Value

TRUE if successful, and FALSE 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 RwAddMaterialModeToSurface(), which simply adds one or more Material modes to the current material’s set of modes, RwSetSurfaceMaterialModes() replaces the current material’s entire set of modes with those specified.

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

See Also

RwAddMaterialModeToMaterial()

RwAddMaterialModeToPolygon()

RwAddMaterialModeToSurface()

RwGetMaterialModes()

RwGetPolygonMaterialModes()

RwRemoveMaterialModeFromMaterial()

RwRemoveMaterialModeFromPolygon()

RwRemoveMaterialModeFromSurface()

RwSetMaterialModes()

RwSetPolygonMaterialModes()

RwSetSurfaceMaterialModes()