Cleanup / refractor

This commit is contained in:
2026-05-05 21:37:54 +01:00
parent 306a053276
commit 7e9a5a7c4f
3 changed files with 2 additions and 23 deletions
+1 -5
View File
@@ -182,13 +182,9 @@ struct App {
current_scene_id = scene_id;
}
App(Vec2<float> size, const char *title, int anim_loading) {
App(Vec2<float> size, const char *title) {
window.update(size, title);
#warning "Should try to center the loading image or scale it to fit the screen"
Scene *loading_scene = new Scene{};
EImage *image = new EImage(anim_loading);
int image_id = element_pool.acquire(image);
loading_scene->add_element(image_id);
current_scene_id = scene_pool.acquire(loading_scene);
}