Open CASCADE Technology
7.5.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 &theFrontMat, const OpenGl_Material &theBackMat, const float theAlphaCutoff, const bool theToDistinguish, const bool theToMapTexture) |
Sets new material aspect. More... | |
const OpenGl_Material & | FrontMaterial () const |
Return front material. More... | |
const OpenGl_Material & | BackMaterial () const |
Return back 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 back material.
|
inline |
Return front material.
|
inline |
Return TRUE if alpha test should be enabled.
|
inline |
Sets new material aspect.
|
inline |
Distinguish front/back flag.
|
inline |
Flag for mapping a texture.