00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024 #ifndef __EXDEFINE_H__
00025 #define __EXDEFINE_H__
00026
00027
00028
00029
00030
00031 #ifndef UNIX_SRC
00032 #pragma comment(lib, "opengl32.lib")
00033 #pragma comment(lib, "glu32.lib")
00034 #pragma comment(lib, "glaux.lib")
00035 #pragma comment(lib, "OpenAL32.lib")
00036 #pragma comment(lib, "ws2_32.lib")
00037 #pragma comment(lib, "alut.lib")
00038 #pragma comment(lib, "openal32.lib")
00039 #pragma warning (disable : 4995)
00040 #endif
00041
00042 #ifndef VERSION
00043 #define VERSION "0.3"
00044 #endif
00045
00046 #ifndef PREFIX
00047 #define PREFIX "/usr/local/share"
00048 #endif
00049
00050
00051
00052
00053 #include <GL/glut.h>
00054 #include <GL/gl.h>
00055 #include <GL/glu.h>
00056 #include <GL/glext.h>
00057 #ifndef UNIX_SRC
00058 #include <GL/glaux.h>
00059 #include <GL/wglext.h>
00060 #endif
00061 #ifdef UNIX_SRC
00062
00063 #endif
00064
00065
00066
00067 extern PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2fARB;
00068 extern PFNGLACTIVETEXTUREARBPROC glActiveTextureARB;
00069 extern PFNGLCLIENTACTIVETEXTUREARBPROC glClientActiveTextureARB;
00070
00071
00072
00073 #include <AL/al.h>
00074 #include <AL/alc.h>
00075 #include <AL/alut.h>
00076
00077
00078
00079 #include <stdio.h>
00080 #include <stdlib.h>
00081 #include <iostream>
00082 #include <fstream>
00083 #ifndef GCC_295
00084 #include <ostream>
00085 #endif
00086 #include <string.h>
00087 #include <time.h>
00088 #include <iostream>
00089 #include <strstream>
00090 #ifdef UNIX_SRC
00091 #include <typeinfo>
00092 #else
00093 #include <typeinfo.h>
00094 #endif
00095
00096
00097
00098 #include <string>
00099 #include <algorithm>
00100 #include <set>
00101 #include <map>
00102 #include <vector>
00103 #include <list>
00104 #include <stack>
00105
00106 #ifndef UNIX_SRC
00107 #define PI 3.1415926535897932384626433832795
00108 #else
00109 #include <math.h>
00110 #define PI M_PI
00111 #endif
00112
00113
00114
00115 #ifdef UNIX_SRC
00116 #include <unistd.h>
00117 #include <sys/types.h>
00118 #include <sys/socket.h>
00119 #include <netdb.h>
00120 #include <netinet/in.h>
00121 #include <netinet/tcp.h>
00122 #include <arpa/inet.h>
00123 #else
00124 #include <winsock2.h>
00125 #endif
00126
00127
00128
00129 #ifdef UNIX_SRC
00130 #include <pthread.h>
00131 #else
00132
00133 #endif
00134
00135
00136
00137 #define RENDER_TEXTURES_LIGHT 10001
00138 #define RENDER_TEXTURES 10002
00139 #define RENDER_TRIANGLES_LIGHT 10003
00140 #define RENDER_TRIANGLES 10005
00141 #define RENDER_POINTS 10006
00142 #define RENDER_LINES 10007
00143 #define RENDER_NO 10008
00144
00145
00146
00147 typedef unsigned int uint;
00148 typedef unsigned char uchar;
00149 typedef unsigned char byte;
00150
00151
00152
00153 extern std::ostrstream *Consol;
00154 #define CLEARCONSOL Consol.flush();
00155
00156
00157
00158 #include "ExCTrace.h"
00159 #include "ExNihiloExecption.h"
00160 #endif //_EXDEFINE_H__
00161
00162