Main Page | Namespace List | Class List | File List | Class Members | File Members

airplane.h File Reference

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


Function Documentation

void drawAirplane  ) 
 

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 }

void setDiffuseMaterialColor const float *  mc  ) 
 

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 }


Variable Documentation

const float colorBlue[4]
 

Definition at line 3 of file airplane.h.

const float colorDarkBrown[4]
 

Definition at line 10 of file airplane.h.

const float colorDarkGreen[4]
 

Definition at line 5 of file airplane.h.

const float colorDarkGrey[4]
 

Definition at line 7 of file airplane.h.

const float colorDarkRed[4]
 

Definition at line 9 of file airplane.h.

const float colorDarkYellow[4]
 

Definition at line 8 of file airplane.h.

const float colorGreen[4]
 

Definition at line 4 of file airplane.h.

const float colorNone[4]
 

Definition at line 6 of file airplane.h.

const float colorSky[4]
 

Definition at line 11 of file airplane.h.

const float colorWhite[4]
 

Definition at line 2 of file airplane.h.

bool g_bRotateLeft
 

Definition at line 23 of file airplane.h.

bool g_bRotateRight
 

Definition at line 24 of file airplane.h.

float g_fPlaneAngle
 

Definition at line 22 of file airplane.h.

float g_fPropellerAngle
 

Definition at line 17 of file airplane.h.

Referenced by drawPropeller().

float g_fRudderAngle
 

Definition at line 21 of file airplane.h.

Referenced by drawTailRudder().

float g_nPropellerRPS
 

Definition at line 18 of file airplane.h.


Generated on Thu Jan 20 02:46:58 2005 for Main_Demo by doxygen 1.3.6