From b7310c9cce95bfc9bfe135063ee0e97fbc654928 Mon Sep 17 00:00:00 2001 From: chai Date: Mon, 1 Nov 2021 16:53:51 +0800 Subject: *misc --- Runtime/Scripting/GUI/GUI.bind.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Runtime/Scripting/GUI/GUI.bind.cpp (limited to 'Runtime/Scripting/GUI/GUI.bind.cpp') 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(); + + return 1; +} \ No newline at end of file -- cgit v1.1-26-g67d0