00001 // Some colors 00002 extern const float colorWhite[4]; 00003 extern const float colorBlue[4]; 00004 extern const float colorGreen[4]; 00005 extern const float colorDarkGreen[4]; 00006 extern const float colorNone[4]; 00007 extern const float colorDarkGrey[4]; 00008 extern const float colorDarkYellow[4]; 00009 extern const float colorDarkRed[4]; 00010 extern const float colorDarkBrown[4]; 00011 extern const float colorSky[4]; 00012 00013 00014 // Control variables 00015 00016 // Current angle and speed of propeller 00017 extern float g_fPropellerAngle; 00018 extern float g_nPropellerRPS; 00019 00020 // Current tail rudder position and plane rotation 00021 extern float g_fRudderAngle; 00022 extern float g_fPlaneAngle; 00023 extern bool g_bRotateLeft; 00024 extern bool g_bRotateRight; 00025 00026 00027 00028 00029 /********************************************** 00030 ********************************************** 00031 AIRPLANE RENDERING CODE 00032 ********************************************** 00033 *********************************************/ 00034 00035 // Set color to all channels 00036 void setDiffuseMaterialColor( const float *mc ); 00037 // Render the airplane 00038 void drawAirplane();