add update

This commit is contained in:
2025-02-26 15:38:59 +03:00
parent 2e3b6e3dae
commit 6a00aebb38
6 changed files with 22 additions and 0 deletions

View File

@@ -50,5 +50,10 @@ namespace sandbox
hack::log()(std::any_cast<std::string>(e.m_data));
}
}
void local_panel::update()
{
}
}

View File

@@ -51,6 +51,11 @@ namespace sandbox
hack::log()("on_attach");
}
void opengl_panel::update()
{
}
void opengl_panel::render()
{
m_cb_1.use();

View File

@@ -34,5 +34,10 @@ namespace sandbox
if (t == VE::event_type::MOUSE_BUTTON_PRESSED) hack::log()("once");
}
}
void test_panel::update()
{
}
}

View File

@@ -38,5 +38,10 @@ namespace sandbox
hack::log()(std::any_cast<std::string>(e.m_data));
}
}
void test_panel_2::update()
{
}
}

View File

@@ -19,6 +19,7 @@ namespace VE
public:
virtual void on_attach() {};
virtual void render() {};
virtual void update() {};
virtual void on_event(event e) {};
protected:

View File

@@ -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));