Open CASCADE Technology  7.2.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 &theFrontMat, const OpenGl_Material &theBackMat, 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...
 
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

◆ BackMaterial()

const OpenGl_Material& OpenGl_MaterialState::BackMaterial ( ) const
inline

Return back material.

◆ FrontMaterial()

const OpenGl_Material& OpenGl_MaterialState::FrontMaterial ( ) const
inline

Return front material.

◆ Set()

void OpenGl_MaterialState::Set ( const OpenGl_Material theFrontMat,
const OpenGl_Material theBackMat,
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: