summaryrefslogtreecommitdiff
path: root/Runtime/Scripting/GUI/GUI.bind.cpp
diff options
context:
space:
mode:
authorchai <chaifix@163.com>2021-11-01 16:53:51 +0800
committerchai <chaifix@163.com>2021-11-01 16:53:51 +0800
commitb7310c9cce95bfc9bfe135063ee0e97fbc654928 (patch)
tree459d37f0acd9b9dd6719b71d1ecc8620dc1f5fef /Runtime/Scripting/GUI/GUI.bind.cpp
parent4dead522e513ffd326101b790b2129595f72ff42 (diff)
*misc
Diffstat (limited to 'Runtime/Scripting/GUI/GUI.bind.cpp')
-rw-r--r--Runtime/Scripting/GUI/GUI.bind.cpp24
1 files changed, 24 insertions, 0 deletions
diff --git a/Runtime/Scripting/GUI/GUI.bind.cpp b/Runtime/Scripting/GUI/GUI.bind.cpp
new file mode 100644
index 0000000..4f6ed7a
--- /dev/null
+++ b/Runtime/Scripting/GUI/GUI.bind.cpp
@@ -0,0 +1,24 @@
+#include "Runtime/Lua/LuaHelper.h"
+#include "Runtime/Debug/Log.h"
+#include "Runtime/Common/DataBuffer.h"
+#include "Runtime/FileSystem/FileJobs.h"
+#include "Runtime/GUI/Font.h"
+
+using namespace std;
+using namespace LuaBind;
+
+int luaopen_GameLab_Engine_GUI(lua_State* L)
+{
+ log_info_tag("Scripting", "luaopen_GameLab_Engine_GUI()");
+
+ LUA_BIND_STATE(L);
+
+ state.PushGlobalNamespace();
+ state.PushNamespace("GameLab");
+ state.PushNamespace("Engine");
+ state.PushNamespace("GUI");
+
+ state.RegisterNativeClass<Font>();
+
+ return 1;
+} \ No newline at end of file