Define android windowing data so it will at least compile

This commit is contained in:
baldurk
2016-05-14 15:22:11 +02:00
parent 8394809a79
commit 416c4923d8
+15 -1
View File
@@ -47,7 +47,7 @@ struct GLWindowingData
HWND wnd;
};
#elif defined(RENDERDOC_PLATFORM_POSIX)
#elif defined(RENDERDOC_PLATFORM_LINUX)
// cheeky way to prevent GL/gl.h from being included, as we want to use
// glcorearb.h from above
#define __gl_h_
@@ -65,6 +65,20 @@ struct GLWindowingData
GLXDrawable wnd;
};
#elif defined(RENDERDOC_PLATFORM_ANDROID)
#include "EGL/egl.h"
#include "EGL/eglext.h"
struct GLWindowingData
{
GLWindowingData() { ctx = NULL; wnd = 0; }
void SetCtx(void *c) { ctx = (void*)c; }
EGLContext ctx;
ANativeWindow *wnd;
};
#else
#error "Unknown platform"
#endif