GLint setX(lua_State* L) { if(lua_isstring(L,-2)) { Renderable* auxrender = (Core::getInstance())->getRenderable(lua_tostring(L,-2)); auxrender->move(lua_tonumber(L,-1), auxrender->getY()); } }
GLint getY(lua_State* L) { Renderable* auxrender = (Core::getInstance())->getRenderable(lua_tostring(L,-1)); lua_pushnumber(L,auxrender->getY()); }