Allow compilation for GLES2 AAPIs only (for now)

This commit is contained in:
Joshua Granick
2017-08-11 20:15:59 -07:00
parent 98cd4421c8
commit ace241dd42
2 changed files with 259 additions and 5 deletions

View File

@@ -5,25 +5,29 @@
#if defined (ANDROID)
#define LIME_GLES
#include <GLES3/gl3.h>
#define __gl2_h_
//#include <GLES3/gl3.h>
//#define __gl2_h_
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#elif defined (EMSCRIPTEN) || defined (RASPBERRYPI)
#define LIME_GLES
#define LIME_GLES3_API
#include <GLES3/gl3.h>
#include <GLES3/gl2ext.h>
#elif defined (TIZEN)
#define LIME_GLES
#define LIME_GLES3_API
#include <gl3.h>
#include <gl3ext.h>
#elif defined (IPHONE) || defined(APPLETV)
#define LIME_GLES
//#define LIME_GLES3_API
#include <OpenGLES/ES1/gl.h>
#include <OpenGLES/ES1/glext.h>
#include <OpenGLES/ES2/gl.h>
@@ -33,6 +37,7 @@
#elif defined (HX_LINUX)
#define LIME_GLES3_API
#define NEED_EXTENSIONS
#define DYNAMIC_OGL
#define GL_GLEXT_PROTOTYPES
@@ -42,6 +47,7 @@
#elif defined (HX_MACOS)
//#define LIME_GLES3_API
#define NEED_EXTENSIONS
#define DYNAMIC_OGL
#define GL_GLEXT_PROTOTYPES
@@ -67,6 +73,7 @@
#elif defined (HX_WINDOWS)
//#define LIME_GLES3_API
#include <windows.h>
#ifndef NATIVE_TOOLKIT_SDL_ANGLE
#include <gl/GL.h>

File diff suppressed because it is too large Load Diff