#include <Material.h>
Public Member Functions | |
Material (EngineParameters::MaterialParams material) | |
float | getKa () const |
void | setKa (float ka) |
float | getKd () const |
void | setKd (float kd) |
float | getKs () const |
void | setKs (float ks) |
float | getShininess () const |
void | setShininess (float shininess) |
GLuint | getTexture () const |
void | setTexture (GLuint texture) |
bool | getHasTexture () const |
void | setHasTexture (bool hasTexture) |
|
Initialize the material with the given parameters.
|
|
Check if the material has a texture.
|
|
Get the ambient coefficient of the material.
|
|
Get the diffuse coefficient of the material.
|
|
Get the specular coefficient of the material.
|
|
Get the shininess of the material. Higher shininess causes sharper highlights.
|
|
Get the texture id of the material.
|
|
Set whether the material has a texture.
|
|
Set the ambient coefficient of the material.
|
|
Set the diffuse coefficient of the material.
|
|
Set the specular coefficient of the material.
|
|
Set the shininess of the material.
|
|
Set the texture id of the material.
|