00001 #ifndef GLT_CONFIG_H
00002 #define GLT_CONFIG_H
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00044
00045 #define GLT_VERSION_STRING "0.7-gamma"
00046
00047
00048
00049
00050
00051
00052
00053
00054
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
00076
00077
00078 #if defined(__CYGWIN__)
00079 #define GLT_UNIX
00080 #define GLT_LITTLE_ENDIAN
00081 #endif
00082
00083
00084
00085
00086
00087 #if defined(linux) && defined(i386)
00088 #define GLT_UNIX
00089 #define GLT_LITTLE_ENDIAN
00090 #endif
00091
00092
00093
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
00104
00105
00106 #if defined(sgi)
00107 #define GLT_UNIX
00108 #define GLT_SGI
00109 #define GLT_BIG_ENDIAN
00110 #endif
00111
00112
00113
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