#include <material.h>
void ApplyAll |
( |
GLenum |
face = GL_FRONT_AND_BACK | ) |
|
Applies all of the components of this material to the OpenGL pipeline
- Parameters
-
face | Which faces to apply this to (front, back or front and back faces) |
void ApplyAmbient |
( |
GLenum |
face = GL_FRONT_AND_BACK | ) |
|
Applies the ambient component of this material to the OpenGL pipeline
- Parameters
-
face | Which faces to apply this to (front, back or front and back faces) |
void ApplyDiffuse |
( |
GLenum |
face = GL_FRONT_AND_BACK | ) |
|
Applies the diffuse component of this material to the OpenGL pipeline
- Parameters
-
face | Which faces to apply this to (front, back or front and back faces) |
void ApplyEmission |
( |
GLenum |
face = GL_FRONT_AND_BACK | ) |
|
Applies the emission component of this material to the OpenGL pipeline
- Parameters
-
face | Which faces to apply this to (front, back or front and back faces) |
void ApplyShininess |
( |
GLenum |
face = GL_FRONT_AND_BACK | ) |
|
Applies the shininess component of this material to the OpenGL pipeline
- Parameters
-
face | Which faces to apply this to (front, back or front and back faces) |
void ApplySpecular |
( |
GLenum |
face = GL_FRONT_AND_BACK | ) |
|
Applies the specular component of this material to the OpenGL pipeline
- Parameters
-
face | Which faces to apply this to (front, back or front and back faces) |
- Returns
- True if this material is in use
Sets whether this material is in use
- Parameters
-
val | Whether this material is in use |
Materials are equivalent if all of their parameters are the same
std::string& Name |
( |
void |
| ) |
|
void Name |
( |
const std::string & |
name | ) |
|
Sets the material name
- Parameters
-
The shininess value for the default material
String name of the material
Ambient component of the material
The ambient value for the default material
Specular component of the material
The specular value for the default material
Shininess component of the material
True if the material is in use
Emission component of the material
The emission value for the default material
Diffuse component of the material
The diffuse value for the default material
The documentation for this class was generated from the following file: