]> git.tdb.fi Git - libs/gl.git/commitdiff
Inherit View from sigc::trackable
authorMikko Rasa <tdb@tdb.fi>
Fri, 7 Oct 2016 12:37:11 +0000 (15:37 +0300)
committerMikko Rasa <tdb@tdb.fi>
Fri, 7 Oct 2016 12:37:11 +0000 (15:37 +0300)
It connects to the resize signal of Window.

source/view.h

index 0dd638959693f6c052494892a09a723b273a95a5..81d7e051de0ec22d4757d61fcb31160cd269cd3c 100644 (file)
@@ -2,6 +2,7 @@
 #define MSP_GL_VIEW_H_
 
 #include <list>
+#include <sigc++/trackable.h>
 #include <msp/graphics/glcontext.h>
 #include <msp/graphics/window.h>
 
@@ -15,7 +16,7 @@ class Renderable;
 /**
 Manages the presentation of rendering results on the screen.
 */
-class View
+class View: public sigc::trackable
 {
 private:
        Graphics::Window &window;