A class that wraps all of the parameters for specifying material properties in an OpenGL context.
GLMaterial.h
A class that wraps all of the parameters for specifying material properties in an OpenGL context. | |
The default GLMaterial constructor. | |
The wxColour GLMaterial constructor. | |
The different kinds of properties that can be set. | |
Sets the color values of a certain property of the material. | |
Sets both the ambient and diffuse properties of the material. | |
Multiplies the specified property by a certain value. | |
Calls OpenGL directly and sets the current material properties to this material. | |
The ambient color. | |
The diffuse color. | |
The emissive color. | |
The specular color. | |
The shininess value. |
The default GLMaterial constructor. | |
The wxColour GLMaterial constructor. | |
The different kinds of properties that can be set. | |
Sets the color values of a certain property of the material. | |
Sets both the ambient and diffuse properties of the material. | |
Multiplies the specified property by a certain value. | |
Calls OpenGL directly and sets the current material properties to this material. |
| GLMaterial() |
|
|
|
| void UseMaterial() const |
| GLColor mAmbient |
| GLColor mDiffuse |
| GLColor mEmissive |
| GLColor mSpecular |
| GLfloat mShininess |