Page principale   Liste des namespaces   Hiérarchie des classes   Liste par ordre alphabétique   Liste des composants   Liste des fichiers   Composants   Déclarations  

ExDefine.h

Aller à la documentation de ce fichier.
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.25 2002/08/06 16:52:58 binny 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, "dxerr8.lib")
00036         #pragma comment(lib, "winmm.lib")
00037         #pragma comment(lib, "dsound.lib")
00038         #pragma comment(lib, "dxguid.lib")
00039         #pragma comment(lib, "ALut.lib")
00040         #pragma comment(lib, "ALu.lib")
00041         #pragma comment(lib, "ALc.lib")
00042         #pragma comment(lib, "OpenAL32.lib")
00043 #endif
00044 
00045 #ifndef VERSION
00046         #define VERSION "0.2"
00047 #endif
00048 
00049 #ifndef PREFIX
00050         #define PREFIX "/usr/local/share"
00051 #endif
00052 
00053 //------------------------------------------------------------------------
00054 // Includes OpenGL
00055 //------------------------------------------------------------------------
00056 #include <GL/glut.h>    //Header Glut Library
00057 #include <GL/gl.h>              //Header OpenGl
00058 #include <GL/glu.h>             //Header Glu toolkit OpenGl
00059 #include <GL/glext.h>
00060 #ifndef UNIX_SRC
00061         #include <GL/glaux.h>   //header Glaux Library
00062         #include <GL/wglext.h>
00063 #endif
00064 #ifdef UNIX_SRC
00065         //#include <GL/glxext.h>        
00066 #endif
00067 //------------------------------------------------------------------------
00068 // opengl extensions
00069 //------------------------------------------------------------------------
00070 extern PFNGLLOCKARRAYSEXTPROC glLockArraysEXT;
00071 extern PFNGLUNLOCKARRAYSEXTPROC glUnlockArraysEXT;
00072 //------------------------------------------------------------------------
00073 // Includes OpenAL
00074 //------------------------------------------------------------------------
00075 #include <AL/al.h>
00076 #include <AL/alc.h>
00077 //------------------------------------------------------------------------
00078 // Includes C++ 
00079 //------------------------------------------------------------------------
00080 #include <stdio.h>
00081 #include <stdlib.h>
00082 #include <iostream>
00083 #include <fstream>
00084 #include <ostream>
00085 #include <string.h>
00086 #include <time.h>
00087 #include <iostream>
00088 #include <strstream>
00089 
00090 //------------------------------------------------------------------------
00091 // Includes STL
00092 //------------------------------------------------------------------------
00093 #include <string>
00094 #include <algorithm>
00095 #include <vector>
00096 #include <list>
00097 #include <stack>
00098 
00099 #ifndef UNIX_SRC
00100         #define PI                                                      3.1415926535897932384626433832795
00101 #else
00102         #include <math.h>
00103         #define PI M_PI
00104 #endif
00105 
00106 //------------------------------------------------------------------------
00107 // Define for render type
00108 //------------------------------------------------------------------------
00109 #define RENDER_TEXTURES_LIGHT           10001
00110 #define RENDER_TEXTURES                         10002
00111 #define RENDER_TRIANGLES_LIGHT      10003
00112 #define RENDER_TRIANGLES                        10005
00113 #define RENDER_POINTS                           10006
00114 #define RENDER_LINES                            10007
00115 #define RENDER_NO                                       10008
00116 //------------------------------------------------------------------------
00117 // typedef
00118 //------------------------------------------------------------------------
00119 typedef long ExId;
00120 typedef std::pair<ExId,char *> IdName;
00121 typedef unsigned int uint;
00122 typedef unsigned char uchar;
00123 //------------------------------------------------------------------------
00124 // consol redirection
00125 //------------------------------------------------------------------------
00126 //#define CLEARCONSOL   std::ofstream Consol("Consol.log",std::ios::out);Consol.close();
00127 
00128 //static std::ofstream Consol("Consol.log",std::ios::app);
00129 
00130 extern std::ostrstream *Consol;
00131 #define CLEARCONSOL Consol.flush();
00132 /*
00133         DEBUG TOOLS ARE IN ExCTrace.[cpp|h] NOW !!!
00134 */
00135 #include "ExCTrace.h"
00136 
00137 #endif //_EXDEFINE_H__
00138 
00139 

Généré le Tue Aug 6 20:25:26 2002 pour ExNihilo par doxygen1.2.17