setViewport method
- 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,
);
}