]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/launcher.cpp
Add a vignette postprocessor
[libs/demoscene.git] / source / launcher.cpp
index bad077d03fa5df6fc29cb25d8ca2b4e82b0b5fb0..7dc9b9830eb0169148a3870f38a04cce7ab50011 100644 (file)
@@ -1,5 +1,6 @@
 #include <cmath>
 #include <msp/core/getopt.h>
+#include <msp/gl/pipelinetemplate.h>
 #include <msp/input/keys.h>
 #include <msp/io/console.h>
 #include <msp/io/file.h>
@@ -8,6 +9,7 @@
 #include "demo.h"
 #include "launcher.h"
 #include "launchscreen.h"
+#include "vignette.h"
 
 using namespace std;
 
@@ -102,6 +104,8 @@ LauncherBase::LauncherBase(int argc, char **argv):
        gl_context.set_swap_interval(options.no_vsync ? 0 : 1);
        window.signal_close.connect(sigc::bind(sigc::mem_fun(this, &LauncherBase::exit), 0));
        keyboard.signal_button_press.connect(sigc::bind_return(sigc::mem_fun(this, &LauncherBase::key_press), false));
+
+       GL::PipelineTemplate::register_postprocessor<Vignette>("vignette");
 }
 
 LauncherBase::~LauncherBase()