4 #include "framebuffer.h"
14 An ultimate render target, which is typically visible to the user of the
15 application in some way.
17 The content renderable's render() function is called with an empty tag. A
18 Sequence can be used to specify other tags and add post-processing.
24 Renderable *content = 0;
25 Renderer *internal_renderer = 0;
31 virtual unsigned get_width() const { return get_target().get_width(); }
32 virtual unsigned get_height() const { return get_target().get_height(); }
33 float get_aspect_ratio() const { return static_cast<float>(get_width())/get_height(); }
35 /** Sets the camera to render with. The camera's aspect ratio is set to
36 match that of the view. */
37 void set_camera(Camera *);
39 void set_content(Renderable *);
41 virtual void render();
42 virtual void render(Renderer &);
44 virtual const Framebuffer &get_target() const = 0;