]> git.tdb.fi Git - libs/gl.git/blobdiff - source/windowview.cpp
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / windowview.cpp
index 6a0eebda574034de2beb0025d84bec924d781ebb..2cce075c9b5f80509c5bc98e1fc889a4d63039ae 100644 (file)
@@ -7,6 +7,7 @@ namespace Msp {
 namespace GL {
 
 WindowView::WindowView(Graphics::Window &w, Graphics::GLContext &c):
+       View(Framebuffer::system()),
        window(w),
        context(c)
 {
@@ -14,9 +15,9 @@ WindowView::WindowView(Graphics::Window &w, Graphics::GLContext &c):
        window_resized(window.get_width(), window.get_height());
 }
 
-void WindowView::render()
+void WindowView::render(Renderer &renderer)
 {
-       View::render();
+       View::render(renderer);
        context.swap_buffers();
 }
 
@@ -26,8 +27,6 @@ void WindowView::window_resized(unsigned w, unsigned h)
        float aspect = static_cast<float>(w)/h;
        if(camera)
                camera->set_aspect_ratio(aspect);
-       for(list<Camera *>::iterator i=synced_cameras.begin(); i!=synced_cameras.end(); ++i)
-               (*i)->set_aspect_ratio(aspect);
 }
 
 } // namespace GL