#include <materialsolid.h>
Inheritance diagram for kerosin::MaterialSolid:
Public Member Functions | |
MaterialSolid () | |
virtual | ~MaterialSolid () |
virtual void | Bind () |
binds the managed material, i.e. | |
void | SetAmbient (const RGBA &ambient) |
sets the ambient material reflectance | |
const RGBA & | GetAmbient () |
returns the ambient material reflectance | |
void | SetDiffuse (const RGBA &diffuse) |
sets the diffuse material reflectance | |
const RGBA & | GetDiffuse () |
returns the diffuse material reflectancee | |
void | SetSpecular (const RGBA &specular) |
sets the specular material reflectance | |
const RGBA & | GetSpecular () |
returns the specular material reflectance | |
void | SetEmission (const RGBA &emission) |
sets the light emission | |
const RGBA & | GetEmission () |
returns the light emission | |
Protected Member Functions | |
void | SetupMaterial () |
sets up all lighting material properties | |
Protected Attributes | |
RGBA | mAmbient |
the ambient material refeflectance | |
RGBA | mDiffuse |
the diffuse material reflectance | |
RGBA | mSpecular |
the specular material reflectance | |
RGBA | mEmission |
the emitted light intensity of the material |
Definition at line 31 of file materialsolid.h.
|
Definition at line 31 of file materialsolid.cpp. |
|
Definition at line 40 of file materialsolid.cpp. |
|
binds the managed material, i.e. sets all necessary OpenGL states Implements kerosin::Material. Reimplemented in kerosin::Material2DTexture. Definition at line 60 of file materialsolid.cpp. References SetupMaterial(). Here is the call graph for this function: ![]() |
|
returns the ambient material reflectance
Definition at line 72 of file materialsolid.cpp. References mAmbient. |
|
returns the diffuse material reflectancee
Definition at line 82 of file materialsolid.cpp. References mDiffuse. |
|
returns the light emission
Definition at line 102 of file materialsolid.cpp. References mEmission. |
|
returns the specular material reflectance
Definition at line 92 of file materialsolid.cpp. References mSpecular. |
|
sets the ambient material reflectance
Definition at line 67 of file materialsolid.cpp. References mAmbient. |
|
sets the diffuse material reflectance
Definition at line 77 of file materialsolid.cpp. References mDiffuse. |
|
sets the light emission
Definition at line 97 of file materialsolid.cpp. References mEmission. |
|
sets the specular material reflectance
Definition at line 87 of file materialsolid.cpp. References mSpecular. |
|
sets up all lighting material properties
Definition at line 44 of file materialsolid.cpp. References mAmbient, mDiffuse, mEmission, and mSpecular. Referenced by Bind(), and kerosin::Material2DTexture::Bind(). |
|
the ambient material refeflectance
Definition at line 75 of file materialsolid.h. Referenced by GetAmbient(), SetAmbient(), and SetupMaterial(). |
|
the diffuse material reflectance
Definition at line 78 of file materialsolid.h. Referenced by GetDiffuse(), SetDiffuse(), and SetupMaterial(). |
|
the emitted light intensity of the material
Definition at line 84 of file materialsolid.h. Referenced by GetEmission(), SetEmission(), and SetupMaterial(). |
|
the specular material reflectance
Definition at line 81 of file materialsolid.h. Referenced by GetSpecular(), SetSpecular(), and SetupMaterial(). |