PROTO::KLUDGE  0.1
Quick prototyping library for games using SDL and OpenGL.
pk::Material Class Reference

Class for creating an OpenGL material with specular lighting (reflection). More...

#include <Material.hpp>

Collaboration diagram for pk::Material:
Collaboration graph

Public Member Functions

 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)
 

Private Attributes

GLfloat m_specularIntensity
 The intensity of the reflection. More...
 
GLfloat m_shininess
 The specular "power" or shininess of the material. More...
 

Detailed Description

Class for creating an OpenGL material with specular lighting (reflection).

Constructor & Destructor Documentation

◆ 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

Member Function Documentation

◆ use()

void pk::Material::use ( GLuint  specularIntensityLocation,
GLuint  shininessLocation 
)

Member Data Documentation

◆ 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: