Main Page   Namespace List   Class Hierarchy   Alphabetical List   Data Structures   File List   Namespace Members   Data Fields   Globals  

ExDefine.h

Go to the documentation of this file.
00001 /*
00002  * ExNihilo 3D Engine
00003  * 
00004  *  This program is free software; you can redistribute it and/or modify
00005  *  it under the terms of the GNU General Public License as published by
00006  *  the Free Software Foundation; either version 2 of the License, or
00007  *  (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.  See the
00012  *  GNU Library General Public License for more details.
00013  *
00014  *  You should have received a copy of the GNU General Public License
00015  *  along with this program; if not, write to the Free Software
00016  *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
00017  *
00018  * Please read AUTHORS file !!!
00019  * 
00020  * $Id: ExDefine.h,v 1.34 2002/12/03 22:40:01 data Exp $
00021  *
00022  */
00023 
00024 #ifndef __EXDEFINE_H__
00025 #define __EXDEFINE_H__
00026 
00027 //------------------------------------------------------------------------
00028 //lib to link
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 // Includes OpenGL
00052 //------------------------------------------------------------------------
00053 #include <GL/glut.h>    //Header Glut Library
00054 #include <GL/gl.h>              //Header OpenGl
00055 #include <GL/glu.h>             //Header Glu toolkit OpenGl
00056 #include <GL/glext.h>
00057 #ifndef UNIX_SRC
00058         #include <GL/glaux.h>   //header Glaux Library
00059         #include <GL/wglext.h>
00060 #endif
00061 #ifdef UNIX_SRC
00062         //#include <GL/glxext.h>        
00063 #endif
00064 //------------------------------------------------------------------------
00065 // opengl extensions function
00066 //------------------------------------------------------------------------
00067 extern PFNGLMULTITEXCOORD2FARBPROC glMultiTexCoord2fARB;
00068 extern PFNGLACTIVETEXTUREARBPROC glActiveTextureARB;
00069 extern PFNGLCLIENTACTIVETEXTUREARBPROC glClientActiveTextureARB;
00070 //------------------------------------------------------------------------
00071 // Includes OpenAL
00072 //------------------------------------------------------------------------
00073 #include <AL/al.h>
00074 #include <AL/alc.h>
00075 #include <AL/alut.h>
00076 //------------------------------------------------------------------------
00077 // Includes C++ 
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 // Includes STL
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 // Define for rzo
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 // Define for Thread
00128 //------------------------------------------------------------------------
00129 #ifdef UNIX_SRC
00130         #include <pthread.h>    
00131 #else
00132         
00133 #endif
00134 //------------------------------------------------------------------------
00135 // Define for render type
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 // typedef
00146 //------------------------------------------------------------------------
00147 typedef unsigned int uint;
00148 typedef unsigned char uchar;
00149 typedef unsigned char byte;
00150 //------------------------------------------------------------------------
00151 // consol redirection
00152 //------------------------------------------------------------------------
00153 extern std::ostrstream *Consol;
00154 #define CLEARCONSOL Consol.flush();
00155 /*
00156         DEBUG TOOLS ARE IN ExCTrace.[cpp|h] NOW !!!
00157 */
00158 #include "ExCTrace.h"
00159 #include "ExNihiloExecption.h"
00160 #endif //_EXDEFINE_H__
00161 
00162 

Generated on Tue Dec 10 18:20:05 2002 for ExNihilo by doxygen1.3-rc1