Open CASCADE Technology
7.1.0.beta
|
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 | 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... | |
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.
|
inlinestatic |
|
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