remove func name from def
This commit is contained in:
@@ -5,7 +5,7 @@ namespace sandbox
|
||||
{
|
||||
void local_panel::on_attach()
|
||||
{
|
||||
VE_CONNECT(local_panel, on_event);
|
||||
VE_CONNECT(local_panel);
|
||||
hack::log()("on_attach");
|
||||
}
|
||||
|
||||
|
||||
@@ -43,9 +43,11 @@ namespace sandbox
|
||||
void cube::render() { buffer::render(); }
|
||||
|
||||
|
||||
// OPENGL_PANEL_LAYER
|
||||
|
||||
void opengl_panel::on_attach()
|
||||
{
|
||||
VE_CONNECT(opengl_panel, on_event);
|
||||
VE_CONNECT(opengl_panel);
|
||||
hack::log()("on_attach");
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace sandbox
|
||||
{
|
||||
void test_panel::on_attach()
|
||||
{
|
||||
VE_CONNECT(test_panel, on_event);
|
||||
VE_CONNECT(test_panel);
|
||||
hack::log()("on_attach", VE::application::get()->get_glfw()->width());
|
||||
}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ namespace sandbox
|
||||
{
|
||||
void test_panel_2::on_attach()
|
||||
{
|
||||
VE_CONNECT(test_panel_2, on_event);
|
||||
VE_CONNECT(test_panel_2);
|
||||
hack::log()("on_attach");
|
||||
}
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
void render() override;\
|
||||
void on_event(VE::event e) override
|
||||
|
||||
#define VE_CONNECT(DEF_CLASS, DEF_FUNCTION) VE::event_manager::instance().connect(std::bind(&DEF_CLASS::DEF_FUNCTION, this, std::placeholders::_1));
|
||||
#define VE_CONNECT(DEF_CLASS) VE::event_manager::instance().connect(std::bind(&DEF_CLASS::on_event, this, std::placeholders::_1));
|
||||
#define VE_EMIT(e) VE::event_manager::instance().emit(e)
|
||||
|
||||
#define VE_PUSH_FONT(def_font, def_size)\
|
||||
|
||||
Reference in New Issue
Block a user