Graphics::Window &window;
Graphics::GLContext &context;
Framebuffer ⌖
- const Renderable *content;
+ Camera *camera;
+ Renderable *content;
std::list<Camera *> synced_cameras;
public:
Graphics::GLContext &get_context() { return context; }
unsigned get_width() const { return window.get_width(); }
unsigned get_height() const { return window.get_height(); }
+ float get_aspect() const { return static_cast<float>(get_width())/get_height(); }
- void set_content(const Renderable *);
+ void set_camera(Camera *);
+ void set_content(Renderable *);
+
+ // Deprecated
void synchronize_camera_aspect(Camera &);
void render();