setOp method

dynamic setOp(
  1. int stencilFail,
  2. int stencilZFail,
  3. int stencilZPass
)

Implementation

setOp(int stencilFail, int stencilZFail, int stencilZPass) {
  if (currentStencilFail != stencilFail ||
      currentStencilZFail != stencilZFail ||
      currentStencilZPass != stencilZPass) {
    gl.stencilOp(stencilFail, stencilZFail, stencilZPass);

    currentStencilFail = stencilFail;
    currentStencilZFail = stencilZFail;
    currentStencilZPass = stencilZPass;
  }
}