Skip to main content

GLDrawLoadTransient

Callable


  • Uploads an image source into the scratch texture


    Parameters

    • gl: WebGL2RenderingContext

      WebGL context

    • source: HTMLImageElement | HTMLCanvasElement | ImageBitmap

      The source to upload

    Returns GLDrawImageData

    • The texture info for that source, or null if it has nothing to draw yet