Open CASCADE Technology  7.7.2
Public Member Functions | Static Public Member Functions | Data Fields
OpenGl_Material Struct Reference

OpenGL material definition. More...

#include <OpenGl_Material.hxx>

Public Member Functions

void SetColor (const OpenGl_Vec3 &theColor)
 Set material color. More...
 
void Init (const OpenGl_Context &theCtx, const Graphic3d_MaterialAspect &theFront, const Quantity_Color &theFrontColor, const Graphic3d_MaterialAspect &theBack, const Quantity_Color &theBackColor)
 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
 
const OpenGl_Vec4PackedCommon () const
 Returns packed (serialized) representation of common material properties. More...
 
const OpenGl_Vec4PackedPbr () const
 Returns packed (serialized) representation of PBR material properties. More...
 

Static Public Member Functions

static Standard_Integer NbOfVec4Common ()
 
static Standard_Integer NbOfVec4Pbr ()
 

Data Fields

OpenGl_MaterialCommon Common [2]
 
OpenGl_MaterialPBR Pbr [2]
 

Detailed Description

OpenGL material definition.

Member Function Documentation

void OpenGl_Material::Init ( const OpenGl_Context theCtx,
const Graphic3d_MaterialAspect theFront,
const Quantity_Color theFrontColor,
const Graphic3d_MaterialAspect theBack,
const Quantity_Color theBackColor 
)

Initialize material.

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

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

static Standard_Integer OpenGl_Material::NbOfVec4Common ( )
inlinestatic
static Standard_Integer OpenGl_Material::NbOfVec4Pbr ( )
inlinestatic
bool OpenGl_Material::operator!= ( const OpenGl_Material theOther)
inline

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

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

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

bool OpenGl_Material::operator== ( const OpenGl_Material theOther) const
inline
const OpenGl_Vec4* OpenGl_Material::PackedCommon ( ) const
inline

Returns packed (serialized) representation of common material properties.

const OpenGl_Vec4* OpenGl_Material::PackedPbr ( ) const
inline

Returns packed (serialized) representation of PBR material properties.

void OpenGl_Material::SetColor ( const OpenGl_Vec3 theColor)
inline

Set material color.

Field Documentation

OpenGl_MaterialCommon OpenGl_Material::Common[2]
OpenGl_MaterialPBR OpenGl_Material::Pbr[2]

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