5
typedef double FTGL_DOUBLE;
6
typedef float FTGL_FLOAT;
8
// Fixes for deprecated identifiers in 2.1.5
10
#define FT_OPEN_MEMORY (FT_Open_Flags)1
13
#ifndef FT_RENDER_MODE_MONO
14
#define FT_RENDER_MODE_MONO ft_render_mode_mono
17
#ifndef FT_RENDER_MODE_NORMAL
18
#define FT_RENDER_MODE_NORMAL ft_render_mode_normal
24
// Under windows avoid including <windows.h> is overrated.
25
// Sure, it can be avoided and "name space pollution" can be
26
// avoided, but why? It really doesn't make that much difference
28
#define WIN32_LEAN_AND_MEAN
38
// Non windows platforms - don't require nonsense as seen above :-)
41
#include <OpenGL/gl.h>
42
#include <OpenGL/glu.h>
50
// Required for compatibility with glext.h style function definitions of
51
// OpenGL extensions, such as in src/osg/Point.cpp.
57
// Compiler-specific conditional compilation
58
#ifdef _MSC_VER // MS Visual C++
60
// Disable various warning.
61
// 4786: template name too long
62
#pragma warning( disable : 4251 )
63
#pragma warning( disable : 4275 )
64
#pragma warning( disable : 4786 )
66
// The following definitions control how symbols are exported.
67
// If the target is a static library ensure that FTGL_LIBRARY_STATIC
68
// is defined. If building a dynamic library (ie DLL) ensure the
69
// FTGL_LIBRARY macro is defined, as it will mark symbols for
70
// export. If compiling a project to _use_ the _dynamic_ library
71
// version of the library, no definition is required.
72
#ifdef FTGL_LIBRARY_STATIC // static lib - no special export required
74
#elif FTGL_LIBRARY // dynamic lib - must export/import symbols appropriately.
75
# define FTGL_EXPORT __declspec(dllexport)
77
# define FTGL_EXPORT __declspec(dllimport)
81
// Compiler that is not MS Visual C++.
82
// Ensure that the export symbol is defined (and blank)
87
// lifted from glext.h, to remove dependancy on glext.h
88
#ifndef GL_EXT_texture_object
89
#define GL_TEXTURE_PRIORITY_EXT 0x8066
90
#define GL_TEXTURE_RESIDENT_EXT 0x8067
91
#define GL_TEXTURE_1D_BINDING_EXT 0x8068
92
#define GL_TEXTURE_2D_BINDING_EXT 0x8069
93
#define GL_TEXTURE_3D_BINDING_EXT 0x806A