hx3d
1
2D/3D Simple Game Framework
Main Page
Namespaces
Classes
Files
File List
engine
include
hx3d
graphics
gl.hpp
1
/*
2
GL inclusions.
3
Copyright (C) 2015 Denis BOURGE
4
5
This library is free software; you can redistribute it and/or
6
modify it under the terms of the GNU Lesser General Public
7
License as published by the Free Software Foundation; either
8
version 2.1 of the License, or (at your option) any later version.
9
10
This library is distributed in the hope that it will be useful,
11
but WITHOUT ANY WARRANTY; without even the implied warranty of
12
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
Lesser General Public License for more details.
14
15
You should have received a copy of the GNU Lesser General Public
16
License along with this library; if not, write to the Free Software
17
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301
18
USA
19
*/
20
21
#ifndef HX3D_GRAPHICS_GL
22
#define HX3D_GRAPHICS_GL
23
24
#ifdef __IPHONE_NA
25
26
#include <OpenGLES/ES2/gl.h>
27
28
#elif __ANDROID__
29
30
#include <GLES2/gl2.h>
31
32
#elif _WIN32
33
34
#define DESKTOP_OPENGL
35
#define WIN32_LEAN_AND_MEAN
36
#include <WinDef.h>
37
#include <WinGDI.h>
38
39
/* Thanks Windows... ! */
40
#undef near
41
#undef far
42
43
#include <GL/glew.h>
44
45
#elif __APPLE__
46
47
#include "TargetConditionals.h"
48
49
#if TARGET_IPHONE_SIMULATOR
50
51
#include <OpenGLES/ES2/gl.h>
52
53
#elif TARGET_OS_IPHONE
54
55
#include <OpenGLES/ES2/gl.h>
56
57
#elif TARGET_OS_MAC
58
59
#define DESKTOP_OPENGL
60
#include <GL/glew.h>
61
62
#endif
63
64
#elif __linux__
65
66
#define DESKTOP_OPENGL
67
#include <GL/glew.h>
68
69
#endif
70
71
#include <SDL2/SDL.h>
72
73
#endif
Generated by
1.8.11