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

OpenGl_Material Struct Reference

OpenGL material definition. More...

#include <OpenGl_Material.hxx>

Public Member Functions

float Shine () const
 
float & ChangeShine ()
 
float Transparency () const
 
float & ChangeTransparency ()
 
void SetColor (const OpenGl_Vec4 &theColor)
 Set material color. More...
 
 OpenGl_Material ()
 Empty constructor. More...
 
void Init (const Graphic3d_MaterialAspect &theProp, const Quantity_Color &theInteriorColor)
 Initialize material. More...
 
const OpenGl_Vec4Packed () const
 Returns packed (serialized) representation of material properties. More...
 
bool IsEqual (const OpenGl_Material &theOther) const
 Check this material for equality with another material (without tolerance!). More...
 
bool operator== (const OpenGl_Material &theOther)
 Check this material for equality with another material (without tolerance!). More...
 
bool operator== (const OpenGl_Material &theOther) const
 
bool operator!= (const OpenGl_Material &theOther)
 Check this material for non-equality with another material (without tolerance!). More...
 
bool operator!= (const OpenGl_Material &theOther) const
 

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_Material()

OpenGl_Material::OpenGl_Material ( )
inline

Empty constructor.

Member Function Documentation

◆ ChangeShine()

float& OpenGl_Material::ChangeShine ( )
inline

◆ ChangeTransparency()

float& OpenGl_Material::ChangeTransparency ( )
inline

◆ Init()

void OpenGl_Material::Init ( const Graphic3d_MaterialAspect theProp,
const Quantity_Color theInteriorColor 
)

Initialize material.

◆ IsEqual()

bool OpenGl_Material::IsEqual ( const OpenGl_Material theOther) const
inline

Check this material for equality with another material (without tolerance!).

◆ NbOfVec4()

static Standard_Integer OpenGl_Material::NbOfVec4 ( )
inlinestatic

◆ operator!=() [1/2]

bool OpenGl_Material::operator!= ( const OpenGl_Material theOther)
inline

Check this material for non-equality with another material (without tolerance!).

◆ operator!=() [2/2]

bool OpenGl_Material::operator!= ( const OpenGl_Material theOther) const
inline

◆ operator==() [1/2]

bool OpenGl_Material::operator== ( const OpenGl_Material theOther)
inline

Check this material for equality with another material (without tolerance!).

◆ operator==() [2/2]

bool OpenGl_Material::operator== ( const OpenGl_Material theOther) const
inline

◆ Packed()

const OpenGl_Vec4* OpenGl_Material::Packed ( ) const
inline

Returns packed (serialized) representation of material properties.

◆ SetColor()

void OpenGl_Material::SetColor ( const OpenGl_Vec4 theColor)
inline

Set material color.

◆ Shine()

float OpenGl_Material::Shine ( ) const
inline

◆ Transparency()

float OpenGl_Material::Transparency ( ) const
inline

Field Documentation

◆ Ambient

OpenGl_Vec4 OpenGl_Material::Ambient

ambient reflection coefficient

◆ Diffuse

OpenGl_Vec4 OpenGl_Material::Diffuse

diffuse reflection coefficient

◆ Emission

OpenGl_Vec4 OpenGl_Material::Emission

material emission

◆ Params

OpenGl_Vec4 OpenGl_Material::Params

extra packed parameters

◆ Specular

OpenGl_Vec4 OpenGl_Material::Specular

glossy reflection coefficient


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