Open CASCADE Technology  7.4.1.dev
Public Member Functions | Data Fields
OpenGl_Material Struct Reference

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
 

Detailed Description

OpenGL material definition.

Member Function Documentation

◆ Init()

void OpenGl_Material::Init ( const OpenGl_Context theCtx,
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!).

◆ 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

◆ SetColor()

void OpenGl_Material::SetColor ( const OpenGl_Vec4 theColor)
inline

Set material color.

Field Documentation

◆ Common

OpenGl_MaterialCommon OpenGl_Material::Common

◆ Pbr

OpenGl_MaterialPBR OpenGl_Material::Pbr

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