diff options
Diffstat (limited to 'src/graphicsmanager.cpp')
-rw-r--r-- | src/graphicsmanager.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/graphicsmanager.cpp b/src/graphicsmanager.cpp index c69937073..a9efd8e13 100644 --- a/src/graphicsmanager.cpp +++ b/src/graphicsmanager.cpp @@ -21,11 +21,19 @@ #include "graphicsmanager.h" #ifdef USE_OPENGL + #ifndef WIN32 +#ifdef ANDROID +#include <GLES2/gl2.h> +#include <GLES/glext.h> +#include <EGL/egl.h> +#else #include "GL/glx.h" #endif #endif +#endif + #include "configuration.h" #include "graphics.h" #include "graphicsvertexes.h" @@ -53,6 +61,8 @@ #ifdef WIN32 #define getFunction(name) wglGetProcAddress(name) +#elif ANDROID +#define getFunction(name) eglGetProcAddress(name) #else #define getFunction(name) glXGetProcAddress(\ reinterpret_cast<const GLubyte*>(name)) |