Interface WebGLRenderingContextOverloads

    interface WebGLRenderingContextOverloads {
        bufferData(target: number, size: number, usage: number): void;
        bufferData(
            target: number,
            data: AllowSharedBufferSource,
            usage: number,
        ): void;
        bufferSubData(
            target: number,
            offset: number,
            data: AllowSharedBufferSource,
        ): void;
        compressedTexImage2D(
            target: number,
            level: number,
            internalformat: number,
            width: number,
            height: number,
            border: number,
            data: ArrayBufferView,
        ): void;
        compressedTexSubImage2D(
            target: number,
            level: number,
            xoffset: number,
            yoffset: number,
            width: number,
            height: number,
            format: number,
            data: ArrayBufferView,
        ): void;
        readPixels(
            x: number,
            y: number,
            width: number,
            height: number,
            format: number,
            type: number,
            pixels: ArrayBufferView,
        ): void;
        texImage2D(
            target: number,
            level: number,
            internalformat: number,
            width: number,
            height: number,
            border: number,
            format: number,
            type: number,
            pixels: ArrayBufferView,
        ): void;
        texImage2D(
            target: number,
            level: number,
            internalformat: number,
            format: number,
            type: number,
            source: TexImageSource,
        ): void;
        texImage2D(
            target: number,
            level: number,
            internalformat: number,
            format: number,
            type: number,
            source: TexImageSourceWebCodecs,
        ): void;
        texSubImage2D(
            target: number,
            level: number,
            xoffset: number,
            yoffset: number,
            width: number,
            height: number,
            format: number,
            type: number,
            pixels: ArrayBufferView,
        ): void;
        texSubImage2D(
            target: number,
            level: number,
            xoffset: number,
            yoffset: number,
            format: number,
            type: number,
            source: TexImageSource,
        ): void;
        texSubImage2D(
            target: number,
            level: number,
            xoffset: number,
            yoffset: number,
            format: number,
            type: number,
            source: TexImageSourceWebCodecs,
        ): void;
        uniform1fv(location: WebGLUniformLocation, v: Float32List): void;
        uniform1fv(location: WebGLUniformLocation, v: Iterable<number>): void;
        uniform1iv(location: WebGLUniformLocation, v: Int32List): void;
        uniform1iv(location: WebGLUniformLocation, v: Iterable<number>): void;
        uniform2fv(location: WebGLUniformLocation, v: Float32List): void;
        uniform2fv(location: WebGLUniformLocation, v: Iterable<number>): void;
        uniform2iv(location: WebGLUniformLocation, v: Int32List): void;
        uniform2iv(location: WebGLUniformLocation, v: Iterable<number>): void;
        uniform3fv(location: WebGLUniformLocation, v: Float32List): void;
        uniform3fv(location: WebGLUniformLocation, v: Iterable<number>): void;
        uniform3iv(location: WebGLUniformLocation, v: Int32List): void;
        uniform3iv(location: WebGLUniformLocation, v: Iterable<number>): void;
        uniform4fv(location: WebGLUniformLocation, v: Float32List): void;
        uniform4fv(location: WebGLUniformLocation, v: Iterable<number>): void;
        uniform4iv(location: WebGLUniformLocation, v: Int32List): void;
        uniform4iv(location: WebGLUniformLocation, v: Iterable<number>): void;
        uniformMatrix2fv(
            location: WebGLUniformLocation,
            transpose: boolean,
            value: Float32List,
        ): void;
        uniformMatrix2fv(
            location: WebGLUniformLocation,
            transpose: boolean,
            value: Iterable<number>,
        ): void;
        uniformMatrix3fv(
            location: WebGLUniformLocation,
            transpose: boolean,
            value: Float32List,
        ): void;
        uniformMatrix3fv(
            location: WebGLUniformLocation,
            transpose: boolean,
            value: Iterable<number>,
        ): void;
        uniformMatrix4fv(
            location: WebGLUniformLocation,
            transpose: boolean,
            value: Float32List,
        ): void;
        uniformMatrix4fv(
            location: WebGLUniformLocation,
            transpose: boolean,
            value: Iterable<number>,
        ): void;
    }
    Hierarchy

    Methods

    • Parameters

      • target: number
      • level: number
      • internalformat: number
      • width: number
      • height: number
      • border: number
      • data: ArrayBufferView

      Returns void

    • Parameters

      • target: number
      • level: number
      • xoffset: number
      • yoffset: number
      • width: number
      • height: number
      • format: number
      • data: ArrayBufferView

      Returns void

    • Parameters

      • x: number
      • y: number
      • width: number
      • height: number
      • format: number
      • type: number
      • pixels: ArrayBufferView

      Returns void

    • Parameters

      • target: number
      • level: number
      • internalformat: number
      • width: number
      • height: number
      • border: number
      • format: number
      • type: number
      • pixels: ArrayBufferView

      Returns void

    • Parameters

      • target: number
      • level: number
      • internalformat: number
      • format: number
      • type: number
      • source: TexImageSource

      Returns void

    • Parameters

      Returns void

    • Parameters

      • target: number
      • level: number
      • xoffset: number
      • yoffset: number
      • width: number
      • height: number
      • format: number
      • type: number
      • pixels: ArrayBufferView

      Returns void

    • Parameters

      • target: number
      • level: number
      • xoffset: number
      • yoffset: number
      • format: number
      • type: number
      • source: TexImageSource

      Returns void

    • Parameters

      Returns void