47 emissive = m.emissive;
49 specular = m.specular;
50 shininess = m.shininess;
119 glMaterialfv(GL_FRONT, GL_DIFFUSE, fVec);
121 glMaterialfv(GL_FRONT, GL_AMBIENT, fVec);
123 glMaterialfv(GL_FRONT, GL_SPECULAR, fVec);
125 glMaterialfv(GL_FRONT, GL_EMISSION, fVec);
126 glMaterialf(GL_FRONT, GL_SHININESS, shininess);
Material & operator=(const Material &m)
Copies all texture data from one to another.
static const Color & RED()
Red opaque color.
static const Color & BLUE()
Blue opaque color.
Header file for V-ART class "Material".
void SetPlasticColor(const VART::Color &c)
Makes the material to have a plastic-looking of given color.
static const Color & GREEN()
Green opaque color.
static const Material & PLASTIC_BLUE()
static const Material & DARK_PLASTIC_GRAY()
RGBA color representation.
static const Material & PLASTIC_WHITE()
void SetTexture(const Texture &t)
Sets the texture of material.
static const Material & LIGHT_PLASTIC_GRAY()
static const Material & PLASTIC_BLACK()
2D image to use as texture.
void GetScaled(float escalar, float result[4]) const
Multiplies RGB components, keeps A component.
Material properties for graphical objects.
static const Color & BLACK()
Black opaque color.
static const Material & PLASTIC_RED()
bool DrawOGL() const
Draws the material using OpenGL engine.
static const Color & WHITE()
White opaque color.
static const Material & PLASTIC_GREEN()