]> git.localhorst.tv Git - blank.git/blob - shared/ProgressState.hpp
new gcc version
[blank.git] / shared / ProgressState.hpp
1 #ifndef BLANK_SHARED_PROGRESSSTATE_HPP_
2 #define BLANK_SHARED_PROGRESSSTATE_HPP_
3
4 #include "../app/State.hpp"
5
6 #include "../ui/Progress.hpp"
7
8
9 namespace blank {
10
11 class Environment;
12
13 class ProgressState
14 : public State {
15
16 public:
17         ProgressState(Environment &env, const char *tpl);
18
19         void SetProgress(int value, int total);
20
21         void Handle(const SDL_Event &) override;
22         void Render(Viewport &) override;
23
24 private:
25         Environment &env;
26         Progress progress;
27
28 };
29
30 }
31
32 #endif