setOp method

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

Implementation

void 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;
  }
}