setMask method

dynamic setMask(
  1. bool colorMask
)

Implementation

setMask(bool colorMask) {
  if (currentColorMask != colorMask && !locked) {
    gl.colorMask(colorMask, colorMask, colorMask, colorMask);
    currentColorMask = colorMask;
  }
}