Hide menu
cadex::ModelData_Material Class Reference

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_ColorAmbientColor () const
 
ModelData_ColorAmbientColor ()
 
const ModelData_ColorDiffuseColor () const
 
ModelData_ColorDiffuseColor ()
 
const ModelData_ColorSpecularColor () const
 
ModelData_ColorSpecularColor ()
 
const ModelData_ColorEmissionColor () const
 
ModelData_ColorEmissionColor ()
 
float Shininess () const
 
float & Shininess ()
 

Detailed Description

Provides a data container for material.

Constructor & Destructor Documentation

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.

Member Function Documentation

const ModelData_Color& cadex::ModelData_Material::AmbientColor ( ) const
inline

Returns the AmbientColor property.

ModelData_Color& cadex::ModelData_Material::AmbientColor ( )
inline

Returns the AmbientColor property.

ModelData_Color& cadex::ModelData_Material::DiffuseColor ( )
inline

Returns the DiffuseColor property.

const ModelData_Color& cadex::ModelData_Material::DiffuseColor ( ) const
inline

Returns the DiffuseColor property.

ModelData_Color& cadex::ModelData_Material::EmissionColor ( )
inline

Returns the EmissionColor property.

const ModelData_Color& cadex::ModelData_Material::EmissionColor ( ) const
inline

Returns the EmissionColor property.

float& cadex::ModelData_Material::Shininess ( )
inline

Returns the Shininess property.

float cadex::ModelData_Material::Shininess ( ) const
inline

theValue must be in the [0, 128] range.

Returns the Shininess property.

ModelData_Color& cadex::ModelData_Material::SpecularColor ( )
inline

Returns the SpecularColor property.

const ModelData_Color& cadex::ModelData_Material::SpecularColor ( ) const
inline

Returns the SpecularColor property.