]> git.tdb.fi Git - libs/gui.git/blobdiff - source/graphics/egl_android/glcontext.cpp
Use default member initializers and defaulted default constructors
[libs/gui.git] / source / graphics / egl_android / glcontext.cpp
index 0e9873980606316bc6cf381383479e165741bf8e..ebdb8015dd5413868b2b8895aac8c456537fb7d0 100644 (file)
@@ -1,9 +1,9 @@
+#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;
@@ -13,10 +13,10 @@ namespace Graphics {
 
 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();
@@ -109,6 +109,11 @@ GLContext::~GLContext()
        delete priv;
 }
 
+void GLContext::set_swap_interval(unsigned)
+{
+       // TODO
+}
+
 void GLContext::swap_buffers()
 {
        eglSwapBuffers(priv->display, priv->surface);