Open CASCADE Technology  7.3.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

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_MaterialFrontMaterial () const
 Return front material. More...
const OpenGl_MaterialBackMaterial () const
 Return back material. More...
float AlphaCutoff () const
 Alpha cutoff value. 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 ( )

Creates new material state.

Member Function Documentation

◆ AlphaCutoff()

float OpenGl_MaterialState::AlphaCutoff ( ) const

Alpha cutoff value.

◆ BackMaterial()

const OpenGl_Material& OpenGl_MaterialState::BackMaterial ( ) const

Return back material.

◆ FrontMaterial()

const OpenGl_Material& OpenGl_MaterialState::FrontMaterial ( ) const

Return front material.

◆ Set()

void OpenGl_MaterialState::Set ( const OpenGl_Material theFrontMat,
const OpenGl_Material theBackMat,
const float  theAlphaCutoff,
const bool  theToDistinguish,
const bool  theToMapTexture 

Sets new material aspect.

◆ ToDistinguish()

bool OpenGl_MaterialState::ToDistinguish ( ) const

Distinguish front/back flag.

◆ ToMapTexture()

bool OpenGl_MaterialState::ToMapTexture ( ) const

Flag for mapping a texture.

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