Open CASCADE Technology 7.8.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.
 
void Set (const OpenGl_Material &theMat, const float theAlphaCutoff, const bool theToDistinguish, const bool theToMapTexture)
 Sets new material aspect.
 
const OpenGl_MaterialMaterial () 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
 

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: