]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/launcher.h
Use an OpenGL 3.2 core context unless requested otherwise
[libs/demoscene.git] / source / launcher.h
index f607c7bc64ead5fffa8a63eda6ac138a7be7ccff..f394f2927251dde43c72076f4eac1c176f3aa412 100644 (file)
@@ -4,7 +4,6 @@
 #include <msp/al/context.h>
 #include <msp/al/device.h>
 #include <msp/core/application.h>
-#include <msp/datafile/collection.h>
 #include <msp/graphics/display.h>
 #include <msp/graphics/glcontext.h>
 #include <msp/graphics/window.h>
 #include <msp/io/base.h>
 #include <msp/time/timedelta.h>
 #include <msp/time/timestamp.h>
+#include "resources.h"
+
+namespace Msp {
+namespace DemoScene {
 
 class Demo;
 class LaunchScreen;
@@ -23,6 +26,7 @@ protected:
        {
                Msp::Graphics::WindowOptions win_opts;
                Msp::Graphics::WindowOptions fullscreen_opts;
+               Msp::Graphics::GLOptions gl_opts;
                int start_fullscreen;
                std::string frame_dump_fn;
                float framerate;
@@ -57,7 +61,7 @@ public:
        ~LauncherBase();
 
 protected:
-       virtual Msp::DataFile::Collection &get_resources() = 0;
+       virtual Resources &get_resources() = 0;
        virtual Demo *create_demo() = 0;
        virtual void start();
        virtual void tick();
@@ -81,4 +85,7 @@ protected:
        virtual void exit(int c) { Msp::Application::exit(c); }
 };
 
+} // namespace DemoScene
+} // namespace Msp
+
 #endif