Skip to main content

GLDrawClearRect

Callable

  • GLDrawClearRect(gl: WebGLRenderingContext, x: number, y: number, width: number, height: number, blinkOffset: number): void

  • Clears a rectangle on WebGLRenderingContext


    Parameters

    • gl: WebGLRenderingContext

      WebGL context

    • x: number

      Position of the image on the X axis

    • y: number

      Position of the image on the Y axis

    • width: number

      Width of the rectangle to clear

    • height: number

      Height of the rectangle to clear

    • blinkOffset: number

      Offset in case of a blink draw

    Returns void

    • Nothing