]> git.tdb.fi Git - libs/demoscene.git/blob - source/launchscreen.h
Allow stages to define actions
[libs/demoscene.git] / source / launchscreen.h
1 #ifndef MSP_DEMOSCENE_LAUNCHSCREEN_H_
2 #define MSP_DEMOSCENE_LAUNCHSCREEN_H_
3
4 #include <msp/gl/camera.h>
5 #include <msp/gl/font.h>
6 #include <msp/gl/technique.h>
7 #include <msp/gl/text.h>
8 #include "resources.h"
9
10 namespace Msp {
11 namespace DemoScene {
12
13 class LaunchScreen
14 {
15 private:
16         const Msp::GL::Font &font;
17         const Msp::GL::Technique &tech;
18         Msp::GL::Text countdown;
19         unsigned countdown_value;
20         Msp::GL::Text enter_prompt;
21         Msp::GL::Text esc_prompt;
22         Msp::GL::Camera camera;
23
24 public:
25         LaunchScreen(Resources &);
26
27         void set_countdown(unsigned);
28
29         void render();
30 };
31
32 } // namespace DemoScene
33 } // namespace Msp
34
35 #endif