mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-06 11:06:18 +02:00
28 lines
561 B
C
28 lines
561 B
C
#pragma once
|
|
|
|
#ifdef IOS
|
|
#include <OpenGLES/ES3/gl.h>
|
|
#include <OpenGLES/ES3/glext.h>
|
|
#elif defined(USING_GLES2)
|
|
#include <GLES2/gl2.h>
|
|
#include <GLES2/gl2ext.h>
|
|
// At least Nokia platforms need the three below
|
|
#include <KHR/khrplatform.h>
|
|
typedef char GLchar;
|
|
#define GL_BGRA_EXT 0x80E1
|
|
#else // OpenGL
|
|
#include <GL/glew.h>
|
|
#if defined(__APPLE__)
|
|
#include <OpenGL/gl.h>
|
|
#else
|
|
#include <GL/gl.h>
|
|
#endif
|
|
#endif
|
|
|
|
#ifdef USING_GLES2
|
|
// Support OpenGL ES 3.0
|
|
// This uses the "DYNAMIC" approach from the gles3jni NDK sample.
|
|
#include "../gfx_es2/gl3stub.h"
|
|
#endif
|
|
|