mirror of
https://github.com/libretro/RetroArch.git
synced 2025-01-07 09:11:08 +00:00
f4ecb4151b
in libretro codebases that reuse glsym
59 lines
1.1 KiB
C
59 lines
1.1 KiB
C
#ifndef RGLGEN_HEADERS_H__
|
|
#define RGLGEN_HEADERS_H__
|
|
|
|
#ifdef HAVE_EGL
|
|
#include <EGL/egl.h>
|
|
#include <EGL/eglext.h>
|
|
#endif
|
|
|
|
#if defined(IOS)
|
|
|
|
#if defined(HAVE_OPENGLES3)
|
|
#include <OpenGLES/ES3/gl.h>
|
|
#include <OpenGLES/ES3/glext.h>
|
|
#else
|
|
#include <OpenGLES/ES2/gl.h>
|
|
#include <OpenGLES/ES2/glext.h>
|
|
#endif
|
|
|
|
#elif defined(__APPLE__)
|
|
#include <OpenGL/gl.h>
|
|
#include <OpenGL/glext.h>
|
|
#elif defined(HAVE_PSGL)
|
|
#include <PSGL/psgl.h>
|
|
#include <GLES/glext.h>
|
|
#elif defined(HAVE_OPENGL_MODERN)
|
|
#include <GL3/gl3.h>
|
|
#include <GL3/gl3ext.h>
|
|
#elif defined(HAVE_OPENGLES3)
|
|
#include <GLES3/gl3.h>
|
|
#include <GLES2/gl2ext.h> // There are no GLES3 extensions yet.
|
|
#elif defined(HAVE_OPENGLES2)
|
|
#include <GLES2/gl2.h>
|
|
#include <GLES2/gl2ext.h>
|
|
#elif defined(HAVE_OPENGLES1)
|
|
#include <GLES/gl.h>
|
|
#include <GLES/glext.h>
|
|
#else
|
|
#if defined(_WIN32) && !defined(_XBOX)
|
|
#define WIN32_LEAN_AND_MEAN
|
|
#include <windows.h>
|
|
#endif
|
|
#include <GL/gl.h>
|
|
#include <GL/glext.h>
|
|
#endif
|
|
|
|
#ifndef GL_MAP_WRITE_BIT
|
|
#define GL_MAP_WRITE_BIT 0x0002
|
|
#endif
|
|
|
|
#ifndef GL_MAP_INVALIDATE_BUFFER_BIT
|
|
#define GL_MAP_INVALIDATE_BUFFER_BIT 0x0008
|
|
#endif
|
|
|
|
#ifndef GL_RED_INTEGER
|
|
#define GL_RED_INTEGER 0x8D94
|
|
#endif
|
|
|
|
#endif
|