OGRE
1.8
Object-Oriented Graphics Rendering Engine
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
OgreGLPrerequisites.h
Go to the documentation of this file.
1
/*
2
-----------------------------------------------------------------------------
3
This source file is part of OGRE
4
(Object-oriented Graphics Rendering Engine)
5
For the latest info, see http://www.ogre3d.org/
6
7
Copyright (c) 2000-2013 Torus Knot Software Ltd
8
9
Permission is hereby granted, free of charge, to any person obtaining a copy
10
of this software and associated documentation files (the "Software"), to deal
11
in the Software without restriction, including without limitation the rights
12
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13
copies of the Software, and to permit persons to whom the Software is
14
furnished to do so, subject to the following conditions:
15
16
The above copyright notice and this permission notice shall be included in
17
all copies or substantial portions of the Software.
18
19
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
THE SOFTWARE.
26
-----------------------------------------------------------------------------
27
*/
28
#ifndef __GLPrerequisites_H__
29
#define __GLPrerequisites_H__
30
31
#include "
OgrePrerequisites.h
"
32
33
namespace
Ogre {
34
// Forward declarations
35
class
GLSupport;
36
class
GLRenderSystem;
37
class
GLTexture;
38
class
GLTextureManager;
39
class
GLGpuProgram;
40
class
GLContext;
41
class
GLRTTManager;
42
class
GLFBOManager;
43
class
GLHardwarePixelBuffer;
44
class
GLRenderBuffer;
45
class
GLDepthBuffer;
46
}
47
48
#if OGRE_THREAD_SUPPORT == 1
49
# define GLEW_MX
50
#endif
51
52
#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
53
#if !defined( __MINGW32__ )
54
# define WIN32_LEAN_AND_MEAN
55
# ifndef NOMINMAX
56
# define NOMINMAX // required to stop windows.h messing up std::min
57
# endif
58
#endif
59
# include <windows.h>
60
# include <wingdi.h>
61
# include <GL/glew.h>
62
# include <GL/wglew.h>
63
# include <GL/glu.h>
64
#elif OGRE_PLATFORM == OGRE_PLATFORM_LINUX
65
# include <GL/glew.h>
66
# include <GL/glu.h>
67
# define GL_GLEXT_PROTOTYPES
68
#elif OGRE_PLATFORM == OGRE_PLATFORM_APPLE
69
# include <GL/glew.h>
70
# include <OpenGL/glu.h>
71
#endif
72
73
#if OGRE_THREAD_SUPPORT == 1
74
// implemented in OgreGLContext.cpp
75
GLEWContext * glewGetContext();
76
77
# if OGRE_PLATFORM == OGRE_PLATFORM_WIN32
78
// implemented in OgreWin32Context.cpp
79
WGLEWContext * wglewGetContext();
80
# endif
81
82
#endif
83
85
#if !defined( _CRT_SECURE_NO_DEPRECATE )
86
#define _CRT_SECURE_NO_DEPRECATE
87
#endif
88
89
#if (OGRE_PLATFORM == OGRE_PLATFORM_WIN32) && !defined(__MINGW32__) && !defined(OGRE_STATIC_LIB)
90
# ifdef OGRE_GLPLUGIN_EXPORTS
91
# define _OgreGLExport __declspec(dllexport)
92
# else
93
# if defined( __MINGW32__ )
94
# define _OgreGLExport
95
# else
96
# define _OgreGLExport __declspec(dllimport)
97
# endif
98
# endif
99
#elif defined ( OGRE_GCC_VISIBILITY )
100
# define _OgreGLExport __attribute__ ((visibility("default")))
101
#else
102
# define _OgreGLExport
103
#endif
104
105
#endif //#ifndef __GLPrerequisites_H__
OgrePrerequisites.h
RenderSystems
GL
include
OgreGLPrerequisites.h
Generated on Fri Jun 20 2014 00:48:10 for OGRE by
1.8.7