world convert progress info

This commit is contained in:
MihailRis
2024-03-01 13:26:09 +03:00
parent 3862dbda66
commit 8001a8bf86
17 changed files with 903 additions and 793 deletions
+10
View File
@@ -84,6 +84,12 @@ void GUI::actMouse(float delta) {
* @param delta delta time
*/
void GUI::act(float delta) {
while (!postRunnables.empty()) {
runnable callback = postRunnables.back();
postRunnables.pop();
callback();
}
container->setSize(glm::vec2(Window::width, Window::height));
container->act(delta);
auto prevfocus = focus;
@@ -176,3 +182,7 @@ void GUI::setFocus(std::shared_ptr<UINode> node) {
std::shared_ptr<Container> GUI::getContainer() const {
return container;
}
void GUI::postRunnable(runnable callback) {
postRunnables.push(callback);
}