Skip to main content

GLDrawLoadMask

Callable

  • GLDrawLoadMask(gl: WebGL2RenderingContext, texWidth: number, texHeight: number, offsetX: number, offsetY: number, alphaMasks: readonly RectTuple[]): WebGLTexture

  • Loads alpha mask data


    Parameters

    • gl: WebGL2RenderingContext

      The WebGL context

    • texWidth: number

      The width of the texture to mask

    • texHeight: number

      The height of the texture to mask

    • offsetX: number

      The X offset at which the texture is to be drawn on the target canvas

    • offsetY: number

      The Y offset at which the texture is to be drawn on the target canvas

    • alphaMasks: readonly RectTuple[]

      A list of alpha masks to apply to the asset

    Returns WebGLTexture

    • The WebGL texture corresponding to the mask