]> git.tdb.fi Git - libs/gl.git/blobdiff - source/view.h
Remove the deprecated ProgramBuilder class
[libs/gl.git] / source / view.h
index cf0f4d64ed8d8feceabdcf10522782ce97c335b0..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,10 +20,12 @@ protected:
        Framebuffer ⌖
        Camera *camera;
        Renderable *content;
+       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,6 +34,7 @@ public:
        void set_content(Renderable *);
 
        virtual void render();
+       virtual void render(Renderer &);
 };
 
 } // namespace GL