Open CASCADE Technology 7.8.2.dev
OpenGl_MaterialCommon Struct Reference

OpenGL material definition. More...

#include <OpenGl_Material.hxx>

Public Member Functions

float Shine () const
 
float & ChangeShine ()
 
 OpenGl_MaterialCommon ()
 Empty constructor.
 
void SetColor (const OpenGl_Vec3 &theColor)
 Set material color.
 

Data Fields

OpenGl_Vec4 Diffuse
 diffuse RGB coefficients + alpha
 
OpenGl_Vec4 Emission
 material RGB emission
 
OpenGl_Vec4 SpecularShininess
 glossy RGB coefficients + shininess
 
OpenGl_Vec4 Ambient
 ambient RGB coefficients
 

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

◆ SetColor()

void OpenGl_MaterialCommon::SetColor ( const OpenGl_Vec3 & theColor)
inline

Set material color.

◆ Shine()

float OpenGl_MaterialCommon::Shine ( ) const
inline

Field Documentation

◆ Ambient

OpenGl_Vec4 OpenGl_MaterialCommon::Ambient

ambient RGB coefficients

◆ Diffuse

OpenGl_Vec4 OpenGl_MaterialCommon::Diffuse

diffuse RGB coefficients + alpha

◆ Emission

OpenGl_Vec4 OpenGl_MaterialCommon::Emission

material RGB emission

◆ SpecularShininess

OpenGl_Vec4 OpenGl_MaterialCommon::SpecularShininess

glossy RGB coefficients + shininess


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