]> git.tdb.fi Git - libs/gl.git/blobdiff - source/windowview.cpp
Check the flat qualifier from the correct member
[libs/gl.git] / source / windowview.cpp
diff --git a/source/windowview.cpp b/source/windowview.cpp
deleted file mode 100644 (file)
index a11f738..0000000
+++ /dev/null
@@ -1,33 +0,0 @@
-#include "camera.h"
-#include "windowview.h"
-
-using namespace std;
-
-namespace Msp {
-namespace GL {
-
-WindowView::WindowView(Graphics::Window &w, Graphics::GLContext &c):
-       View(Framebuffer::system()),
-       window(w),
-       context(c)
-{
-       window.signal_resize.connect(sigc::mem_fun(this, &WindowView::window_resized));
-       window_resized(window.get_width(), window.get_height());
-}
-
-void WindowView::render()
-{
-       View::render();
-       context.swap_buffers();
-}
-
-void WindowView::window_resized(unsigned w, unsigned h)
-{
-       target.viewport(0, 0, w, h);
-       float aspect = static_cast<float>(w)/h;
-       if(camera)
-               camera->set_aspect_ratio(aspect);
-}
-
-} // namespace GL
-} // namespace Msp