#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 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||||||
|
|
|
||||||||||||
|
|
|
||||||||||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1.2.13.1 written by Dimitri van Heesch,
© 1997-2001