setScissor method

void setScissor(
  1. double x,
  2. double y,
  3. double width,
  4. double height,
)

Implementation

void setScissor(double x, double y, double width, double height) {
  _scissor.setValues(x, y, width, height);
  _currentScissor.setFrom(_scissor);
  _currentScissor.scale(_pixelRatio);
  _currentScissor.floor();
  state.scissor(_currentScissor);
}