Open CASCADE Technology  7.5.0
Public Member Functions | Static Public Member Functions | Data Fields
OpenGl_MaterialCommon Struct Reference

OpenGL material definition. More...

#include <OpenGl_Material.hxx>

Public Member Functions

float Shine () const
 
float & ChangeShine ()
 
float Transparency () const
 
float & ChangeTransparency ()
 
 OpenGl_MaterialCommon ()
 Empty constructor. More...
 
const OpenGl_Vec4Packed () const
 Returns packed (serialized) representation of material properties. More...
 

Static Public Member Functions

static Standard_Integer NbOfVec4 ()
 

Data Fields

OpenGl_Vec4 Ambient
 ambient reflection coefficient More...
 
OpenGl_Vec4 Diffuse
 diffuse reflection coefficient More...
 
OpenGl_Vec4 Specular
 glossy reflection coefficient More...
 
OpenGl_Vec4 Emission
 material emission More...
 
OpenGl_Vec4 Params
 extra packed parameters More...
 

Detailed Description

OpenGL material definition.

Constructor & Destructor Documentation

◆ OpenGl_MaterialCommon()

OpenGl_MaterialCommon::OpenGl_MaterialCommon ( )
inline

Empty constructor.

Member Function Documentation

◆ ChangeShine()

float& OpenGl_MaterialCommon::ChangeShine ( )
inline

◆ ChangeTransparency()

float& OpenGl_MaterialCommon::ChangeTransparency ( )
inline

◆ NbOfVec4()

static Standard_Integer OpenGl_MaterialCommon::NbOfVec4 ( )
inlinestatic

◆ Packed()

const OpenGl_Vec4* OpenGl_MaterialCommon::Packed ( ) const
inline

Returns packed (serialized) representation of material properties.

◆ Shine()

float OpenGl_MaterialCommon::Shine ( ) const
inline

◆ Transparency()

float OpenGl_MaterialCommon::Transparency ( ) const
inline

Field Documentation

◆ Ambient

OpenGl_Vec4 OpenGl_MaterialCommon::Ambient

ambient reflection coefficient

◆ Diffuse

OpenGl_Vec4 OpenGl_MaterialCommon::Diffuse

diffuse reflection coefficient

◆ Emission

OpenGl_Vec4 OpenGl_MaterialCommon::Emission

material emission

◆ Params

OpenGl_Vec4 OpenGl_MaterialCommon::Params

extra packed parameters

◆ Specular

OpenGl_Vec4 OpenGl_MaterialCommon::Specular

glossy reflection coefficient


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