Kinetic Visualization
 All Classes Functions Variables Pages
Public Types | Public Member Functions
Material Class Reference

List of all members.

Public Types

typedef boost::shared_ptr
< Material
MaterialPtr

Public Member Functions

 Material ()
 Material (glm::vec4 emissive, glm::vec4 ambient, glm::vec4 diffuse, glm::vec4 specular, float shininess)
void SetEmissive (glm::vec4 emissive)
void SetAmbient (glm::vec4 ambient)
void SetDiffuse (glm::vec4 diffuse)
void SetSpecular (glm::vec4 specular)
void SetShininess (float shininess)
glm::vec4 GetEmissive ()
glm::vec4 GetAmbient ()
glm::vec4 GetDiffuse ()
glm::vec4 GetSpecular ()
float GetShininess ()

Constructor & Destructor Documentation

Material::Material ( )

Standardconstructor

Material::Material ( glm::vec4  emissive,
glm::vec4  ambient,
glm::vec4  diffuse,
glm::vec4  specular,
float  shininess 
)

Constructor

Parameters:
emissiveemissive value
ambientambient value
diffusediffuse value
specularspecular value
shininessshininess value

Member Function Documentation

glm::vec4 Material::GetAmbient ( )

This method returns the ambient value of the material

Returns:
ambient value
glm::vec4 Material::GetDiffuse ( )

This method returns the diffuse value of the material

Returns:
diffuse value
glm::vec4 Material::GetEmissive ( )

This method returns the emissive value of the material

Returns:
emissive value
float Material::GetShininess ( )

This method returns the shininess value of the material

Returns:
shininess value
glm::vec4 Material::GetSpecular ( )

This method returns the specular value of the material

Returns:
specular value
void Material::SetAmbient ( glm::vec4  ambient)

This method sets the ambinet value

Parameters:
ambinetambinet value
void Material::SetDiffuse ( glm::vec4  diffuse)

This method sets the diffuse value

Parameters:
diffusediffuse value
void Material::SetEmissive ( glm::vec4  emissive)

This method sets the emissive value

Parameters:
emissiveemissive value
void Material::SetShininess ( float  shininess)

This method sets the shininess value

Parameters:
shininessshininess value
void Material::SetSpecular ( glm::vec4  specular)

This method sets the specular value

Parameters:
specularspecular value

The documentation for this class was generated from the following files: