add update
This commit is contained in:
@@ -50,5 +50,10 @@ namespace sandbox
|
|||||||
hack::log()(std::any_cast<std::string>(e.m_data));
|
hack::log()(std::any_cast<std::string>(e.m_data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void local_panel::update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -51,6 +51,11 @@ namespace sandbox
|
|||||||
hack::log()("on_attach");
|
hack::log()("on_attach");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void opengl_panel::update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
void opengl_panel::render()
|
void opengl_panel::render()
|
||||||
{
|
{
|
||||||
m_cb_1.use();
|
m_cb_1.use();
|
||||||
|
|||||||
@@ -34,5 +34,10 @@ namespace sandbox
|
|||||||
if (t == VE::event_type::MOUSE_BUTTON_PRESSED) hack::log()("once");
|
if (t == VE::event_type::MOUSE_BUTTON_PRESSED) hack::log()("once");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void test_panel::update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,5 +38,10 @@ namespace sandbox
|
|||||||
hack::log()(std::any_cast<std::string>(e.m_data));
|
hack::log()(std::any_cast<std::string>(e.m_data));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void test_panel_2::update()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -19,6 +19,7 @@ namespace VE
|
|||||||
public:
|
public:
|
||||||
virtual void on_attach() {};
|
virtual void on_attach() {};
|
||||||
virtual void render() {};
|
virtual void render() {};
|
||||||
|
virtual void update() {};
|
||||||
virtual void on_event(event e) {};
|
virtual void on_event(event e) {};
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
@@ -7,6 +7,7 @@
|
|||||||
public:\
|
public:\
|
||||||
void on_attach() override;\
|
void on_attach() override;\
|
||||||
void render() override;\
|
void render() override;\
|
||||||
|
void update() override;\
|
||||||
void on_event(VE::event e) 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));
|
#define VE_CONNECT(DEF_CLASS) VE::event_manager::instance().connect(std::bind(&DEF_CLASS::on_event, this, std::placeholders::_1));
|
||||||
|
|||||||
Reference in New Issue
Block a user