Cleanup / refractor
This commit is contained in:
+1
-5
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user