#include <string.h>#include <stdlib.h>#include <unistd.h>#include <math.h>#include <iomanip.h>#include <GL/glut.h>#include "addons.h"#include "skyfly.h"#include "bergen.h"#include "utils.h"#include "wakevortex.h"#include "dataclient.h"#include "global.h"#include "average.h"#include "vector3.h"#include "sound.h"#include "airport.h"#include "buttons.h"#include "memory.h"#include "sndlocal.h"Defines | |
| #define | MPS2KNOTS 1.9438445 |
| #define | MPS2KPH 3.6 |
Functions | |
| void | init_misc (void) |
| void | init_skyfly (void) |
| void | sim_singlechannel (void) |
| void | cull_proc (void) |
| void | draw_proc (void) |
| void | special (int key, int x, int y) |
| void | keyboard (unsigned char c, int x, int y) |
| void | getPlaneInfo (int i, char *buf) |
| void | PrintString (char *buf) |
| void | ShowText () |
| void | printColorMapInfo () |
| void | draw (void) |
| void | PerFrameCalc (void) |
| void | initgl () |
| void | init_vortex (void) |
| void | caveframeupdate (void) |
| void | drawCompass (double angle) |
| void | init_global () |
| void | gameLogic (void) |
| void | reshape (int width, int height) |
| void | mouse (int button, int state, int x, int y) |
| void | motion (int x, int y) |
| int | main (int argc, char **argv) |
| int | Xgetbutton (int button) |
| int | Xgetvaluator (int val) |
| void | PushglColor () |
| void | PopglColor () |
| void | loadAirport () |
Variables | |
| GlobalStruct | GV |
| char | colormapTypes [][20] = {"RedBlue", "RedGreen", "GreenRed", "GreenBlue", "BlueRed", "BlueGreen"} |
| int | numColormapTypes = sizeof(colormapTypes)/sizeof(colormapTypes[0]) |
| char | vortex_draw_mode_string [NUM_VORTEX_DRAW_MODES][20] = { "None", "Lines", "4th order B-Splines", "Points" } |
| Vortex * | vort = NULL |
| DataClient * | client = NULL |
| Airport * | myAirport |
| double | temp_stored_color [4] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
This is for the graphics and other initialization functions (like Airport.LoadAirport(), init_skyfly(), etc.). It is only called once at the beginning of the program. |
|
||||||||||||||||
|
|
|
|
|
|
||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001