Lua.cpp 301 B

12345678910111213141516171819
  1. #include "LuaPlugin.h"
  2. #include <RmlUi/Core/Core.h>
  3. #include <RmlUi/Lua/Lua.h>
  4. namespace Rml {
  5. namespace Lua {
  6. void Initialise()
  7. {
  8. ::Rml::Lua::Initialise(nullptr);
  9. }
  10. void Initialise(lua_State* lua_state)
  11. {
  12. ::Rml::RegisterPlugin(new LuaPlugin(lua_state));
  13. }
  14. } // namespace Lua
  15. } // namespace Rml