h o m e | d o c u m e n t a t i o n | c l a s s h i e r a r c h y |
#include <Material.h>
Public Member Functions | |
Material () | |
Material (const float *iDiffuse, const float *iAmbiant, const float *iSpecular, const float *iEmission, const float iShininess) | |
Material (const Material &m) | |
virtual | ~Material () |
const float * | diffuse () const |
const float | diffuseR () const |
const float | diffuseG () const |
const float | diffuseB () const |
const float | diffuseA () const |
const float * | specular () const |
const float | specularR () const |
const float | specularG () const |
const float | specularB () const |
const float | specularA () const |
const float * | ambient () const |
const float | ambientR () const |
const float | ambientG () const |
const float | ambientB () const |
const float | ambientA () const |
const float * | emission () const |
const float | emissionR () const |
const float | emissionG () const |
const float | emissionB () const |
const float | emissionA () const |
const float | shininess () const |
void | SetDiffuse (const float r, const float g, const float b, const float a) |
void | SetSpecular (const float r, const float g, const float b, const float a) |
void | SetAmbient (const float r, const float g, const float b, const float a) |
void | SetEmission (const float r, const float g, const float b, const float a) |
void | SetShininess (const float s) |
|
Default constructor |
|
Builds a Material from its diffuse, ambiant, specular, emissive colors and a shininess coefficient.
|
|
Copy constructor |
|
Destructor |
|
Returns the ambiant color as a 4 float array |
|
Returns the alpha component of the ambiant color |
|
Returns the blue component of the ambiant color |
|
Returns the green component of the ambiant color |
|
Returns the red component of the ambiant color |
|
Returns the diffuse color as a 4 float array |
|
Returns the alpha component of the diffuse color |
|
Returns the blue component of the diffuse color |
|
Returns the green component of the diffuse color |
|
Returns the red component of the diffuse color |
|
Returns the emissive color as a 4 float array |
|
Returns the alpha component of the emissive color |
|
Returns the blue component of the emissive color |
|
Returns the green component of the emissive color |
|
Returns the red component of the emissive color |
|
Sets the ambiant color.
|
|
Sets the diffuse color.
|
|
Sets the emissive color.
|
|
Sets the shininess.
|
|
Sets the specular color.
|
|
Returns the shininess coefficient |
|
Returns the specular color as a 4 float array |
|
Returns the alpha component of the specular color |
|
Returns the blue component of the specular color |
|
Returns the green component of the specular color |
|
Returns the red component of the specular color |