setFunc method

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

Implementation

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