Open CASCADE Technology  7.7.0
Public Member Functions
OpenGl_MaterialState Class Reference

Defines generic state of material properties. More...

#include <OpenGl_MaterialState.hxx>

Inheritance diagram for OpenGl_MaterialState:
Inheritance graph
[legend]

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_MaterialMaterial () 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...
 

Detailed Description

Defines generic state of material properties.

Constructor & Destructor Documentation

◆ OpenGl_MaterialState()

OpenGl_MaterialState::OpenGl_MaterialState ( )
inline

Creates new material state.

Member Function Documentation

◆ AlphaCutoff()

float OpenGl_MaterialState::AlphaCutoff ( ) const
inline

Alpha cutoff value.

◆ HasAlphaCutoff()

bool OpenGl_MaterialState::HasAlphaCutoff ( ) const
inline

Return TRUE if alpha test should be enabled.

◆ Material()

const OpenGl_Material& OpenGl_MaterialState::Material ( ) const
inline

Return front material.

◆ Set()

void OpenGl_MaterialState::Set ( const OpenGl_Material theMat,
const float  theAlphaCutoff,
const bool  theToDistinguish,
const bool  theToMapTexture 
)
inline

Sets new material aspect.

◆ ToDistinguish()

bool OpenGl_MaterialState::ToDistinguish ( ) const
inline

Distinguish front/back flag.

◆ ToMapTexture()

bool OpenGl_MaterialState::ToMapTexture ( ) const
inline

Flag for mapping a texture.


The documentation for this class was generated from the following file: