mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-29 14:13:19 +00:00
40 lines
855 B
C
40 lines
855 B
C
#ifndef RGLGEN_HEADERS_H__
|
|
#define RGLGEN_HEADERS_H__
|
|
|
|
#ifdef HAVE_EGL
|
|
#include <EGL/egl.h>
|
|
#include <EGL/eglext.h>
|
|
#endif
|
|
|
|
#if defined(IOS)
|
|
#include <OpenGLES/ES2/gl.h>
|
|
#include <OpenGLES/ES2/glext.h>
|
|
#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
|
|
|
|
#endif
|