Skip to main content

GLDrawImage

Callable

  • GLDrawImage(url: string, gl: WebGL2RenderingContext, dstX: number, dstY: number, options: DrawOptions, offsetX?: number): void

  • Draws an image from a given url to a WebGLRenderingContext


    Parameters

    • url: string

      URL of the image to render

    • gl: WebGL2RenderingContext

      The context we're drawing with

    • dstX: number

      Position of the image on the X axis

    • dstY: number

      Position of the image on the Y axis

    • options: DrawOptions

      Drawing options

    • optionaloffsetX: number = 0

      Additional offset to add to the X axis (for blinking)

    Returns void

    • Nothing