pantalla de carrega no bloquejant
streaming de audio per evitar precárrega i descompresió a memoria
This commit is contained in:
14
source/game/scenes/boot_loader.cpp
Normal file
14
source/game/scenes/boot_loader.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include "game/scenes/boot_loader.hpp"
|
||||
|
||||
#include "core/resources/resource_cache.hpp"
|
||||
#include "game/scene_manager.hpp"
|
||||
|
||||
void BootLoader::iterate() {
|
||||
Resource::Cache::get()->renderProgress();
|
||||
}
|
||||
|
||||
void BootLoader::handleEvent(const SDL_Event& event) {
|
||||
if (event.type == SDL_EVENT_QUIT) {
|
||||
SceneManager::current = SceneManager::Scene::QUIT;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user