Provides a data container for material. More...
Public Member Functions | |
ModelData_Material () | |
Constructor. More... | |
ModelData_Material (const ModelData_Color &theAmbientColor, const ModelData_Color &theDiffuseColor, const ModelData_Color &theSpecularColor, const ModelData_Color &theEmissionColor, float theShininess) | |
Constructor. | |
ModelData_Material (const ModelData_Color &theDiffuseColor) | |
Constructor. More... | |
const ModelData_Color & | AmbientColor () const |
ModelData_Color & | AmbientColor () |
const ModelData_Color & | DiffuseColor () const |
ModelData_Color & | DiffuseColor () |
const ModelData_Color & | SpecularColor () const |
ModelData_Color & | SpecularColor () |
const ModelData_Color & | EmissionColor () const |
ModelData_Color & | EmissionColor () |
float | Shininess () const |
float & | Shininess () |
Provides a data container for material.
cadex::ModelData_Material::ModelData_Material | ( | ) |
Constructor.
Sets default values following conventions described at http://www.opengl.org/sdk/docs/man2/xhtml/glMaterial.xml.
cadex::ModelData_Material::ModelData_Material | ( | const ModelData_Color & | theDiffuseColor | ) |
Constructor.
Creates a material from a color. Sets other colors to default values following conventions described at http://www.opengl.org/sdk/docs/man2/xhtml/glMaterial.xml.
|
inline |
Returns the AmbientColor property.
|
inline |
Returns the AmbientColor property.
|
inline |
Returns the DiffuseColor property.
|
inline |
Returns the DiffuseColor property.
|
inline |
Returns the EmissionColor property.
|
inline |
Returns the EmissionColor property.
|
inline |
Returns the Shininess property.
|
inline |
theValue must be in the [0, 128] range.
Returns the Shininess property.
|
inline |
Returns the SpecularColor property.
|
inline |
Returns the SpecularColor property.