]> git.tdb.fi Git - libs/gl.git/blobdiff - source/view.h
Store a Transform in keyframes instead of a Matrix
[libs/gl.git] / source / view.h
index 08629fa065ab159725a5d025ca0b4dc1093f488b..24188de44564f02d6a66e4b6feb7e43a5cf2bbb4 100644 (file)
@@ -21,17 +21,18 @@ protected:
        Renderable *content;
        std::list<Camera *> synced_cameras;
 
-       View();
+       View(Framebuffer &);
 
 public:
        virtual unsigned get_width() const { return target.get_width(); }
        virtual unsigned get_height() const { return target.get_height(); }
-       float get_aspect() const { return static_cast<float>(get_width())/get_height(); }
+       float get_aspect_ratio() const { return static_cast<float>(get_width())/get_height(); }
 
        void set_camera(Camera *);
        void set_content(Renderable *);
 
        // Deprecated
+       float get_aspect() const { return get_aspect_ratio(); }
        void synchronize_camera_aspect(Camera &);
 
        virtual void render();