RenderWare V2.1

Previous Page Index Next Page

RwBool

RwSetSurfaceOpacity(RwReal opacity);

Description

Sets the opacity of the current material.

Arguments

opacity Opacity in the range CREAL(0.0) to CREAL(1.0).

Return Value

TRUE if successful, and FALSE otherwise.

Comments

An opacity of CREAL(1.0) yields an entirely opaque polygon. An opacity of CREAL(0.0) yields an entirely transparent polygon.

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

See Also

RwModelBegin()

RwModelEnd()

RwSetMaterialOpacity()

RwSetPolygonOpacity()