1 // NeL - MMORPG Framework <http://dev.ryzom.com/projects/nel/>
2 // Copyright (C) 2010 Winch Gate Property Limited
4 // This source file has been modified by the following contributors:
5 // Copyright (C) 2014 Jan BOON (Kaetemi) <jan.boon@kaetemi.be>
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/>.
23 #if defined(_MSC_VER) && defined(_DEBUG)
24 #define _CRTDBG_MAP_ALLOC
27 #define DEBUG_NEW new(_NORMAL_BLOCK, __FILE__, __LINE__)
46 #include "nel/misc/types_nl.h"
49 # define WIN32_LEAN_AND_MEAN
50 # ifndef NL_COMP_MINGW
54 # include <windowsx.h>
59 # include "GLES/glext.h"
61 # include "EGL/eglext.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
73 # include "GL/glxext.h"
75 # include "GL/glext.h"
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"
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