X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fview.h;h=24188de44564f02d6a66e4b6feb7e43a5cf2bbb4;hb=refs%2Fheads%2Fmaster;hp=6aca12f1a117ab3d3c0f14ffdfb565075d289d0b;hpb=7cf5ebbc9d91d09d0664598d3fb88606c3307deb;p=libs%2Fgl.git diff --git a/source/view.h b/source/view.h deleted file mode 100644 index 6aca12f1..00000000 --- a/source/view.h +++ /dev/null @@ -1,44 +0,0 @@ -#ifndef MSP_GL_VIEW_H_ -#define MSP_GL_VIEW_H_ - -#include -#include "framebuffer.h" - -namespace Msp { -namespace GL { - -class Camera; -class Renderable; - -/** -Manages the presentation of rendering results on the screen. -*/ -class View: public sigc::trackable -{ -protected: - Framebuffer ⌖ - Camera *camera; - Renderable *content; - std::list synced_cameras; - - View(); - -public: - 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(get_width())/get_height(); } - - 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(); -}; - -} // namespace GL -} // namespace Msp - -#endif