]> git.tdb.fi Git - libs/gl.git/blobdiff - source/view.h
Store Renderables as non-const pointers or references
[libs/gl.git] / source / view.h
index bd39e8ff7f11c6835b07a62a233b858b60472735..f7f47fc7b48fd7d37f349f73823fee017a3d5ad5 100644 (file)
@@ -23,7 +23,7 @@ private:
        Graphics::GLContext &context;
        Framebuffer ⌖
        Camera *camera;
-       const Renderable *content;
+       Renderable *content;
        std::list<Camera *> synced_cameras;
 
 public:
@@ -36,7 +36,7 @@ public:
        float get_aspect() const { return static_cast<float>(get_width())/get_height(); }
 
        void set_camera(Camera *);
-       void set_content(const Renderable *);
+       void set_content(Renderable *);
 
        // Deprecated
        void synchronize_camera_aspect(Camera &);