Open CASCADE Technology
6.9.0
|
OpenGL material definition. More...
#include <OpenGl_Workspace.hxx>
Public Member Functions | |
Standard_ShortReal | Shine () const |
Standard_ShortReal & | ChangeShine () |
Standard_ShortReal | Transparency () const |
Standard_ShortReal & | ChangeTransparency () |
void | Init (const OPENGL_SURF_PROP &theProps) |
Initialize material. More... | |
const OpenGl_Vec4 * | Packed () const |
Returns packed (serialized) representation of material properties. More... | |
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 OPENGL_SURF_PROP & | theProps | ) |
Initialize material.
|
inlinestatic |
|
inline |
Returns packed (serialized) representation of material properties.
|
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