Show bonus/malus timer text if available
[ryzomcore.git] / nel / src / 3d / driver / opengl / stdopengl.h
blobe58fdd608ba8c064202414ec59da194e03c94837
1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This source file has been modified by the following contributors:
5 // Copyright (C) 2014 Jan BOON (Kaetemi) <jan.boon@kaetemi.be>
6 //
7 // This program is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU Affero General Public License as
9 // published by the Free Software Foundation, either version 3 of the
10 // License, or (at your option) any later version.
12 // This program is distributed in the hope that it will be useful,
13 // but WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU Affero General Public License for more details.
17 // You should have received a copy of the GNU Affero General Public License
18 // along with this program. If not, see <http://www.gnu.org/licenses/>.
20 #ifndef STDOPENGL_H
21 #define STDOPENGL_H
23 #if defined(_MSC_VER) && defined(_DEBUG)
24 #define _CRTDBG_MAP_ALLOC
25 #include <stdlib.h>
26 #include <crtdbg.h>
27 #define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
28 #endif
30 #include <cstdlib>
31 #include <cstdio>
32 #include <cmath>
33 #include <ctime>
35 #include <string>
36 #include <vector>
37 #include <list>
38 #include <map>
39 #include <set>
40 #include <algorithm>
41 #include <exception>
42 #include <utility>
43 #include <deque>
44 #include <limits>
46 #include "nel/misc/types_nl.h"
48 #ifdef NL_OS_WINDOWS
49 # define WIN32_LEAN_AND_MEAN
50 # ifndef NL_COMP_MINGW
51 # define NOMINMAX
52 # endif
53 # include <windows.h>
54 # include <windowsx.h>
55 #endif
57 #ifdef USE_OPENGLES
58 # include "GLES/gl.h"
59 # include "GLES/glext.h"
60 # include "EGL/egl.h"
61 # include "EGL/eglext.h"
62 #else
63 # ifdef NL_OS_WINDOWS
64 # include <GL/gl.h>
65 # include "GL/wglext.h"
66 # elif defined(NL_OS_MAC)
67 # define GL_GLEXT_LEGACY
68 # include <OpenGL/gl.h>
69 # elif defined (NL_OS_UNIX)
70 # define GLX_GLXEXT_PROTOTYPES
71 # include <GL/gl.h>
72 # include <GL/glx.h>
73 # include "GL/glxext.h"
74 # endif
75 # include "GL/glext.h"
76 #endif
78 #include "nel/misc/common.h"
79 #include "nel/misc/debug.h"
81 #include "nel/misc/stream.h"
82 #include "nel/misc/mem_stream.h"
83 #include "nel/misc/time_nl.h"
84 #include "nel/misc/command.h"
85 #include "nel/misc/matrix.h"
86 #include "nel/misc/smart_ptr.h"
87 #include "nel/misc/rgba.h"
88 #include "nel/misc/event_emitter.h"
89 #include "nel/misc/bit_set.h"
90 #include "nel/misc/hierarchical_timer.h"
91 #include "nel/misc/bitmap.h"
92 #include "nel/misc/heap_memory.h"
93 #include "nel/misc/event_emitter_multi.h"
94 #include "nel/misc/time_nl.h"
95 #include "nel/misc/rect.h"
96 #include "nel/misc/dynloadlib.h"
97 #include "nel/misc/file.h"
99 #include "nel/3d/driver.h"
100 #include "nel/3d/material.h"
101 #include "nel/3d/vertex_buffer.h"
102 #include "nel/3d/ptr_set.h"
103 #include "nel/3d/texture_cube.h"
104 #include "nel/3d/vertex_program_parse.h"
105 #include "nel/3d/viewport.h"
106 #include "nel/3d/scissor.h"
107 #include "nel/3d/light.h"
108 #include "nel/3d/occlusion_query.h"
109 #include "nel/3d/u_driver.h"
110 #include "nel/3d/light.h"
111 #include "nel/3d/index_buffer.h"
113 #ifdef NL_OS_MAC
114 #include <AvailabilityMacros.h>
115 #if defined(MAC_OS_X_VERSION_10_6) && MAC_OS_X_VERSION_MAX_ALLOWED >= MAC_OS_X_VERSION_10_6
116 #define NL_MAC_VERSION_10_6_UP
117 #endif
118 #endif
120 #endif