]> git.tdb.fi Git - libs/gl.git/blobdiff - source/view.h
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / view.h
index 6aca12f1a117ab3d3c0f14ffdfb565075d289d0b..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,11 +20,12 @@ 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_ratio() const { return static_cast<float>(get_width())/get_height(); }
@@ -31,11 +33,8 @@ public:
        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();
+       virtual void render(Renderer &);
 };
 
 } // namespace GL