diff --git a/bin/layers/local_panel/local_panel.cpp b/bin/layers/local_panel/local_panel.cpp index d279e5c..9e8e743 100755 --- a/bin/layers/local_panel/local_panel.cpp +++ b/bin/layers/local_panel/local_panel.cpp @@ -50,5 +50,10 @@ namespace sandbox hack::log()(std::any_cast(e.m_data)); } } + + void local_panel::update() + { + + } } diff --git a/bin/layers/opengl_panel/opengl_panel.cpp b/bin/layers/opengl_panel/opengl_panel.cpp index 8905d04..361e21e 100755 --- a/bin/layers/opengl_panel/opengl_panel.cpp +++ b/bin/layers/opengl_panel/opengl_panel.cpp @@ -51,6 +51,11 @@ namespace sandbox hack::log()("on_attach"); } + void opengl_panel::update() + { + + } + void opengl_panel::render() { m_cb_1.use(); diff --git a/bin/layers/test_panel/test_panel.cpp b/bin/layers/test_panel/test_panel.cpp index 0bf47e6..655a0ac 100755 --- a/bin/layers/test_panel/test_panel.cpp +++ b/bin/layers/test_panel/test_panel.cpp @@ -34,5 +34,10 @@ namespace sandbox if (t == VE::event_type::MOUSE_BUTTON_PRESSED) hack::log()("once"); } } + + void test_panel::update() + { + + } } diff --git a/bin/layers/test_panel_2/test_panel_2.cpp b/bin/layers/test_panel_2/test_panel_2.cpp index 03f50bd..d60613c 100755 --- a/bin/layers/test_panel_2/test_panel_2.cpp +++ b/bin/layers/test_panel_2/test_panel_2.cpp @@ -38,5 +38,10 @@ namespace sandbox hack::log()(std::any_cast(e.m_data)); } } + + void test_panel_2::update() + { + + } } diff --git a/src/layer/layer.hpp b/src/layer/layer.hpp index afc1dd3..69cd2d5 100755 --- a/src/layer/layer.hpp +++ b/src/layer/layer.hpp @@ -19,6 +19,7 @@ namespace VE public: virtual void on_attach() {}; virtual void render() {}; + virtual void update() {}; virtual void on_event(event e) {}; protected: diff --git a/src/utils/define.hpp b/src/utils/define.hpp index a010e77..f459283 100755 --- a/src/utils/define.hpp +++ b/src/utils/define.hpp @@ -7,6 +7,7 @@ public:\ void on_attach() override;\ void render() override;\ + void update() override;\ void on_event(VE::event e) override #define VE_CONNECT(DEF_CLASS) VE::event_manager::instance().connect(std::bind(&DEF_CLASS::on_event, this, std::placeholders::_1));