Function clearContext

  • Clears the specified buffers to the specified values.

    Parameters

    • gl: WebGL2RenderingContext

      The rendering context to clear.

    • Optional color: Color

      The color to clear the color buffer to, if any.

    • Optional depth: number

      The value to clear the depth buffer to, if any.

    • Optional stencil: number

      The value to clear the stencil buffer to, if any.

    Returns void

Generated using TypeDoc