git subrepo clone https://github.com/libretro/libretro-common.git deps/libretro-common
[pcsx_rearmed.git] / deps / libretro-common / include / glsym / rglgen_private_headers.h
1 /* Copyright (C) 2010-2020 The RetroArch team\r
2  *\r
3  * ---------------------------------------------------------------------------------------\r
4  * The following license statement only applies to this libretro SDK code part (glsym).\r
5  * ---------------------------------------------------------------------------------------\r
6  *\r
7  * Permission is hereby granted, free of charge,\r
8  * to any person obtaining a copy of this software and associated documentation files (the "Software"),\r
9  * to deal in the Software without restriction, including without limitation the rights to\r
10  * use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,\r
11  * and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\r
12  *\r
13  * The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\r
14  *\r
15  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,\r
16  * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
17  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.\r
18  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\r
19  * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
20  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\r
21  */\r
22 \r
23 #ifndef RGLGEN_PRIVATE_HEADERS_H__\r
24 #define RGLGEN_PRIVATE_HEADERS_H__\r
25 \r
26 #if defined(IOS)\r
27 \r
28 #if defined(HAVE_OPENGLES3)\r
29 #include <OpenGLES/ES3/gl.h>\r
30 #include <OpenGLES/ES3/glext.h>\r
31 #else\r
32 #include <OpenGLES/ES2/gl.h>\r
33 #include <OpenGLES/ES2/glext.h>\r
34 #endif\r
35 \r
36 #elif defined(__APPLE__)\r
37 #include <compat/apple_compat.h>\r
38 #if MAC_OS_X_VERSION_10_7\r
39 #include <OpenGL/gl3.h>\r
40 #include <OpenGL/gl3ext.h>\r
41 #else\r
42 #include <OpenGL/gl.h>\r
43 #include <OpenGL/glext.h>\r
44 #endif\r
45 #elif defined(HAVE_PSGL)\r
46 #include <PSGL/psgl.h>\r
47 #include <GLES/glext.h>\r
48 #elif defined(HAVE_OPENGL_MODERN)\r
49 #include <GL3/gl3.h>\r
50 #include <GL3/gl3ext.h>\r
51 #elif defined(HAVE_OPENGLES3)\r
52 #include <GLES3/gl3.h>\r
53 #define __gl2_h_\r
54 #include <GLES2/gl2ext.h>\r
55 #elif defined(HAVE_OPENGLES2)\r
56 #include <GLES2/gl2.h>\r
57 #include <GLES2/gl2ext.h>\r
58 #elif defined(HAVE_OPENGLES1)\r
59 #include <GLES/gl.h>\r
60 #include <GLES/glext.h>\r
61 #else\r
62 #if defined(_WIN32) && !defined(_XBOX)\r
63 #define WIN32_LEAN_AND_MEAN\r
64 #include <windows.h>\r
65 #endif\r
66 #ifndef HAVE_LIBNX\r
67 #include <GL/gl.h>\r
68 #include <GL/glext.h>\r
69 #else\r
70 /* We need to avoid including <GL/gl.h> on this platform */\r
71 #include "switch/nx_gl.h"\r
72 #include <GL/glext.h>\r
73 #endif /* SWITCH */\r
74 #endif\r
75 \r
76 #endif\r