Code: Select all
int game::addActor_lua(lua_State* luaVM)
{
stringw file;
file = (stringw)lua_tostring(luaVM, 1);
smgr->addAnimatedMeshSceneNode(smgr->getMesh(file));
//std::cout<<file.c_str()<<std::endl;
return 1;
}
how to solve this problem? i'm fairly new to Lua (and never used a static function before) i would like to know how you guys manage to bind it with your game. thanks!error: invalid use of member 'game::smgr' in static member function