Class for creating an OpenGL material with specular lighting (reflection).
More...
#include <Material.hpp>
|
| Material () |
| Default constructor - this is probably not the constructor you want to use - see below. More...
|
|
| Material (GLfloat specularIntensity, GLfloat shininess) |
|
virtual | ~Material () |
|
void | use (GLuint specularIntensityLocation, GLuint shininessLocation) |
|
Class for creating an OpenGL material with specular lighting (reflection).
◆ Material() [1/2]
pk::Material::Material |
( |
| ) |
|
Default constructor - this is probably not the constructor you want to use - see below.
◆ Material() [2/2]
pk::Material::Material |
( |
GLfloat |
specularIntensity, |
|
|
GLfloat |
shininess |
|
) |
| |
◆ ~Material()
virtual pk::Material::~Material |
( |
| ) |
|
|
virtual |
◆ use()
void pk::Material::use |
( |
GLuint |
specularIntensityLocation, |
|
|
GLuint |
shininessLocation |
|
) |
| |
◆ m_shininess
GLfloat pk::Material::m_shininess |
|
private |
The specular "power" or shininess of the material.
◆ m_specularIntensity
GLfloat pk::Material::m_specularIntensity |
|
private |
The intensity of the reflection.
The documentation for this class was generated from the following file: