]> git.tdb.fi Git - libs/gl.git/blobdiff - source/view.h
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / view.h
index 08629fa065ab159725a5d025ca0b4dc1093f488b..df623c3a7d88b632e89a397609da0fba3d42d6c7 100644 (file)
@@ -9,6 +9,7 @@ namespace GL {
 
 class Camera;
 class Renderable;
+class Renderer;
 
 /**
 Manages the presentation of rendering results on the screen.
@@ -19,22 +20,21 @@ protected:
        Framebuffer ⌖
        Camera *camera;
        Renderable *content;
-       std::list<Camera *> synced_cameras;
-
-       View();
+       Renderer *internal_renderer;
 
+       View(Framebuffer &);
 public:
+       virtual ~View();
+
        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
-       void synchronize_camera_aspect(Camera &);
-
        virtual void render();
+       virtual void render(Renderer &);
 };
 
 } // namespace GL