setViewport method

void setViewport(
  1. Viewport viewport
)

Implementation

void setViewport(Viewport viewport) {
  assert(() {
    viewport._validate();
    return true;
  }());
  _setViewport(
    viewport.x,
    viewport.y,
    viewport.width,
    viewport.height,
    viewport.depthRange.zNear,
    viewport.depthRange.zFar,
  );
}