Open CASCADE Technology 7.8.0
|
Defines generic state of material properties. More...
#include <OpenGl_MaterialState.hxx>
Public Member Functions | |
OpenGl_MaterialState () | |
Creates new material state. | |
void | Set (const OpenGl_Material &theMat, const float theAlphaCutoff, const bool theToDistinguish, const bool theToMapTexture) |
Sets new material aspect. | |
const OpenGl_Material & | Material () const |
Return front material. | |
float | AlphaCutoff () const |
Alpha cutoff value. | |
bool | HasAlphaCutoff () const |
Return TRUE if alpha test should be enabled. | |
bool | ToDistinguish () const |
Distinguish front/back flag. | |
bool | ToMapTexture () const |
Flag for mapping a texture. | |
Public Member Functions inherited from OpenGl_StateInterface | |
OpenGl_StateInterface () | |
Creates new state. | |
Standard_Size | Index () const |
Returns current state index. | |
void | Update () |
Increment current state. | |
Additional Inherited Members | |
Protected Attributes inherited from OpenGl_StateInterface | |
Standard_Size | myIndex |
current state index | |
Defines generic state of material properties.
|
inline |
Creates new material state.
|
inline |
Alpha cutoff value.
|
inline |
Return TRUE if alpha test should be enabled.
|
inline |
Return front material.
|
inline |
Sets new material aspect.
|
inline |
Distinguish front/back flag.
|
inline |
Flag for mapping a texture.