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