Main Page   Modules   Class Hierarchy   Compound List   File List   Compound Members   File Members   Related Pages   Examples  

glt/config.h

Go to the documentation of this file.
00001 #ifndef GLT_CONFIG_H
00002 #define GLT_CONFIG_H
00003 
00004 /*
00005 
00006   GLT OpenGL C++ Toolkit 
00007   Copyright (C) 2000-2002 Nigel Stewart
00008   Email: nigels.com@gmail.com   WWW: http://www.nigels.com/glt/
00009 
00010   This library is free software; you can redistribute it and/or
00011   modify it under the terms of the GNU Lesser General Public
00012   License as published by the Free Software Foundation; either
00013   version 2.1 of the License, or (at your option) any later version.
00014 
00015   This library is distributed in the hope that it will be useful,
00016   but WITHOUT ANY WARRANTY; without even the implied warranty of
00017   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00018   Lesser General Public License for more details.
00019 
00020   You should have received a copy of the GNU Lesser General Public
00021   License along with this library; if not, write to the Free Software
00022   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00023 
00024 */
00025 
00044 
00045 #define GLT_VERSION_STRING "0.7-gamma"
00046 
00047 // 
00048 // General config options
00049 //
00050 
00051 // #define GLT_FAST_FLOAT               // Optional faster math
00052 
00053 //
00054 // Windows Config
00055 //
00056 
00057 #if defined(_MSC_VER) || defined(__BORLANDC__)
00058 
00059 #define GLT_WIN32
00060 #define GLT_LITTLE_ENDIAN
00061 
00062 #pragma comment(lib, "opengl32.lib")  // Link against OpenGL library
00063 #pragma comment(lib, "glu32.lib")     // Link against GLU library 
00064 #pragma comment(lib, "glt.lib")       // GLT Library     
00065 #pragma comment(lib, "glutm.lib")     // GlutMaster Library
00066 #pragma comment(lib, "math.lib")      // GLT Math Library
00067 #pragma comment(lib, "node.lib")      // GLT Node Library
00068 #pragma comment(lib, "fonts.lib")     // GLT Fonts Library
00069 #pragma comment(lib, "mesh.lib")      // GLT Mesh Library
00070 #pragma comment(lib, "misc.lib")      // GLT Misc Library
00071 
00072 #endif
00073 
00074 //
00075 // Intel/Windows Cygwin Config
00076 //
00077 
00078 #if defined(__CYGWIN__) 
00079 #define GLT_UNIX
00080 #define GLT_LITTLE_ENDIAN
00081 #endif
00082 
00083 //
00084 // Intel Linux Config
00085 //
00086 
00087 #if defined(linux) && defined(i386)
00088 #define GLT_UNIX
00089 #define GLT_LITTLE_ENDIAN
00090 #endif
00091 
00092 //
00093 // iMac OSX Config
00094 //
00095 
00096 #if defined(__APPLE__) && defined(__ppc__)
00097 #define GLT_UNIX
00098 #define GLT_DARWIN
00099 #define GLT_BIG_ENDIAN
00100 #endif
00101 
00102 //
00103 // SGI Config
00104 //
00105 
00106 #if defined(sgi)
00107 #define GLT_UNIX
00108 #define GLT_SGI
00109 #define GLT_BIG_ENDIAN
00110 #endif
00111 
00112 //
00113 // Generic Unix Config
00114 //
00115 
00116 #if defined(__UNIX__)
00117 #define GLT_UNIX
00118 #endif
00119 
00120 #if !defined(GLT_WIN32) && !defined(GLT_UNIX)
00121 #error Target not detected, Win32 or Unix.
00122 #endif
00123 
00124 #if !defined(GLT_LITTLE_ENDIAN) && !defined(GLT_BIG_ENDIAN)
00125 #error Little-endian (Intel) or Big-endian (Motorolla or Sparc) is not known.
00126 #endif
00127 
00129 typedef unsigned char  byte;        
00130 
00132 typedef unsigned short uint16;
00133 
00135 typedef unsigned int   uint32;
00136 
00138 typedef signed short   int16;
00139 
00141 typedef signed int     int32;
00142 
00143 #ifndef GLT_FAST_FLOAT
00144 
00145 typedef double         real;
00146 #else
00147 
00148 typedef float          real;
00149 #endif
00150 
00151 #ifndef NULL
00152 
00153 #define NULL (0)
00154 #endif
00155 
00156 #endif

Generated on Tue Nov 5 11:11:03 2002 for GLT by doxygen1.2.18