00001 /* Copyright (C) 2001 W.P. van Paassen - peter@paassen.tmfweb.nl
00002
00003 This program is free software; you can redistribute it and/or modify it under
00004 the terms of the GNU General Public License as published by the Free
00005 Software Foundation; either version 2 of the License, or (at your
00006 option) any later version.
00007
00008 This program is distributed in the hope that it will be useful, but WITHOUT
00009 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
00010 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
00011 for more details.
00012
00013 You should have received a copy of the GNU General Public License
00014 along with this program; see the file COPYING. If not, write to the Free
00015 Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
00016
00017 #ifndef WP_DEF_H
00018 #define WP_DEF_H
00019
00020 #include "GL/gl.h"
00021 #include "GL/glu.h"
00022 #include "GL/glut.h"
00023 using namespace std;
00024
00025 namespace WPCG
00026 {
00027 typedef unsigned char byte;
00028 typedef GLfloat scalar;
00029 const scalar DOUBLE_PI = 6.2831853071795f;
00030 const scalar Pi = 3.1415926535897932384f;
00031 const scalar HALF_PI = 1.57079632679f;
00032 const scalar RADDEG = 57.2957795130823208768f;
00033 const scalar DEGRAD = 0.01745329251994329577f;
00034 const byte TRANSLATION_MATRIX = 1;
00035 const byte SCALING_MATRIX = 2;
00036 const byte X_ROTATION_MATRIX = 3;
00037 const byte Y_ROTATION_MATRIX = 4;
00038 const byte Z_ROTATION_MATRIX = 5;
00039 }
00040 #endif
00041
00042
00043
1.2.14 written by Dimitri van Heesch,
© 1997-2002