X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fview.h;h=24188de44564f02d6a66e4b6feb7e43a5cf2bbb4;hb=refs%2Fheads%2Fmaster;hp=cf0f4d64ed8d8feceabdcf10522782ce97c335b0;hpb=df20a7e137542a4156cc5ffa8118d59de6b68547;p=libs%2Fgl.git diff --git a/source/view.h b/source/view.h deleted file mode 100644 index cf0f4d64..00000000 --- a/source/view.h +++ /dev/null @@ -1,39 +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; - - View(Framebuffer &); - -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 *); - - virtual void render(); -}; - -} // namespace GL -} // namespace Msp - -#endif