1 #include "ProgressState.hpp"
3 #include "../app/Environment.hpp"
8 ProgressState::ProgressState(Environment &env, const char *tpl)
10 , progress(env.assets.large_ui_font) {
11 progress.Position(glm::vec3(0.0f), Gravity::CENTER);
12 progress.Template(tpl);
15 void ProgressState::SetProgress(int value, int total) {
16 progress.Update(value, total);
19 void ProgressState::Handle(const SDL_Event &e) {
20 if (e.type == SDL_QUIT) {
25 void ProgressState::Render(Viewport &viewport) {
26 progress.Render(viewport);