#include <basic/opengl/GL_Material.h>
Inherits OpenGLInterface.
Inheritance diagram for GL_Material:
Public Member Functions | |
GL_Material () | |
GL_Material (GL_Material &right) | |
virtual | ~GL_Material () |
void | SetAmbient (double r, double g, double b, double a=1) |
void | SetDiffuse (double r, double g, double b, double a=1) |
void | SetSpecular (double r, double g, double b, double a=1) |
void | SetShininess (double shininess) |
void | SetTransparancy (double alpha) |
GL_Material & | operator= (const GL_Material &right) |
virtual void | GLDraw () const |
Static Public Member Functions | |
static void | SetupGlobalMaterials () |
Static Public Attributes | |
static GL_Material | matRedPlastic |
static GL_Material | matGreenPlastic |
static GL_Material | matGrayPlastic |
Protected Member Functions | |
virtual bool | DrawExplicit () const |
Private Attributes | |
float | ambient [4] |
float | diffuse [4] |
float | specular [4] |
float | emission [4] |
double | shininess |
Definition at line 35 of file GL_Material.h.
|
Definition at line 44 of file GL_Material.cpp. |
|
Definition at line 74 of file GL_Material.cpp. References ambient, diffuse, emission, shininess, and specular. |
|
Definition at line 93 of file GL_Material.cpp. |
|
Implements OpenGLInterface. Definition at line 195 of file GL_Material.cpp. References ambient, diffuse, emission, shininess, and specular. Referenced by GLDraw(). |
|
Reimplemented from OpenGLInterface. Definition at line 209 of file GL_Material.cpp. References DrawExplicit(). Referenced by Octree_Data_Fuser::GL_Display_Octree(), and GL_Universe::GLDraw(). Here is the call graph for this function: ![]() |
|
Definition at line 176 of file GL_Material.cpp. References ambient, diffuse, emission, shininess, and specular. |
|
Definition at line 102 of file GL_Material.cpp. References ambient. Referenced by SetupGlobalMaterials(). |
|
Definition at line 112 of file GL_Material.cpp. References diffuse. Referenced by SetupGlobalMaterials(). |
|
Definition at line 132 of file GL_Material.cpp. |
|
Definition at line 122 of file GL_Material.cpp. References specular. |
|
Definition at line 139 of file GL_Material.cpp. References ambient, diffuse, emission, and specular. Referenced by Octree_Data_Fuser::GL_Display_Octree(). |
|
Definition at line 157 of file GL_Material.cpp. References matGreenPlastic, matRedPlastic, SetAmbient(), and SetDiffuse(). Here is the call graph for this function: ![]() |
|
Definition at line 110 of file GL_Material.h. Referenced by DrawExplicit(), GL_Material(), operator=(), SetAmbient(), and SetTransparancy(). |
|
Definition at line 115 of file GL_Material.h. Referenced by DrawExplicit(), GL_Material(), operator=(), SetDiffuse(), and SetTransparancy(). |
|
Definition at line 125 of file GL_Material.h. Referenced by DrawExplicit(), GL_Material(), operator=(), and SetTransparancy(). |
|
Definition at line 91 of file GL_Material.h. Referenced by GL_Universe::GLDraw(). |
|
Definition at line 86 of file GL_Material.h. Referenced by Octree_Data_Fuser::GL_Display_Octree(), and SetupGlobalMaterials(). |
|
Definition at line 80 of file GL_Material.h. Referenced by GL_Universe::GLDraw(), and SetupGlobalMaterials(). |
|
Definition at line 130 of file GL_Material.h. Referenced by DrawExplicit(), GL_Material(), and operator=(). |
|
Definition at line 120 of file GL_Material.h. Referenced by DrawExplicit(), GL_Material(), operator=(), SetSpecular(), and SetTransparancy(). |