+#include "glcontext.h"
#include <vector>
#include <OpenGL/gl.h>
#include "cocoaglcontext.h"
#include "cocoapixelformat.h"
-#include "glcontext.h"
#include "window_private.h"
using namespace std;
struct GLContext::Private
{
- ContextHandle context;
+ ContextHandle context = nullptr;
};
void GLContext::platform_init(const GLOptions &opts)
delete priv;
}
+void GLContext::set_swap_interval(unsigned)
+{
+ // TODO
+}
+
void GLContext::swap_buffers()
{
flush_gl_buffer(priv->context);
}
-void GLContext::window_resized(unsigned w, unsigned h)
+void GLContext::window_resized(unsigned, unsigned)
{
// XXX Call [context update] here?
- glViewport(0, 0, w, h);
}
} // namespace Graphics