Open CASCADE Technology
7.5.0
|
OpenGL material definition. More...
#include <OpenGl_Material.hxx>
Public Member Functions | |
void | SetColor (const OpenGl_Vec4 &theColor) |
Set material color. More... | |
void | Init (const OpenGl_Context &theCtx, const Graphic3d_MaterialAspect &theProp, const Quantity_Color &theInteriorColor) |
Initialize material. 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 |
Data Fields | |
OpenGl_MaterialCommon | Common |
OpenGl_MaterialPBR | Pbr |
OpenGL material definition.
void OpenGl_Material::Init | ( | const OpenGl_Context & | theCtx, |
const Graphic3d_MaterialAspect & | theProp, | ||
const Quantity_Color & | theInteriorColor | ||
) |
Initialize material.
|
inline |
Check this material for equality with another material (without tolerance!).
|
inline |
Check this material for non-equality with another material (without tolerance!).
|
inline |
|
inline |
Check this material for equality with another material (without tolerance!).
|
inline |
|
inline |
Set material color.
OpenGl_MaterialCommon OpenGl_Material::Common |
OpenGl_MaterialPBR OpenGl_Material::Pbr |