00001 #ifndef __FTGL__
00002 #define __FTGL__
00003
00004
00005 typedef double FTGL_DOUBLE;
00006 typedef float FTGL_FLOAT;
00007
00008 #ifdef WIN32
00009
00010
00011
00012
00013
00014 #define WIN32_LEAN_AND_MEAN
00015 #include <windows.h>
00016
00017 #ifndef __gl_h_
00018 #include <GL/gl.h>
00019 #include <GL/glu.h>
00020 #endif
00021
00022 #else
00023
00024
00025 #ifndef __gl_h_
00026 #ifdef __APPLE_CC__
00027 #include <OpenGL/gl.h>
00028 #include <OpenGL/glu.h>
00029 #else
00030 #include <GL/gl.h>
00031 #include <GL/glu.h>
00032 #endif
00033
00034 #endif
00035
00036
00037
00038 #ifndef APIENTRY
00039 #define APIENTRY
00040 #endif
00041 #endif
00042
00043
00044 #ifdef _MSC_VER // MS Visual C++
00045
00046
00047
00048 #pragma warning( disable : 4251 )
00049 #pragma warning( disable : 4275 )
00050 #pragma warning( disable : 4786 )
00051
00052
00053
00054
00055
00056
00057
00058 #ifdef FTGL_LIBRARY_STATIC // static lib - no special export required
00059 # define FTGL_EXPORT
00060 #elif FTGL_LIBRARY // dynamic lib - must export/import symbols appropriately.
00061 # define FTGL_EXPORT __declspec(dllexport)
00062 #else
00063 # define FTGL_EXPORT __declspec(dllimport)
00064 #endif
00065
00066 #else
00067
00068
00069 #define FTGL_EXPORT
00070 #endif
00071
00072
00073
00074 #ifndef GL_EXT_texture_object
00075 #define GL_TEXTURE_PRIORITY_EXT 0x8066
00076 #define GL_TEXTURE_RESIDENT_EXT 0x8067
00077 #define GL_TEXTURE_1D_BINDING_EXT 0x8068
00078 #define GL_TEXTURE_2D_BINDING_EXT 0x8069
00079 #define GL_TEXTURE_3D_BINDING_EXT 0x806A
00080 #endif
00081
00082 #endif // __FTGL__