]> git.tdb.fi Git - libs/gl.git/blobdiff - source/view.h
Associate camera and setup/finish_frame calls with View
[libs/gl.git] / source / view.h
index acd5a65cfec98a1753642dfcb75c4393e879ed31..bd39e8ff7f11c6835b07a62a233b858b60472735 100644 (file)
@@ -22,6 +22,7 @@ private:
        Graphics::Window &window;
        Graphics::GLContext &context;
        Framebuffer ⌖
+       Camera *camera;
        const Renderable *content;
        std::list<Camera *> synced_cameras;
 
@@ -34,7 +35,10 @@ public:
        unsigned get_height() const { return window.get_height(); }
        float get_aspect() const { return static_cast<float>(get_width())/get_height(); }
 
+       void set_camera(Camera *);
        void set_content(const Renderable *);
+
+       // Deprecated
        void synchronize_camera_aspect(Camera &);
 
        void render();