X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Frender%2Fwindowview.h;h=9646a65d746ebcef6e7e5aa15db422d93dc5d602;hb=bdcae47bf2f4e49d2d9e4ba15e6f17171ce5fa0c;hp=ee7c44dce994268f8b75555b576609e1386221e4;hpb=5bb193f930fb8738d099d630c4d625d82c1215b5;p=libs%2Fgl.git diff --git a/source/render/windowview.h b/source/render/windowview.h index ee7c44dc..9646a65d 100644 --- a/source/render/windowview.h +++ b/source/render/windowview.h @@ -1,6 +1,7 @@ #ifndef MSP_GL_WINDOWVIEW_H_ #define MSP_GL_WINDOWVIEW_H_ +#include #include #include #include "view.h" @@ -8,7 +9,15 @@ namespace Msp { namespace GL { -class WindowView: public View +/** +A view targeting a Graphics::Window. + +After rendering, buffers are swapped to show the result in the window. + +The aspect ratio of the view's Camera is automatically updated to match that of +the window. +*/ +class WindowView: public View, public sigc::trackable { private: Graphics::Window &window;