Open CASCADE Technology  6.9.0
Public Member Functions | Static Public Member Functions | Data Fields

OpenGl_Material Struct Reference

OpenGL material definition. More...

#include <OpenGl_Workspace.hxx>

Public Member Functions

Standard_ShortReal Shine () const
 
Standard_ShortRealChangeShine ()
 
Standard_ShortReal Transparency () const
 
Standard_ShortRealChangeTransparency ()
 
void Init (const OPENGL_SURF_PROP &theProps)
 Initialize material. 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.

Member Function Documentation

Standard_ShortReal& OpenGl_Material::ChangeShine ( )
inline
Standard_ShortReal& OpenGl_Material::ChangeTransparency ( )
inline
void OpenGl_Material::Init ( const OPENGL_SURF_PROP theProps)

Initialize material.

static Standard_Integer OpenGl_Material::NbOfVec4 ( )
inlinestatic
const OpenGl_Vec4* OpenGl_Material::Packed ( ) const
inline

Returns packed (serialized) representation of material properties.

Standard_ShortReal OpenGl_Material::Shine ( ) const
inline
Standard_ShortReal OpenGl_Material::Transparency ( ) const
inline

Field Documentation

OpenGl_Vec4 OpenGl_Material::Ambient

ambient reflection coefficient

OpenGl_Vec4 OpenGl_Material::Diffuse

diffuse reflection coefficient

OpenGl_Vec4 OpenGl_Material::Emission

material emission

OpenGl_Vec4 OpenGl_Material::Params

extra packed parameters

OpenGl_Vec4 OpenGl_Material::Specular

glossy reflection coefficient


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