viewport method

void viewport(
  1. Vector4 viewport
)

Implementation

void viewport(Vector4 viewport) {
  if (currentViewport.equals(viewport) == false) {
    gl.viewport(viewport.x.toInt(), viewport.y.toInt(), viewport.z.toInt(), viewport.w.toInt());
    currentViewport.copy(viewport);
  }
}