Allow compilation for GLES2 AAPIs only (for now)
This commit is contained in:
@@ -5,25 +5,29 @@
|
|||||||
#if defined (ANDROID)
|
#if defined (ANDROID)
|
||||||
|
|
||||||
#define LIME_GLES
|
#define LIME_GLES
|
||||||
#include <GLES3/gl3.h>
|
//#include <GLES3/gl3.h>
|
||||||
#define __gl2_h_
|
//#define __gl2_h_
|
||||||
|
#include <GLES2/gl2.h>
|
||||||
#include <GLES2/gl2ext.h>
|
#include <GLES2/gl2ext.h>
|
||||||
|
|
||||||
#elif defined (EMSCRIPTEN) || defined (RASPBERRYPI)
|
#elif defined (EMSCRIPTEN) || defined (RASPBERRYPI)
|
||||||
|
|
||||||
#define LIME_GLES
|
#define LIME_GLES
|
||||||
|
#define LIME_GLES3_API
|
||||||
#include <GLES3/gl3.h>
|
#include <GLES3/gl3.h>
|
||||||
#include <GLES3/gl2ext.h>
|
#include <GLES3/gl2ext.h>
|
||||||
|
|
||||||
#elif defined (TIZEN)
|
#elif defined (TIZEN)
|
||||||
|
|
||||||
#define LIME_GLES
|
#define LIME_GLES
|
||||||
|
#define LIME_GLES3_API
|
||||||
#include <gl3.h>
|
#include <gl3.h>
|
||||||
#include <gl3ext.h>
|
#include <gl3ext.h>
|
||||||
|
|
||||||
#elif defined (IPHONE) || defined(APPLETV)
|
#elif defined (IPHONE) || defined(APPLETV)
|
||||||
|
|
||||||
#define LIME_GLES
|
#define LIME_GLES
|
||||||
|
//#define LIME_GLES3_API
|
||||||
#include <OpenGLES/ES1/gl.h>
|
#include <OpenGLES/ES1/gl.h>
|
||||||
#include <OpenGLES/ES1/glext.h>
|
#include <OpenGLES/ES1/glext.h>
|
||||||
#include <OpenGLES/ES2/gl.h>
|
#include <OpenGLES/ES2/gl.h>
|
||||||
@@ -33,6 +37,7 @@
|
|||||||
|
|
||||||
#elif defined (HX_LINUX)
|
#elif defined (HX_LINUX)
|
||||||
|
|
||||||
|
#define LIME_GLES3_API
|
||||||
#define NEED_EXTENSIONS
|
#define NEED_EXTENSIONS
|
||||||
#define DYNAMIC_OGL
|
#define DYNAMIC_OGL
|
||||||
#define GL_GLEXT_PROTOTYPES
|
#define GL_GLEXT_PROTOTYPES
|
||||||
@@ -42,6 +47,7 @@
|
|||||||
|
|
||||||
#elif defined (HX_MACOS)
|
#elif defined (HX_MACOS)
|
||||||
|
|
||||||
|
//#define LIME_GLES3_API
|
||||||
#define NEED_EXTENSIONS
|
#define NEED_EXTENSIONS
|
||||||
#define DYNAMIC_OGL
|
#define DYNAMIC_OGL
|
||||||
#define GL_GLEXT_PROTOTYPES
|
#define GL_GLEXT_PROTOTYPES
|
||||||
@@ -67,6 +73,7 @@
|
|||||||
|
|
||||||
#elif defined (HX_WINDOWS)
|
#elif defined (HX_WINDOWS)
|
||||||
|
|
||||||
|
//#define LIME_GLES3_API
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#ifndef NATIVE_TOOLKIT_SDL_ANGLE
|
#ifndef NATIVE_TOOLKIT_SDL_ANGLE
|
||||||
#include <gl/GL.h>
|
#include <gl/GL.h>
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user