Skip to main content

GLDrawImage

Callable

  • GLDrawImage(source, gl, dstX, dstY, options, offsetX): void

  • Draws an image to a WebGLRenderingContext


    Parameters

    • source: DrawSource

      The image to render, or the URL to load it from

    • 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

    • optionaloptions: DrawOptions

      Drawing options

    • optionaloffsetX: number = 0

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

    Returns void

    • Nothing