]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/windowview.h
Create a Device class to hold the graphics context
[libs/gl.git] / source / render / windowview.h
index 9646a65d746ebcef6e7e5aa15db422d93dc5d602..028e9805436797c35adfddf3c75d9ac47b084138 100644 (file)
@@ -2,8 +2,8 @@
 #define MSP_GL_WINDOWVIEW_H_
 
 #include <sigc++/trackable.h>
-#include <msp/graphics/glcontext.h>
 #include <msp/graphics/window.h>
+#include "device.h"
 #include "view.h"
 
 namespace Msp {
@@ -21,13 +21,12 @@ class WindowView: public View, public sigc::trackable
 {
 private:
        Graphics::Window &window;
-       Graphics::GLContext &context;
+       Device &device;
 
 public:
-       WindowView(Graphics::Window &, Graphics::GLContext &);
+       WindowView(Graphics::Window &);
 
        Graphics::Window &get_window() { return window; }
-       Graphics::GLContext &get_context() { return context; }
        virtual unsigned get_width() const { return window.get_width(); }
        virtual unsigned get_height() const { return window.get_height(); }