]> git.tdb.fi Git - libs/demoscene.git/blobdiff - source/launchscreen.cpp
Allow stages to define actions
[libs/demoscene.git] / source / launchscreen.cpp
index 4fd08836d4b8dc7448376f628cf8a4c6dd67ae93..ccf2101d314c2bea08143fd613f70c8986710969 100644 (file)
@@ -4,11 +4,12 @@
 #include <msp/strings/format.h>
 #include "launchscreen.h"
 
-using namespace Msp;
+namespace Msp {
+namespace DemoScene {
 
-LaunchScreen::LaunchScreen(DataFile::Collection &resources):
-       font(resources.get<GL::Font>("ikarius-48.font")),
-       tech(resources.get<GL::Technique>("basic_text.tech")),
+LaunchScreen::LaunchScreen(Resources &resources):
+       font(resources.get_ui_font()),
+       tech(resources.get_ui_text_technique()),
        countdown(font, &tech),
        countdown_value(0),
        enter_prompt(font, &tech),
@@ -47,3 +48,6 @@ void LaunchScreen::render()
        renderer.transform(GL::Matrix::translation(0, -1.2, 0));
        esc_prompt.render(renderer);
 }
+
+} // namespace DemoScene
+} // namespace Msp