SetColor
Sets the material color.
Syntax
- void SetColor(const Vec4& color, int mode=Draw::DiffuseColor)
- void SetColor(float r, float g, float b, float a, int mode=Draw::DiffuseColor)
- void SetColor(float r, float g, float b )
Parameters
- color: the RGBA color to set.
- mode: the color mode. This may be Color::Diffuse or Color::Specular.
- r: the red component of the RGBA color.
- g: the green component of the RGBA color.
- b: the blue component of the RGBA color.
- a: the alpha component of the RGBA color.