Skip to main content

GLDraw2DCanvas

Callable

  • GLDraw2DCanvas(gl: WebGL2RenderingContext, Img: HTMLCanvasElement | HTMLImageElement, X: number, Y: number, blinkOffset: number, alphaMasks: readonly RectTuple[]): void

  • Draws a canvas on the WebGL canvas


    Parameters

    • gl: WebGL2RenderingContext

      WebGL context

    • Img: HTMLCanvasElement | HTMLImageElement

      Canvas to get the data of

    • X: number

      Position of the image on the X axis

    • Y: number

      Position of the image on the Y axis

    • blinkOffset: number

      Offset for the blink canvas

    • alphaMasks: readonly RectTuple[]

      A list of alpha masks to apply to the asset

    Returns void