#include <GL/glu.h>#include "materials.h"Go to the source code of this file.
Classes | |
| struct | MaterialStruct |
Typedefs | |
| typedef MaterialStruct | Material |
Functions | |
| void | setDiffuseMaterialColor (const float *mc) |
| void | setMaterial (int i) |
| void | initMaterials () |
Variables | |
| float | ColorNone [4] = { 0.0, 0.0, 0.0, 1.0 } |
| float | colorNone [4] = { 0.0, 0.0, 0.0, 1.0 } |
| float | NoShininess [1] = { 0.0 } |
| Material | Materials [MATERIAL_N] |
|
|
|
|
|
|
Definition at line 24 of file materials.cpp. References colorNone. Referenced by display(), drawBody(), drawPropeller(), drawPropellerBlade(), drawTailRudder(), drawTailRudderFrame(), drawWing(), and renderScene().
00025 {
00026 glMaterialfv(GL_FRONT, GL_DIFFUSE, mc );
00027 glMaterialfv(GL_FRONT, GL_AMBIENT, mc );
00028 glMaterialfv(GL_FRONT, GL_SPECULAR, colorNone );
00029 glColor4fv(mc);
00030 }
|
|
|
Definition at line 33 of file materials.cpp. References ColorNone, Materials, and NoShininess. Referenced by __drawModel().
00034 {
00035 // Front side is good
00036 glMaterialfv(GL_FRONT, GL_AMBIENT, Materials[ i ].ambient );
00037 glMaterialfv(GL_FRONT, GL_SPECULAR, Materials[ i ].specular );
00038 glMaterialfv(GL_FRONT, GL_DIFFUSE, Materials[ i ].diffuse );
00039 glMaterialfv(GL_FRONT, GL_EMISSION, ColorNone);
00040 glMaterialfv(GL_FRONT, GL_SHININESS, Materials[ i ].shininess );
00041
00042 // Back side is just ambient
00043 glMaterialfv(GL_BACK, GL_AMBIENT, Materials[ i ].ambient );
00044 glMaterialfv(GL_BACK, GL_SPECULAR, ColorNone );
00045 glMaterialfv(GL_BACK, GL_DIFFUSE, ColorNone );
00046 glMaterialfv(GL_BACK, GL_EMISSION, ColorNone);
00047 glMaterialfv(GL_BACK, GL_SHININESS, NoShininess );
00048
00049 }
|
|
|
Definition at line 9 of file materials.cpp. |
|
|
Definition at line 8 of file materials.cpp. Referenced by setMaterial(). |
|
|
Definition at line 21 of file materials.cpp. Referenced by initMaterials(), and setMaterial(). |
|
|
Definition at line 10 of file materials.cpp. Referenced by setMaterial(). |
1.3.6