RenderWare V2.1

Previous Page Index Next Page

RwReal

RwGetPolygonOpacity(RwPolygon3d *polygon);

Description

Retrieves the opacity of the polygon’s material.

Arguments

polygon Pointer to the polygon.

Return Value

The opacity if successful. Errors can be checked for using RwGetError().

Comments

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

See Also

RwGetError()

RwGetMaterialOpacity()

RwSetPolygonOpacity()