]> git.tdb.fi Git - libs/demoscene.git/blob - source/launchscreen.h
Initial files lifted from the Skrolliparty 2 demo
[libs/demoscene.git] / source / launchscreen.h
1 #ifndef MSP_DEMOSCENE_LAUNCHSCREEN_H_
2 #define MSP_DEMOSCENE_LAUNCHSCREEN_H_
3
4 #include <msp/datafile/collection.h>
5 #include <msp/gl/camera.h>
6 #include <msp/gl/font.h>
7 #include <msp/gl/technique.h>
8 #include <msp/gl/text.h>
9
10 class LaunchScreen
11 {
12 private:
13         const Msp::GL::Font &font;
14         const Msp::GL::Technique &tech;
15         Msp::GL::Text countdown;
16         unsigned countdown_value;
17         Msp::GL::Text enter_prompt;
18         Msp::GL::Text esc_prompt;
19         Msp::GL::Camera camera;
20
21 public:
22         LaunchScreen(Msp::DataFile::Collection &);
23
24         void set_countdown(unsigned);
25
26         void render();
27 };
28
29 #endif