#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>
#include "demo.h"
#include "launcher.h"
#include "launchscreen.h"
+#include "vignette.h"
using namespace std;
-using namespace Msp;
+
+namespace Msp {
+namespace DemoScene {
LauncherBase::Options::Options(Graphics::Display &dpy, int argc, char **argv):
start_fullscreen(-1),
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()
display.tick();
demo->tick();
+#ifdef WITH_DEVELOPER
if(frame_dump)
{
glReadPixels(0, 0, window.get_width(), window.get_height(), GL_RGB, GL_UNSIGNED_BYTE, frame_dump_buffer);
frame_dump->write(frame_dump_buffer, frame_size);
}
+#endif
}
void LauncherBase::tick_launch_screen()
else if(key==Input::KEY_ESC)
exit(0);
}
+
+} // namespace DemoScene
+} // namespace Msp