+#include "glcontext.h"
#include <vector>
#include <EGL/egl.h>
#include <GLES2/gl2.h>
#include <android/native_window.h>
#include "display.h"
-#include "glcontext.h"
#include "window_private.h"
using namespace std;
struct GLContext::Private
{
- EGLDisplay display;
- EGLConfig config;
- EGLSurface surface;
- EGLContext context;
+ EGLDisplay display = EGL_NO_DISPLAY;
+ EGLConfig config = EGL_NO_CONFIG;
+ EGLSurface surface = EGL_NO_SURFACE;
+ EGLContext context = EGL_NO_CONTEXT;
void attach(WindowHandle);
void detach();
delete priv;
}
+void GLContext::set_swap_interval(unsigned)
+{
+ // TODO
+}
+
void GLContext::swap_buffers()
{
eglSwapBuffers(priv->display, priv->surface);