remove on_update
This commit is contained in:
parent
5b9530caa1
commit
cad382a557
@ -53,10 +53,5 @@ namespace tr::layers
|
|||||||
auto b = std::any_cast<std::string>(e);
|
auto b = std::any_cast<std::string>(e);
|
||||||
hack::log()(b);
|
hack::log()(b);
|
||||||
}
|
}
|
||||||
|
|
||||||
void test_panel::on_update(time t)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -20,9 +20,6 @@ namespace try_engine
|
|||||||
{
|
{
|
||||||
m_win->clear();
|
m_win->clear();
|
||||||
|
|
||||||
for (auto l : m_layers_stack)
|
|
||||||
l->on_update(time::get_time());
|
|
||||||
|
|
||||||
m_gui->begin_frame();
|
m_gui->begin_frame();
|
||||||
for (auto l : m_layers_stack)
|
for (auto l : m_layers_stack)
|
||||||
l->gui_render();
|
l->gui_render();
|
||||||
|
@ -25,7 +25,6 @@ namespace try_engine
|
|||||||
virtual void gui_render() {};
|
virtual void gui_render() {};
|
||||||
virtual void on_event(system_event::event&) {};
|
virtual void on_event(system_event::event&) {};
|
||||||
virtual void on_event(std::any, std::any) {};
|
virtual void on_event(std::any, std::any) {};
|
||||||
virtual void on_update(time) = 0;
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -38,7 +38,6 @@
|
|||||||
void gui_render() override;\
|
void gui_render() override;\
|
||||||
void on_event(system_event& e) override;\
|
void on_event(system_event& e) override;\
|
||||||
void on_event(std::any type, std::any value) override;\
|
void on_event(std::any type, std::any value) override;\
|
||||||
void on_update(time t) override
|
|
||||||
|
|
||||||
#define CONSTRUCT_IMPL(name)\
|
#define CONSTRUCT_IMPL(name)\
|
||||||
name() : try_engine::layer() { BASE_WINDOW_FLAGS(); };\
|
name() : try_engine::layer() { BASE_WINDOW_FLAGS(); };\
|
||||||
|
Reference in New Issue
Block a user