]> git.tdb.fi Git - libs/gl.git/blobdiff - demos/desertpillars/source/desertpillars.h
Create a Device class to hold the graphics context
[libs/gl.git] / demos / desertpillars / source / desertpillars.h
index 4e4780991275243ebcc5abdc94e69c833e55c7c2..352b8c2c0b2b09fdaa496e7191bcf6d1cefc80cb 100644 (file)
@@ -5,6 +5,7 @@
 #include <msp/core/application.h>
 #include <msp/datafile/directorysource.h>
 #include <msp/gl/camera.h>
+#include <msp/gl/device.h>
 #include <msp/gl/environmentmap.h>
 #include <msp/gl/objectinstance.h>
 #include <msp/gl/orderedscene.h>
@@ -16,7 +17,6 @@
 #include <msp/gl/technique.h>
 #include <msp/gl/windowview.h>
 #include <msp/graphics/display.h>
-#include <msp/graphics/glcontext.h>
 #include <msp/graphics/window.h>
 #include <msp/input/keyboard.h>
 #include <msp/time/timestamp.h>
@@ -69,7 +69,7 @@ private:
        Msp::Graphics::Display display;
        Options opts;
        Msp::Graphics::Window window;
-       Msp::Graphics::GLContext gl_ctx;
+       Msp::GL::Device gl_device;
        Msp::Input::Keyboard keyboard;
        Msp::GL::ResourceManager res_mgr;
        Resources resources;