1 /* 2 GL-117 3 Copyright 2001, 2002 Thomas A. Drexl aka heptargon 4 5 This file is part of GL-117. 6 7 GL-117 is free software; you can redistribute it and/or modify 8 it under the terms of the GNU General Public License as published by 9 the Free Software Foundation; either version 2 of the License, or 10 (at your option) any later version. 11 12 GL-117 is distributed in the hope that it will be useful, 13 but WITHOUT ANY WARRANTY; without even the implied warranty of 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15 GNU General Public License for more details. 16 17 You should have received a copy of the GNU General Public License 18 along with GL-117; if not, write to the Free Software 19 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 20 */ 21 22 /* This file includes the cockpit rendering methods. */ 23 24 #ifndef IS_COCKPIT_H 25 #define IS_COCKPIT_H 26 27 #include "common.h" // ok 28 #include "model.h" // ok 29 30 class Cockpit 31 { 32 private: 33 void cockpitvertex (float phi, float gamma); 34 35 public: 36 int flarewarning, chaffwarning; 37 Uint32 dt; 38 39 Cockpit (); 40 41 void drawBlip (int shape, float x, float y, float z, unsigned char r, unsigned char g, unsigned char b); 42 43 void setColor (int alpha); 44 void setColor (CColor *color, int alpha); 45 void drawCounter (); 46 void drawTargeter (); 47 void drawCross (); 48 void drawHeading (); 49 void drawTargetedElement (); 50 void drawWeapon (); 51 void drawRadar (); 52 void drawRelativeHeightBar(); 53 void drawThrustBar(); 54 }; 55 56 #endif 57 58