X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fview.h;h=24188de44564f02d6a66e4b6feb7e43a5cf2bbb4;hb=refs%2Fheads%2Fmaster;hp=0dd638959693f6c052494892a09a723b273a95a5;hpb=1bd2a77b4999d240a27e13a9069e8fca3410d363;p=libs%2Fgl.git diff --git a/source/view.h b/source/view.h deleted file mode 100644 index 0dd63895..00000000 --- a/source/view.h +++ /dev/null @@ -1,47 +0,0 @@ -#ifndef MSP_GL_VIEW_H_ -#define MSP_GL_VIEW_H_ - -#include -#include -#include - -namespace Msp { -namespace GL { - -class Camera; -class Framebuffer; -class Renderable; - -/** -Manages the presentation of rendering results on the screen. -*/ -class View -{ -private: - Graphics::Window &window; - Graphics::GLContext &context; - Framebuffer ⌖ - const Renderable *content; - std::list synced_cameras; - -public: - View(Graphics::Window &, Graphics::GLContext &); - - Graphics::Window &get_window() { return window; } - Graphics::GLContext &get_context() { return context; } - unsigned get_width() const { return window.get_width(); } - unsigned get_height() const { return window.get_height(); } - - void set_content(const Renderable *); - void synchronize_camera_aspect(Camera &); - - void render(); - -private: - void window_resized(unsigned, unsigned); -}; - -} // namespace GL -} // namespace Msp - -#endif