separate global tick from draw so on tick any node can request a redraw

This commit is contained in:
2018-10-08 12:03:57 +02:00
parent c9c7b9f1c4
commit 5bb8f8845b
8 changed files with 30 additions and 19 deletions

View File

@@ -11,6 +11,11 @@ std::string win32_open_file();
using namespace ui;
void App::tick(float dt)
{
layout[main_id]->tick(dt);
}
void App::resize(float w, float h)
{
redraw = true;