Go to the source code of this file.
Functions | |
| void | setDiffuseMaterialColor (const float *mc) |
| void | drawAirplane () |
Variables | |
| const float | colorWhite [4] |
| const float | colorBlue [4] |
| const float | colorGreen [4] |
| const float | colorDarkGreen [4] |
| const float | colorNone [4] |
| const float | colorDarkGrey [4] |
| const float | colorDarkYellow [4] |
| const float | colorDarkRed [4] |
| const float | colorDarkBrown [4] |
| const float | colorSky [4] |
| float | g_fPropellerAngle |
| float | g_nPropellerRPS |
| float | g_fRudderAngle |
| float | g_fPlaneAngle |
| bool | g_bRotateLeft |
| bool | g_bRotateRight |
|
|
Definition at line 211 of file airplane.cpp. References drawBody(), drawPropeller(), drawTailRudder(), and drawWing().
00212 {
00213 // Draw body of the plane
00214 drawBody();
00215
00216 // Draw wings of the plane
00217 glPushMatrix();
00218 glTranslatef( 0,-0.15,0 );
00219 drawWing();
00220 glPopMatrix();
00221
00222 // Draw wing on the other side
00223 glPushMatrix();
00224 glTranslatef( 0,-0.15,0 );
00225 glRotatef( 180,1,0,0 );
00226 drawWing();
00227 glPopMatrix();
00228
00229 // Draw propeller and tail rudder
00230 drawPropeller();
00231 drawTailRudder();
00232 }
|
|
|
Definition at line 39 of file airplane.cpp.
00040 {
00041 glMaterialfv(GL_FRONT, GL_DIFFUSE, mc );
00042 glMaterialfv(GL_FRONT, GL_AMBIENT, mc );
00043 glMaterialfv(GL_FRONT, GL_SPECULAR, colorNone );
00044 glColor4fv(mc);
00045 }
|
|
|
Definition at line 3 of file airplane.h. |
|
|
Definition at line 10 of file airplane.h. |
|
|
Definition at line 5 of file airplane.h. |
|
|
Definition at line 7 of file airplane.h. |
|
|
Definition at line 9 of file airplane.h. |
|
|
Definition at line 8 of file airplane.h. |
|
|
Definition at line 4 of file airplane.h. |
|
|
Definition at line 6 of file airplane.h. |
|
|
Definition at line 11 of file airplane.h. |
|
|
Definition at line 2 of file airplane.h. |
|
|
Definition at line 23 of file airplane.h. |
|
|
Definition at line 24 of file airplane.h. |
|
|
Definition at line 22 of file airplane.h. |
|
|
Definition at line 17 of file airplane.h. Referenced by drawPropeller(). |
|
|
Definition at line 21 of file airplane.h. Referenced by drawTailRudder(). |
|
|
Definition at line 18 of file airplane.h. |
1.3.6