clear method

void clear([
  1. bool color = true,
  2. bool depth = true,
  3. bool stencil = true
])

Implementation

void clear([bool color = true, bool depth = true, bool stencil = true]) {
  int bits = 0;

  if (color) bits |= WebGL.COLOR_BUFFER_BIT;
  if (depth) bits |= WebGL.DEPTH_BUFFER_BIT;
  if (stencil) bits |= WebGL.STENCIL_BUFFER_BIT;

  _gl.clear(bits);
}