~ubuntu-branches/ubuntu/gutsy/blender/gutsy-security

« back to all changes in this revision

Viewing changes to extern/bFTGL/include/FTGL.h

  • Committer: Bazaar Package Importer
  • Author(s): Florian Ernst
  • Date: 2005-11-06 12:40:03 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051106124003-3pgs7tcg5rox96xg
Tags: 2.37a-1.1
* Non-maintainer upload.
* Split out parts of 01_SConstruct_debian.dpatch again: root_build_dir
  really needs to get adjusted before the clean target runs - closes: #333958,
  see #288882 for reference

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#ifndef     __FTGL__
 
2
#define     __FTGL__
 
3
 
 
4
 
 
5
typedef double   FTGL_DOUBLE;
 
6
typedef float    FTGL_FLOAT;
 
7
 
 
8
// Fixes for deprecated identifiers in 2.1.5
 
9
#ifndef FT_OPEN_MEMORY
 
10
    #define FT_OPEN_MEMORY (FT_Open_Flags)1
 
11
#endif
 
12
 
 
13
#ifndef FT_RENDER_MODE_MONO
 
14
    #define FT_RENDER_MODE_MONO ft_render_mode_mono
 
15
#endif
 
16
 
 
17
#ifndef FT_RENDER_MODE_NORMAL
 
18
    #define FT_RENDER_MODE_NORMAL ft_render_mode_normal
 
19
#endif
 
20
 
 
21
  
 
22
#ifdef WIN32
 
23
 
 
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
 
27
    // these days.
 
28
    #define  WIN32_LEAN_AND_MEAN
 
29
    #include <windows.h>
 
30
 
 
31
    #ifndef __gl_h_
 
32
        #include <GL/gl.h>
 
33
        #include <GL/glu.h>
 
34
    #endif
 
35
 
 
36
#else
 
37
 
 
38
    // Non windows platforms - don't require nonsense as seen above :-)    
 
39
    #ifndef __gl_h_
 
40
        #ifdef __APPLE_CC__
 
41
            #include <OpenGL/gl.h>
 
42
            #include <OpenGL/glu.h>
 
43
        #else
 
44
            #include <GL/gl.h>
 
45
            #include <GL/glu.h>
 
46
        #endif                
 
47
 
 
48
    #endif
 
49
 
 
50
    // Required for compatibility with glext.h style function definitions of 
 
51
    // OpenGL extensions, such as in src/osg/Point.cpp.
 
52
    #ifndef APIENTRY
 
53
        #define APIENTRY
 
54
    #endif
 
55
#endif
 
56
 
 
57
// Compiler-specific conditional compilation
 
58
#ifdef _MSC_VER // MS Visual C++ 
 
59
 
 
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 )
 
65
 
 
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
 
73
    #  define FTGL_EXPORT
 
74
    #elif FTGL_LIBRARY              // dynamic lib - must export/import symbols appropriately.
 
75
    #  define FTGL_EXPORT   __declspec(dllexport)
 
76
    #else
 
77
    #  define FTGL_EXPORT   __declspec(dllimport)
 
78
    #endif 
 
79
 
 
80
#else
 
81
    // Compiler that is not MS Visual C++.
 
82
    // Ensure that the export symbol is defined (and blank)
 
83
    #define FTGL_EXPORT
 
84
#endif  
 
85
 
 
86
 
 
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
 
94
#endif
 
95
 
 
96
#endif  //  __FTGL__