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

skyfly.cc File Reference

#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
#include <errno.h>
#include <GL/glut.h>
#include <GL/glu.h>
#include <math.h>
#include "skyfly.h"
#include "OBJlib.h"
#include "global.h"
#include "alloc.h"
#include "utils.h"
#include "colormap.h"
#include "bspline.h"

Compounds

struct  buffered_data_struct
struct  gfxpipe_data_struct
struct  render_ring_struct

Defines

#define NUM_SPHERE_POINTS   5
#define glBindTexture(A, B)
#define glGenTextures(A, B)
#define glDeleteTextures(A, B)
#define GL_RGB5   GL_RGB
#define ERR_WARNING   0x1
#define ERR_FATAL   0x2
#define ERR_SYSERR   0x4
#define AMALLOC(a, type, num, func)
#define RING_SIZE   1000
#define TXSIZE   128
#define TXSIZE   64

Typedefs

typedef buffered_data_struct buffered_data
typedef gfxpipe_data_struct gfxpipe_data
typedef render_ring_struct render_ring

Functions

double vort_distance (double v1[3], double v2[3])
void sim_proc (void)
void sim_cyclops (void)
void sim_dualchannel (void)
void sim_singlechannel (void)
void cull_proc (void)
void draw_proc (void)
void sim_exit (void)
void init_misc (void)
void init_shmem (void)
void init_terrain (void)
void init_clouds (void)
void init_paper_planes (void)
void init_positions (void)
void init_gfxpipes (void)
void init_gl (int gfxpipenum)
void err_msg (int type, char *func, char *error)
void fly (perfobj_t *viewer_pos)
void fly_paper_planes (perfobj_t *paper_plane_pos)
float terrain_height (void)
void init_skyfly (void)
void enter_in_ring (perfobj_t *perfobj)
perfobj_tget_from_ring (void)
void init_texture_and_lighting (void)
void init_buffered_data (buffered_data *buffered)
unsigned char * read_bwimage (char *name, int *w, int *h)
void lightpos (void)
void texenv (int env)
void set_fog (int enable)
void set_dither (int enable)
void DrawVortex (int i)

Variables

float ScaleZ = 2.3
int CellDim = 4
int NumCells = 36
int GridDim
float XYScale
float CellSize
int Init_pos
float Init_x
float Init_y
float Init_z
float Init_azimuth
int rgbmode = GL_TRUE
int sky_base
int terr_base
int plane_colors [3]
float fog_params [4]
float far_cull = 31.
int mipmap = 0
int dither = GL_TRUE
int fog = GL_TRUE
int Wxsize = 320
int Wysize = 240
shared_dataSharedData
render_ring ringbuffer

Define Documentation

#define AMALLOC a,
type,
num,
func   
 

Value:

{                     \
        if((int)(a = (type*)malloc(sizeof(type)*(num))) <= 0)     \
                err_msg(ERR_FATAL, func, "amalloc failed");           \
}

#define ERR_FATAL   0x2
 

#define ERR_SYSERR   0x4
 

#define ERR_WARNING   0x1
 

#define GL_RGB5   GL_RGB
 

#define glBindTexture A,
 
 

#define glDeleteTextures A,
 
 

#define glGenTextures A,
 
 

#define NUM_SPHERE_POINTS   5
 

#define RING_SIZE   1000
 

#define TXSIZE   64
 

#define TXSIZE   128
 


Typedef Documentation

typedef struct buffered_data_struct buffered_data
 

typedef struct gfxpipe_data_struct gfxpipe_data
 

typedef struct render_ring_struct render_ring
 


Function Documentation

void cull_proc void   
 

void draw_proc void   
 

void DrawVortex int    wingID
 

void enter_in_ring perfobj_t   perfobj
 

void err_msg int    type,
char *    func,
char *    error
 

void fly perfobj_t   viewer_pos
 

void fly_paper_planes perfobj_t   paper_plane_pos
 

perfobj_t * get_from_ring void   
 

void init_buffered_data buffered_data   buffered
 

void init_clouds void   
 

void init_gfxpipes void   
 

void init_gl int    gfxpipenum
 

void init_misc void   
 

void init_paper_planes void   
 

void init_positions void   
 

void init_shmem void   
 

void init_skyfly void   
 

void init_terrain void   
 

void init_texture_and_lighting void   
 

void lightpos void   
 

unsigned char* read_bwimage char *    name,
int *    w,
int *    h
 

void set_dither int    enable
 

void set_fog int    enable
 

void sim_cyclops void   
 

void sim_dualchannel void   
 

void sim_exit void   
 

void sim_proc void   
 

void sim_singlechannel void   
 

float terrain_height void   
 

void texenv int    env
 

double vort_distance double    v1[3],
double    v2[3]
[inline]
 


Variable Documentation

int CellDim = 4
 

float CellSize
 

int dither = GL_TRUE
 

float far_cull = 31.
 

int fog = GL_TRUE
 

float fog_params[4]
 

int GridDim
 

float Init_azimuth
 

int Init_pos
 

float Init_x
 

float Init_y
 

float Init_z
 

int mipmap = 0
 

int NumCells = 36
 

int plane_colors[3]
 

int rgbmode = GL_TRUE
 

render_ring ringbuffer
 

float ScaleZ = 2.3
 

shared_data* SharedData
 

int sky_base
 

int terr_base
 

int Wxsize = 320
 

int Wysize = 240
 

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