00001
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034
00035
00040 #ifndef _TOXI_GENERAL_H_
00041 #define _TOXI_GENERAL_H_
00042
00043
00044
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
00050
00051
00052
00053 #include <windows.h>
00054
00055 #include <iostream>
00056 #include <sstream>
00057 #include <exception>
00058
00059 #include <string.h>
00060 #include <math.h>
00061 #include <time.h>
00062 #include <stdio.h>
00063
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
00101 #include "ToxiMessages.h"
00102 #include "ToxiGenTypes.h"
00103
00104 #endif