Changeset 3340 for code/branches/resource/src/orxonox/gui
- Timestamp:
- Jul 23, 2009, 8:47:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource/src/orxonox/gui/GUIManager.cc
r3339 r3340 59 59 #include "core/Core.h" 60 60 #include "core/Clock.h" 61 #include "ToluaBindCore.h" 62 #include "ToluaBindOrxonox.h" 61 #include "core/LuaBind.h" 63 62 64 63 namespace orxonox … … 136 135 137 136 // do this after 'new CEGUI::Sytem' because that creates the lua state in the first place 138 tolua_Core_open(this->scriptModule_->getLuaState()); 139 tolua_Orxonox_open(this->scriptModule_->getLuaState()); 137 LuaBind::getInstance().openToluaInterfaces(this->luaState_); 140 138 141 139 // initialise the basic lua code … … 162 160 { 163 161 // destroy our own tolua interfaces 164 lua_pushnil(luaState_); 165 lua_setglobal(luaState_, "Orxonox"); 166 lua_pushnil(luaState_); 167 lua_setglobal(luaState_, "Core"); 162 LuaBind::getInstance().closeToluaInterfaces(this->luaState_); 168 163 169 164 singletonRef_s = 0;
Note: See TracChangeset
for help on using the changeset viewer.