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