int w_Quad_getViewport(lua_State * L) { Quad * quad = luax_checktype<Quad>(L, 1, "Quad", GRAPHICS_QUAD_T); Quad::Viewport v = quad->getViewport(); lua_pushnumber(L, v.x); lua_pushnumber(L, v.y); lua_pushnumber(L, v.w); lua_pushnumber(L, v.h); return 4; }
int w_Quad_getViewport(lua_State *L) { Quad *quad = luax_checkquad(L, 1); Quad::Viewport v = quad->getViewport(); lua_pushnumber(L, v.x); lua_pushnumber(L, v.y); lua_pushnumber(L, v.w); lua_pushnumber(L, v.h); return 4; }