]> git.localhorst.tv Git - blank.git/blob - src/app/ProgressState.hpp
b3295c245b995041a2d5d001c1c82b2cc905ce2b
[blank.git] / src / app / ProgressState.hpp
1 #ifndef BLANK_APP_PROGRESSSTATE_HPP_
2 #define BLANK_APP_PROGRESSSTATE_HPP_
3
4 #include "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