setFunc method

void setFunc(
  1. int stencilFunc,
  2. int stencilRef,
  3. int stencilMask
)

Implementation

void setFunc(int stencilFunc, int stencilRef, int stencilMask) {
  if (currentStencilFunc != stencilFunc || currentStencilRef != stencilRef || currentStencilFuncMask != stencilMask) {
    gl.stencilFunc(stencilFunc, stencilRef, stencilMask);

    currentStencilFunc = stencilFunc;
    currentStencilRef = stencilRef;
    currentStencilFuncMask = stencilMask;
  }
}