remove on_update

This commit is contained in:
Andrey Zimin 2024-03-29 20:19:08 +03:00
parent 5b9530caa1
commit cad382a557
4 changed files with 0 additions and 10 deletions

View File

@ -53,10 +53,5 @@ namespace tr::layers
auto b = std::any_cast<std::string>(e);
hack::log()(b);
}
void test_panel::on_update(time t)
{
}
}

View File

@ -20,9 +20,6 @@ namespace try_engine
{
m_win->clear();
for (auto l : m_layers_stack)
l->on_update(time::get_time());
m_gui->begin_frame();
for (auto l : m_layers_stack)
l->gui_render();

View File

@ -25,7 +25,6 @@ namespace try_engine
virtual void gui_render() {};
virtual void on_event(system_event::event&) {};
virtual void on_event(std::any, std::any) {};
virtual void on_update(time) = 0;
};
}

View File

@ -38,7 +38,6 @@
void gui_render() override;\
void on_event(system_event& e) override;\
void on_event(std::any type, std::any value) override;\
void on_update(time t) override
#define CONSTRUCT_IMPL(name)\
name() : try_engine::layer() { BASE_WINDOW_FLAGS(); };\