#include <vpmaterial.h>
Public Member Functions | |
VPMaterial () | |
VPMaterial (const VPMaterial &m) | |
VPMaterial (const VPColor &c) | |
Creates plastic-looking material of given color. | |
VPMaterial (const VPTexture &t) | |
VPMaterial (const VPColor &c, float spc, float amb, float ems, float shi) | |
Sets all colors to be shades of one single color. | |
VPMaterial & | operator= (const VPMaterial &m) |
void | SetDiffuseColor (const VPColor &c) |
Sets the diffuse color (main color) of the material. | |
const VPColor & | GetDiffuseColor () const |
Returns the diffuse color. | |
void | SetSpecularColor (const VPColor &c) |
Sets the specular color (highlight color) of the material. | |
void | SetAmbientColor (const VPColor &c) |
Sets the ambient color of the material. | |
void | SetEmissiveColor (const VPColor &c) |
Sets the emissive color of the material. | |
void | SetShininess (float newValue) |
Set the shininess of the material. | |
bool | DrawOGL () const |
Draws the material using OpenGL engine. | |
Static Public Member Functions | |
static const VPMaterial & | LIGHT_PLASTIC_GRAY () |
static const VPMaterial & | DARK_PLASTIC_GRAY () |
static const VPMaterial & | PLASTIC_RED () |
static const VPMaterial & | PLASTIC_GREEN () |
static const VPMaterial & | PLASTIC_BLUE () |
FixMe: Put detailed description here.
Definition at line 20 of file vpmaterial.h.
|
Definition at line 23 of file vpmaterial.cpp. |
|
Definition at line 27 of file vpmaterial.cpp. References ambient, color, emissive, shininess, and specular. |
|
Creates plastic-looking material of given color.
Definition at line 36 of file vpmaterial.cpp. References VPColor::GetScaled(). |
|
Definition at line 45 of file vpmaterial.cpp. |
|
Sets all colors to be shades of one single color.
Definition at line 49 of file vpmaterial.cpp. References VPColor::GetScaled(). |
|
Definition at line 74 of file vpmaterial.cpp. Referenced by VPMeshObject::MakeBox(). |
|
Draws the material using OpenGL engine.
Definition at line 98 of file vpmaterial.cpp. References VPColor::Get(). Referenced by VPSphere::DrawInstanceOGL(), and VPMesh::DrawInstanceOGL(). |
|
Returns the diffuse color.
Definition at line 35 of file vpmaterial.h. |
|
Definition at line 68 of file vpmaterial.cpp. |
|
Definition at line 58 of file vpmaterial.cpp. References ambient, color, emissive, shininess, and specular. |
|
Definition at line 92 of file vpmaterial.cpp. References VPColor::BLUE(). |
|
Definition at line 86 of file vpmaterial.cpp. References VPColor::GREEN(). |
|
Definition at line 80 of file vpmaterial.cpp. References VPColor::RED(). |
|
Sets the ambient color of the material.
Definition at line 39 of file vpmaterial.h. |
|
Sets the diffuse color (main color) of the material.
Definition at line 33 of file vpmaterial.h. |
|
Sets the emissive color of the material.
Definition at line 41 of file vpmaterial.h. |
|
Set the shininess of the material. According to the "OpenGL programming guide" (red book), shininess should be in the range of 0.0 (no shininess) to 128.0 (very shiny). Definition at line 47 of file vpmaterial.h. |
|
Sets the specular color (highlight color) of the material.
Definition at line 37 of file vpmaterial.h. |