Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

main.cc File Reference

#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" }
Vortexvort = NULL
DataClientclient = NULL
AirportmyAirport
double temp_stored_color [4]

Define Documentation

#define MPS2KNOTS   1.9438445
 

#define MPS2KPH   3.6
 


Function Documentation

void caveframeupdate void   
 

void cull_proc void   
 

void draw void   
 

void draw_proc void   
 

void drawCompass double    angle
 

void gameLogic void   
 

void getPlaneInfo int    i,
char *    buf
 

void init_global  
 

void init_misc void   
 

void init_skyfly void   
 

void init_vortex void   
 

void initgl  
 

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.

void keyboard unsigned char    c,
int    x,
int    y
 

void loadAirport  
 

int main int    argc,
char **    argv
 

void motion int    x,
int    y
 

void mouse int    button,
int    state,
int    x,
int    y
 

void PerFrameCalc void   
 

void PopglColor  
 

void printColorMapInfo  
 

void PrintString char *    buf
 

void PushglColor  
 

void reshape int    width,
int    height
 

void ShowText  
 

void sim_singlechannel void   
 

void special int    key,
int    x,
int    y
 

int Xgetbutton int    button
 

int Xgetvaluator int    val
 


Variable Documentation

DataClient* client = NULL
 

char colormapTypes[][20] = {"RedBlue", "RedGreen", "GreenRed", "GreenBlue", "BlueRed", "BlueGreen"}
 

GlobalStruct GV
 

Airport* myAirport
 

int numColormapTypes = sizeof(colormapTypes)/sizeof(colormapTypes[0])
 

double temp_stored_color[4]
 

Vortex* vort = NULL
 

char vortex_draw_mode_string[NUM_VORTEX_DRAW_MODES][20] = { "None", "Lines", "4th order B-Splines", "Points" }
 


Generated on Sun Jun 16 17:36:43 2002 for Anirudh's Vortex-Wake Simulation Code by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001