initial commit
This commit is contained in:
18
src/utils/define.hpp
Executable file
18
src/utils/define.hpp
Executable file
@@ -0,0 +1,18 @@
|
||||
#pragma once
|
||||
|
||||
#define BIT(x)\
|
||||
(1 << x)
|
||||
|
||||
#define VE_EVENT_FN\
|
||||
std::bind(&application::on_event, this, std::placeholders::_1)
|
||||
|
||||
#define VE_FN_OVERIDE()\
|
||||
void on_attach() override;\
|
||||
void on_detach() override;\
|
||||
void render() override;\
|
||||
void on_event(VE::event e) override
|
||||
|
||||
#define VE_PUSH_FONT(def_font, def_size)\
|
||||
ImGui::PushFont(VE::style::fonts::get_font(VE::style::fonts::font_type::def_font, def_size))
|
||||
#define VE_POP_FONT() ImGui::PopFont()
|
||||
|
||||
Reference in New Issue
Block a user