5 #ifndef VART_MATERIAL_H
6 #define VART_MATERIAL_H
31 Material(
const Color& c,
float spc,
float amb,
float ems,
float shi);
Material & operator=(const Material &m)
Copies all texture data from one to another.
const Color & GetEmissiveColor() const
Returns the emissive color of the material.
const Color & GetSpecularColor() const
Returns the specular color of the material.
void SetEmissiveColor(const Color &c)
Sets the emissive color of the material.
void SetPlasticColor(const VART::Color &c)
Makes the material to have a plastic-looking of given color.
const Color & GetAmbientColor() const
Returns the ambient color of the material.
static const Material & PLASTIC_BLUE()
void SetShininess(float newValue)
Set the shininess of the material.
static const Material & DARK_PLASTIC_GRAY()
bool HasData() const
Indicates if a texture object contains data.
void SetAmbientColor(const Color &c)
Sets the ambient color of the material.
RGBA color representation.
const Color & GetDiffuseColor() const
Returns the diffuse color.
Header file for V-ART class "Texture".
static const Material & PLASTIC_WHITE()
void SetTexture(const Texture &t)
Sets the texture of material.
void SetSpecularColor(const Color &c)
Sets the specular color (highlight color) of the material.
static const Material & LIGHT_PLASTIC_GRAY()
static const Material & PLASTIC_BLACK()
2D image to use as texture.
void SetDiffuseColor(const Color &c)
Sets the diffuse color (main color) of the material.
float GetShininess() const
Return the shininess of the material.
Material properties for graphical objects.
Header file for V-ART class "Color".
static const Material & PLASTIC_RED()
bool DrawOGL() const
Draws the material using OpenGL engine.
bool HasTexture() const
Indicates if a material contains texture.
static const Material & PLASTIC_GREEN()
const VART::Texture & GetTexture() const
Returns the current texture of material.