Main Page   Compound List   File List   Compound Members   File Members  

Main.cpp File Reference

#include <stdio.h>
#include <math.h>
#include <GL/gl.h>
#include <GL/glu.h>
#include <GL/glut.h>
#include "Texture.h"
#include "Icon.h"

Defines

#define APPNAME   "Splatter"
#define TEXTUREFILE   "footpr2.raw"
#define LABELFILE   "label.bmp"
#define ARROW1FILE   "icon1.bmp"
#define ARROW2FILE   "icon2.bmp"
#define DATAFILE   "skewed_head.dat"
#define PI   3.14159265358979323846
#define DEG2RAD(x)   (float)((float)x/(float)180*PI)
#define HIGHEST(a, b, c)   ( (a>=b&&a>=c) ? a : ( (b>=a&&b>=c) ? b : c ) )
#define HIGHER(a, b)   ( (a>=b) ? a : b )

Functions

int glCheckError ()
int InitData (char *szFilename)
bool Transfer (short int iValue)
void Paint ()
void Key (unsigned char key, int x, int y)
void Mouse (int button, int state, int x, int y)
int Exit ()
int main (int argc, char **argv)

Variables

short int xDim
short int yDim
short int zDim
short int * pData = NULL
CTexture * pFootprint = NULL
CTexture * pLabel = NULL
CTexture * pArrow1 = NULL
CTexture * pArrow2 = NULL
CIcon * pIconLabel = NULL
CIcon * pIconX1 = NULL
CIcon * pIconX2 = NULL
CIcon * pIconY1 = NULL
CIcon * pIconY2 = NULL
CIcon * pIconZ1 = NULL
CIcon * pIconZ2 = NULL
int iRotX = -75
int iRotY = 0
int iRotZ = 20

Define Documentation

#define APPNAME   "Splatter"
 

#define ARROW1FILE   "icon1.bmp"
 

#define ARROW2FILE   "icon2.bmp"
 

#define DATAFILE   "skewed_head.dat"
 

#define DEG2RAD (  x    )     (float)((float)x/(float)180*PI)
 

#define HIGHER (  a,
b    )     ( (a>=b) ? a : b )
 

#define HIGHEST (  a,
b,
c    )     ( (a>=b&&a>=c) ? a : ( (b>=a&&b>=c) ? b : c ) )
 

#define LABELFILE   "label.bmp"
 

#define PI   3.14159265358979323846
 

#define TEXTUREFILE   "footpr2.raw"
 


Function Documentation

int Exit (    ) 
 

int glCheckError (    ) 
 

int InitData (  char *    szFilename ) 
 

void Key (  unsigned char    key,
int    x,
int    y
) 
 

int main (  int    argc,
char **    argv
) 
 

void Mouse (  int    button,
int    state,
int    x,
int    y
) 
 

void Paint (    ) 
 

bool Transfer (  short int    iValue ) 
 


Variable Documentation

int iRotX = -75
 

int iRotY = 0
 

int iRotZ = 20
 

CTexture* pArrow1 = NULL
 

CTexture* pArrow2 = NULL
 

short int* pData = NULL
 

CTexture* pFootprint = NULL
 

CIcon* pIconLabel = NULL
 

CIcon* pIconX1 = NULL
 

CIcon* pIconX2 = NULL
 

CIcon* pIconY1 = NULL
 

CIcon* pIconY2 = NULL
 

CIcon* pIconZ1 = NULL
 

CIcon* pIconZ2 = NULL
 

CTexture* pLabel = NULL
 

short int xDim
 

short int yDim
 

short int zDim
 


Generated on Sat Jan 26 05:53:58 2002 for Splatter by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001