00001 /************************************************************************/ 00002 /* Ex Nihlo Engine by Hermanns Christophe */ 00003 /************************************************************************/ 00004 /* This program is free software; you can redistribute it and/or */ 00005 /* modify it under the terms of the GNU General Public License */ 00006 /* as published by the Free Software Foundation; either version 2 */ 00007 /* of the License, or (at your option) any later version. */ 00008 /* */ 00009 /* This program is distributed in the hope that it will be useful, */ 00010 /* but WITHOUT ANY WARRANTY; without even the implied warranty of */ 00011 /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. */ 00012 /* */ 00013 /* See the GNU General Public License for more details. */ 00014 /* */ 00015 /* You should have received a copy of the GNU General Public License */ 00016 /* along with this program; if not, write to the Free Software */ 00017 /* Foundation, Inc., 59 Temple Place - Suite 330, */ 00018 /* Boston, MA 02111-1307, USA. */ 00019 /* */ 00020 /* If you use a important part of this code please send me a mail */ 00021 /* I just want to see where my code go thks :) */ 00022 /************************************************************************/ 00023 00024 /************************************************************************/ 00025 /* Contact */ 00026 /************************************************************************/ 00027 /* ExNihilo Website :www.ploksoftware.org */ 00028 /* */ 00029 /* Hermanns Christophe ExNihilo creator and main programmer */ 00030 /* */ 00031 /* Mail : Data@ploksoftware.org */ 00032 /* ICQ : 8030901 */ 00033 /* MSN Messenger : Data_7@hotmail.com */ 00034 /* */ 00035 /* Benjamin Michotte Linux port, webmaster */ 00036 /* */ 00037 /* Mail :binny@ploksoftware.org */ 00038 /* */ 00039 /************************************************************************/ 00040 00041 /************************************************************************/ 00042 /* File Description */ 00043 /************************************************************************/ 00044 /* File Name :ExDefine.h */ 00045 /* */ 00046 /* Star Date :03/15/2002 */ 00047 /* */ 00048 /* Last Update : 00049 * $Id: ExDefine.h,v 1.35 2002/12/13 11:44:58 data Exp $ 00050 * 00051 */ 00052 00053 #ifndef __EXDEFINE_H__ 00054 #define __EXDEFINE_H__ 00055 00056 //------------------------------------------------------------------------ 00057 //lib to link 00058 //------------------------------------------------------------------------ 00059 #if _WIN32 00060 #pragma comment(lib, "opengl32.lib") 00061 #pragma comment(lib, "glu32.lib") 00062 #pragma comment(lib, "glaux.lib") 00063 #pragma comment(lib, "OpenAL32.lib") 00064 #pragma comment(lib, "ws2_32.lib") 00065 #pragma comment(lib, "alut.lib") 00066 #pragma comment(lib, "openal32.lib") 00067 #pragma warning (disable : 4995) 00068 #endif 00069 00070 #ifndef VERSION 00071 #define VERSION "0.4" 00072 #endif 00073 00074 #ifndef PREFIX 00075 #define PREFIX "/usr/local/share" 00076 #endif 00077 00078 //------------------------------------------------------------------------ 00079 // Includes OpenGL 00080 //------------------------------------------------------------------------ 00081 #if _WIN32 00082 #include <GL/glut.h> //Header Glut Library 00083 #include <GL/gl.h> //Header OpenGl 00084 #include <GL/glu.h> //Header Glu toolkit OpenGl 00085 #include <GL/glext.h> 00086 #include <GL/glaux.h> //header Glaux Library 00087 #include <GL/wglext.h> 00088 #endif 00089 #ifdef UNIX_SRC 00090 //#include <GL/glxext.h> 00091 #endif 00092 //------------------------------------------------------------------------ 00093 // opengl extensions function 00094 //------------------------------------------------------------------------ 00095 #if _WIN32 00096 extern PFNGLLOCKARRAYSEXTPROC glLockArraysEXT ; 00097 extern PFNGLUNLOCKARRAYSEXTPROC glUnlockArraysEXT ; 00098 #endif 00099 //------------------------------------------------------------------------ 00100 // Includes OpenAL 00101 //------------------------------------------------------------------------ 00102 #if _WIN32 00103 #include <AL/al.h> 00104 #include <AL/alc.h> 00105 #include <AL/alut.h> 00106 #endif 00107 //------------------------------------------------------------------------ 00108 // Includes C++ 00109 //------------------------------------------------------------------------ 00110 #include <stdio.h> 00111 #include <stdlib.h> 00112 #include <iostream> 00113 #include <fstream> 00114 //#ifndef GCC_295 00115 // #include <ostream> 00116 //#endif 00117 #include <string.h> 00118 #include <time.h> 00119 #include <iostream> 00120 #include <strstream> 00121 #include <sys/stat.h> 00122 #ifdef UNIX_SRC 00123 #include <typeinfo> 00124 #endif 00125 #if _WIN32 00126 #include <typeinfo.h> 00127 #endif 00128 //------------------------------------------------------------------------ 00129 // Includes STL 00130 //------------------------------------------------------------------------ 00131 #include <string> 00132 #include <algorithm> 00133 #include <set> 00134 #include <map> 00135 #include <vector> 00136 #include <list> 00137 #include <stack> 00138 00139 #ifndef UNIX_SRC 00140 #define PI 3.1415926535897932384626433832795 00141 #else 00142 #include <math.h> 00143 #define PI M_PI 00144 #endif 00145 //------------------------------------------------------------------------ 00146 // Define for rzo 00147 //------------------------------------------------------------------------ 00148 //------------------------------------------------------------------------ 00149 // Define for Thread 00150 //------------------------------------------------------------------------ 00151 00152 //------------------------------------------------------------------------ 00153 // typedef 00154 //------------------------------------------------------------------------ 00155 typedef unsigned int uint; 00156 typedef unsigned char uchar; 00157 typedef unsigned char byte; 00158 //------------------------------------------------------------------------ 00159 // consol redirection 00160 //------------------------------------------------------------------------ 00161 static std::ostrstream *Consol; 00162 static std::ostrstream *ActionFlux; 00163 #define CLEARCONSOL Consol.flush(); 00164 00165 #include "Tools/ExCTrace.h" 00166 #include "ExNihiloExecption.h" 00167 #endif //_EXDEFINE_H__ 00168 00169