Open CASCADE Technology
7.2.0
|
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... | |
void | Init (const Graphic3d_MaterialAspect &theProp, const Quantity_Color &theInteriorColor) |
Initialize material. More... | |
const OpenGl_Vec4 * | Packed () 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... | |
OpenGL material definition.
|
inline |
|
inline |
void OpenGl_Material::Init | ( | const Graphic3d_MaterialAspect & | theProp, |
const Quantity_Color & | theInteriorColor | ||
) |
Initialize material.
|
inline |
Check this material for equality with another material (without tolerance!).
|
inlinestatic |
|
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 |
Returns packed (serialized) representation of material properties.
|
inline |
Set material color.
|
inline |
|
inline |
OpenGl_Vec4 OpenGl_Material::Ambient |
ambient reflection coefficient
OpenGl_Vec4 OpenGl_Material::Diffuse |
diffuse reflection coefficient
OpenGl_Vec4 OpenGl_Material::Emission |
material emission
OpenGl_Vec4 OpenGl_Material::Params |
extra packed parameters
OpenGl_Vec4 OpenGl_Material::Specular |
glossy reflection coefficient