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

skyfly.h File Reference

#include "wakevortex.h"
#include <stdlib.h>

Go to the source code of this file.

Compounds

struct  perfobj_t
struct  perfobj_vert_t
struct  shared_data_struct

Defines

#define ESCKEY   0
#define RKEY   1
#define PERIODKEY   2
#define SPACEKEY   3
#define DOWNARROWKEY   4
#define UPARROWKEY   5
#define LEFTARROWKEY   6
#define RIGHTARROWKEY   7
#define PAGEDOWNKEY   8
#define PAGEUPKEY   9
#define LEFTMOUSE   10
#define MIDDLEMOUSE   11
#define RIGHTMOUSE   12
#define BUTCOUNT   13
#define MOUSEX   0
#define MOUSEY   1
#define VALCOUNT   2
#define MIN(a, b)   (((a)<(b)) ? (a) : (b))
#define MAX(a, b)   (((a)>(b)) ? (a) : (b))
#define RAD_TO_DEG   (180.0/M_PI)
#define DEG_TO_RAD   (M_PI/180.0)
#define IRND(x)   ((int)((float)(x) * ((float)random()/(float)0x7fffffff)))
#define M_PI   3.14159265358979323846
#define NUM_PLANES_MAX   100
#define GRID_RANGE   200
#define FOV   (M_PI / 4.*4.0/3.0)
#define LX   0.0
#define LY   0.707
#define LZ   0.707
#define FLOATS_PER_VERT_PAIR   16
#define NBUFFERS   2
#define SKY_CYCLOPS   0
#define SKY_DUALCHANNEL   1
#define SKY_SINGLECHANNEL   2
#define PD_TEXTURE_BIND   0
#define PD_DRAW_PAPER_PLANE   1
#define PD_DRAW_TERRAIN_CELL   2
#define PD_PAPER_PLANE_MODE   3
#define PD_PAPER_PLANE_POS   4
#define PD_VIEWER_POS   5
#define PD_DRAW_CLOUDS   6
#define PD_END   0x3fff
#define PLANES_START   0
#define PLANES_SECOND_PASS   1
#define PLANES_END   2
#define PD_V_POINT   0
#define PD_V_CPACK   3
#define PD_V_NORMAL   4
#define PD_V_COLOR   8
#define PD_V_TEX   12
#define PD_V_SIZE   16
#define SKY_BITS   4
#define SKY_COLORS   (1 << SKY_BITS)
#define TERR_BITS   4
#define TERR_COLORS   (1 << TERR_BITS)
#define PLANE_BITS   4
#define PLANE_COLORS   (1 << PLANE_BITS)
#define FOG_LEVELS   6
#define SKY_HIGH   5.0f
#define cosf(a)   cos((float)a)
#define sinf(a)   sin((float)a)
#define sqrtf(a)   sqrt((float)a)
#define expf(a)   exp((float)a)
#define PLANE_X0_OFFSET   (GRID_RANGE / 2)
#define PLANE_Y0_OFFSET   (GRID_RANGE / 2)
#define PLANE_Z0_OFFSET   (0.25)
#define PLANE_XYZ_FACTOR   0.001
#define PLANE_X0_FACTOR   PLANE_XYZ_FACTOR
#define PLANE_Y0_FACTOR   PLANE_XYZ_FACTOR
#define PLANE_Z0_FACTOR   PLANE_XYZ_FACTOR
#define PLANE_SPEED_FACTOR   0.01
#define CONV_X(x)   (PLANE_X0_OFFSET+PLANE_X0_FACTOR*(x))
#define CONV_Y(x)   (PLANE_Y0_OFFSET+PLANE_Y0_FACTOR*(x))
#define CONV_Z(x)   (PLANE_Z0_OFFSET+PLANE_Z0_FACTOR*(x))
#define UNCONV_X(x)   (((x)-PLANE_X0_OFFSET)/PLANE_X0_FACTOR)
#define UNCONV_Y(y)   (((y)-PLANE_Y0_OFFSET)/PLANE_Y0_FACTOR)
#define UNCONV_Z(z)   (((z)-PLANE_Z0_OFFSET)/PLANE_Z0_FACTOR)

Typedefs

typedef perfobj_vert_t perfobj_vert_t
typedef perfobj_t perfobj_t
typedef shared_data_struct shared_data

Functions

long random (void)
void drawperfobj (perfobj_t *perfptr)
void putv3fdata (float *source, perfobj_vert_t *vertptr)
void putn3fdata (float *source, perfobj_vert_t *vertptr)
void putc3fdata (float *source, perfobj_vert_t *vertptr)
void putt2fdata (float *source, perfobj_vert_t *vertptr)
void set_fog (int enable)
void set_dither (int enable)
void DrawVortex (int wingID)
void init_positions (int wingID)
void init_positions (void)
void PushglColor ()
void PopglColor ()
void loadAirport ()
void getPlaneVectors (int i, double p[6])

Variables

shared_dataSharedData
float ScaleZ
int CellDim
int NumCells
int GridDim
float FarCull
float XYScale
float CellSize
int Wxsize
int Wysize
int Init_pos
float Init_x
float Init_y
float Init_z
float Init_azimuth
float far_cull
int rgbmode
float fog_params [4]
int dither
int fog
int mipmap
int sky_base
int terr_base
int plane_colors [3]


Define Documentation

#define BUTCOUNT   13
 

#define CONV_X      (PLANE_X0_OFFSET+PLANE_X0_FACTOR*(x))
 

#define CONV_Y      (PLANE_Y0_OFFSET+PLANE_Y0_FACTOR*(x))
 

#define CONV_Z      (PLANE_Z0_OFFSET+PLANE_Z0_FACTOR*(x))
 

#define cosf      cos((float)a)
 

#define DEG_TO_RAD   (M_PI/180.0)
 

#define DOWNARROWKEY   4
 

#define ESCKEY   0
 

#define expf      exp((float)a)
 

#define FLOATS_PER_VERT_PAIR   16
 

#define FOG_LEVELS   6
 

#define FOV   (M_PI / 4.*4.0/3.0)
 

#define GRID_RANGE   200
 

#define IRND      ((int)((float)(x) * ((float)random()/(float)0x7fffffff)))
 

#define LEFTARROWKEY   6
 

#define LEFTMOUSE   10
 

#define LX   0.0
 

#define LY   0.707
 

#define LZ   0.707
 

#define M_PI   3.14159265358979323846
 

#define MAX a,
     (((a)>(b)) ? (a) : (b))
 

#define MIDDLEMOUSE   11
 

#define MIN a,
     (((a)<(b)) ? (a) : (b))
 

#define MOUSEX   0
 

#define MOUSEY   1
 

#define NBUFFERS   2
 

#define NUM_PLANES_MAX   100
 

#define PAGEDOWNKEY   8
 

#define PAGEUPKEY   9
 

#define PD_DRAW_CLOUDS   6
 

#define PD_DRAW_PAPER_PLANE   1
 

#define PD_DRAW_TERRAIN_CELL   2
 

#define PD_END   0x3fff
 

#define PD_PAPER_PLANE_MODE   3
 

#define PD_PAPER_PLANE_POS   4
 

#define PD_TEXTURE_BIND   0
 

#define PD_V_COLOR   8
 

#define PD_V_CPACK   3
 

#define PD_V_NORMAL   4
 

#define PD_V_POINT   0
 

#define PD_V_SIZE   16
 

#define PD_V_TEX   12
 

#define PD_VIEWER_POS   5
 

#define PERIODKEY   2
 

#define PLANE_BITS   4
 

#define PLANE_COLORS   (1 << PLANE_BITS)
 

#define PLANE_SPEED_FACTOR   0.01
 

#define PLANE_X0_FACTOR   PLANE_XYZ_FACTOR
 

#define PLANE_X0_OFFSET   (GRID_RANGE / 2)
 

#define PLANE_XYZ_FACTOR   0.001
 

#define PLANE_Y0_FACTOR   PLANE_XYZ_FACTOR
 

#define PLANE_Y0_OFFSET   (GRID_RANGE / 2)
 

#define PLANE_Z0_FACTOR   PLANE_XYZ_FACTOR
 

#define PLANE_Z0_OFFSET   (0.25)
 

#define PLANES_END   2
 

#define PLANES_SECOND_PASS   1
 

#define PLANES_START   0
 

#define RAD_TO_DEG   (180.0/M_PI)
 

#define RIGHTARROWKEY   7
 

#define RIGHTMOUSE   12
 

#define RKEY   1
 

#define sinf      sin((float)a)
 

#define SKY_BITS   4
 

#define SKY_COLORS   (1 << SKY_BITS)
 

#define SKY_CYCLOPS   0
 

#define SKY_DUALCHANNEL   1
 

#define SKY_HIGH   5.0f
 

#define SKY_SINGLECHANNEL   2
 

#define SPACEKEY   3
 

#define sqrtf      sqrt((float)a)
 

#define TERR_BITS   4
 

#define TERR_COLORS   (1 << TERR_BITS)
 

#define UNCONV_X      (((x)-PLANE_X0_OFFSET)/PLANE_X0_FACTOR)
 

#define UNCONV_Y      (((y)-PLANE_Y0_OFFSET)/PLANE_Y0_FACTOR)
 

#define UNCONV_Z      (((z)-PLANE_Z0_OFFSET)/PLANE_Z0_FACTOR)
 

#define UPARROWKEY   5
 

#define VALCOUNT   2
 


Typedef Documentation

typedef struct perfobj_t perfobj_t
 

typedef struct perfobj_vert_t perfobj_vert_t
 

typedef struct shared_data_struct shared_data
 


Function Documentation

void drawperfobj perfobj_t   perfptr
 

void DrawVortex int    wingID
 

void getPlaneVectors int    i,
double    p[6]
 

void init_positions void   
 

void init_positions int    wingID
 

void loadAirport  
 

void PopglColor  
 

void PushglColor  
 

void putc3fdata float *    source,
perfobj_vert_t   vertptr
 

void putn3fdata float *    source,
perfobj_vert_t   vertptr
 

void putt2fdata float *    source,
perfobj_vert_t   vertptr
 

void putv3fdata float *    source,
perfobj_vert_t   vertptr
 

long random void   
 

void set_dither int    enable
 

void set_fog int    enable
 


Variable Documentation

int CellDim
 

float CellSize
 

int dither
 

float far_cull
 

float FarCull
 

int fog
 

float fog_params[4]
 

int GridDim
 

float Init_azimuth
 

int Init_pos
 

float Init_x
 

float Init_y
 

float Init_z
 

int mipmap
 

int NumCells
 

int plane_colors[3]
 

int rgbmode
 

float ScaleZ
 

shared_data* SharedData
 

int sky_base
 

int terr_base
 

int Wxsize
 

int Wysize
 

float XYScale
 


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