Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Generals.h

Go to the documentation of this file.
00001 
00009 /* 
00010         ---- Copyright (C) 2002  Jose Eduardo R. Mourão (eduardo_rdm@hotmail.com) ----
00011           
00012         This file is part of ToxiTea.
00013 
00014     ToxiTea is free software; you can redistribute it and/or modify
00015     it under the terms of the GNU General Public License as published by
00016     the Free Software Foundation; either version 2 of the License, or
00017     (at your option) any later version.
00018 
00019     ToxiTea is distributed in the hope that it will be useful,
00020     but WITHOUT ANY WARRANTY; without even the implied warranty of
00021     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00022     GNU General Public License for more details.
00023 
00024     You should have received a copy of the GNU General Public License
00025     along with ToxiTea; if not, write to the Free Software
00026     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
00027 
00028         For more information and updates visit: 
00029         http://toxitea.sourceforge.net
00030         or mail to: eduardo_rdm@hotmail.com
00031 
00032         COMPILING AND/OR USING YOU ARE ACCEPTING ALL TERMS ABOVE.
00033         THIS LICENSE CAN BE CHANGED ANY TIME FOR ANY REASON WITHOUT NO COMMUNICATION.
00034 */
00035 
00040 #ifndef _TOXI_GENERAL_H_
00041 #define _TOXI_GENERAL_H_
00042 
00043 /****************************
00044  * TOXITEA SETUP PARAMETERS *
00045  ****************************/
00046 #define TOXITEA_D3D_ONLY        // Uses D3D only, If GL define it will be undefined
00047 #define TOXITEA_GL_ONLY         // Uses GL only, If D3D defined it will be undefined 
00048 #define TOXITEA_FULL            // Uses both GL and D3D (dischard last options)
00049 //#define COMPILE_TOXITEA_AS_DLL // Comment this line for static compilations
00050 /***************************/
00051 
00052 // WIN32
00053 #include <windows.h>
00054 // STL
00055 #include <iostream>
00056 #include <sstream>
00057 #include <exception>
00058 // ANSI
00059 #include <string.h>
00060 #include <math.h>
00061 #include <time.h>
00062 #include <stdio.h>
00063 // D3D or GL?
00064 #ifdef TOXITEA_D3D_ONLY
00065 #       define TOXITEA_D3D
00066 #       undef TOXITEA_GL
00067 #endif
00068 #ifdef TOXITEA_GL_ONLY
00069 #       define TOXITEA_GL
00070 #       undef TOXITEA_D3D
00071 #endif
00072 #ifdef TOXITEA_FULL
00073 #       define TOXITEA_GL
00074 #       define TOXITEA_D3D
00075 #endif
00076 #ifdef TOXITEA_D3D
00077 #       pragma comment(lib,"dxguid.lib")
00078 #       pragma comment(lib,"d3d8.lib")
00079 #       pragma comment(lib,"d3dx8.lib") 
00080 #       include <d3d8.h>
00081 #       include <d3dx8.h>
00082 #endif
00083 #ifdef TOXITEA_GL
00084 #       pragma comment(lib,"opengl32.lib")
00085 #       pragma comment(lib,"glu32.lib")
00086 #       include <gl/gl.h>
00087 #       include <gl/glu.h>
00088 #endif
00089 #ifdef COMPILE_TOXITEA_AS_DLL
00090 #       ifdef TOXITEADLL_EXPORTS
00091 #               define TOXITEADLL_API __declspec(dllexport)
00092 #       else
00093 #               define TOXITEADLL_API __declspec(dllimport)
00094 #       endif
00095 #       pragma warning(disable: 4275)
00096 #       pragma warning(disable: 4251)
00097 #else
00098 #       define TOXITEADLL_API
00099 #endif
00100 // Generic things goes here
00101 #include "ToxiMessages.h"
00102 #include "ToxiGenTypes.h"
00103 
00104 #endif

Generated on Mon Sep 23 23:07:01 2002 for ToxiTea by doxygen1.2.18