]> git.tdb.fi Git - libs/gl.git/blobdiff - source/view.h
Refresh lighting and culling uniforms if the camera changes in pop_state
[libs/gl.git] / source / view.h
index acd5a65cfec98a1753642dfcb75c4393e879ed31..f7f47fc7b48fd7d37f349f73823fee017a3d5ad5 100644 (file)
@@ -22,7 +22,8 @@ private:
        Graphics::Window &window;
        Graphics::GLContext &context;
        Framebuffer ⌖
-       const Renderable *content;
+       Camera *camera;
+       Renderable *content;
        std::list<Camera *> synced_cameras;
 
 public:
@@ -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_content(const Renderable *);
+       void set_camera(Camera *);
+       void set_content(Renderable *);
+
+       // Deprecated
        void synchronize_camera_aspect(Camera &);
 
        void render();