Interface WebGL2RenderingContextOverloads
interface WebGL2RenderingContextOverloads {
bufferData(target: number, size: number, usage: number): void;
bufferData(target: number, srcData: AllowSharedBufferSource, usage: number): void;
bufferData(target: number, srcData: ArrayBufferView, usage: number, srcOffset: number, length?: number): void;
bufferSubData(target: number, dstByteOffset: number, srcData: AllowSharedBufferSource): void;
bufferSubData(target: number, dstByteOffset: number, srcData: ArrayBufferView, srcOffset: number, length?: number): void;
compressedTexImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, imageSize: number, offset: number): void;
compressedTexImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: number): void;
compressedTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, imageSize: number, offset: number): void;
compressedTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: number): void;
readPixels(x: number, y: number, width: number, height: number, format: number, type: number, dstData: ArrayBufferView): void;
readPixels(x: number, y: number, width: number, height: number, format: number, type: number, offset: number): void;
readPixels(x: number, y: number, width: number, height: number, format: number, type: number, dstData: ArrayBufferView, dstOffset: number): 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, width: number, height: number, border: number, format: number, type: number, pboOffset: number): void;
texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, source: TexImageSource): void;
texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, srcData: ArrayBufferView, srcOffset: number): void;
texImage2D(target: number, level: number, internalformat: number, format: number, type: number, source: TexImageSourceWebCodecs): void;
texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: 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, width: number, height: number, format: number, type: number, pboOffset: number): void;
texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, source: TexImageSource): void;
texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, srcData: ArrayBufferView, srcOffset: number): void;
texSubImage2D(target: number, level: number, xoffset: number, yoffset: 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, source: TexImageSourceWebCodecs): void;
uniform1fv(location: WebGLUniformLocation, data: Float32List, srcOffset?: number, srcLength?: number): void;
uniform1fv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniform1iv(location: WebGLUniformLocation, data: Int32List, srcOffset?: number, srcLength?: number): void;
uniform1iv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniform2fv(location: WebGLUniformLocation, data: Float32List, srcOffset?: number, srcLength?: number): void;
uniform2fv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniform2iv(location: WebGLUniformLocation, data: Int32List, srcOffset?: number, srcLength?: number): void;
uniform2iv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniform3fv(location: WebGLUniformLocation, data: Float32List, srcOffset?: number, srcLength?: number): void;
uniform3fv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniform3iv(location: WebGLUniformLocation, data: Int32List, srcOffset?: number, srcLength?: number): void;
uniform3iv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniform4fv(location: WebGLUniformLocation, data: Float32List, srcOffset?: number, srcLength?: number): void;
uniform4fv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniform4iv(location: WebGLUniformLocation, data: Int32List, srcOffset?: number, srcLength?: number): void;
uniform4iv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, data: Float32List, srcOffset?: number, srcLength?: number): void;
uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, data: Float32List, srcOffset?: number, srcLength?: number): void;
uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, data: Float32List, srcOffset?: number, srcLength?: number): void;
uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
}
bufferData(target: number, size: number, usage: number): void;
bufferData(target: number, srcData: AllowSharedBufferSource, usage: number): void;
bufferData(target: number, srcData: ArrayBufferView, usage: number, srcOffset: number, length?: number): void;
bufferSubData(target: number, dstByteOffset: number, srcData: AllowSharedBufferSource): void;
bufferSubData(target: number, dstByteOffset: number, srcData: ArrayBufferView, srcOffset: number, length?: number): void;
compressedTexImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, imageSize: number, offset: number): void;
compressedTexImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: number): void;
compressedTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, imageSize: number, offset: number): void;
compressedTexSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, srcData: ArrayBufferView, srcOffset?: number, srcLengthOverride?: number): void;
readPixels(x: number, y: number, width: number, height: number, format: number, type: number, dstData: ArrayBufferView): void;
readPixels(x: number, y: number, width: number, height: number, format: number, type: number, offset: number): void;
readPixels(x: number, y: number, width: number, height: number, format: number, type: number, dstData: ArrayBufferView, dstOffset: number): 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, width: number, height: number, border: number, format: number, type: number, pboOffset: number): void;
texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, source: TexImageSource): void;
texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: number, format: number, type: number, srcData: ArrayBufferView, srcOffset: number): void;
texImage2D(target: number, level: number, internalformat: number, format: number, type: number, source: TexImageSourceWebCodecs): void;
texImage2D(target: number, level: number, internalformat: number, width: number, height: number, border: 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, width: number, height: number, format: number, type: number, pboOffset: number): void;
texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, source: TexImageSource): void;
texSubImage2D(target: number, level: number, xoffset: number, yoffset: number, width: number, height: number, format: number, type: number, srcData: ArrayBufferView, srcOffset: number): void;
texSubImage2D(target: number, level: number, xoffset: number, yoffset: 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, source: TexImageSourceWebCodecs): void;
uniform1fv(location: WebGLUniformLocation, data: Float32List, srcOffset?: number, srcLength?: number): void;
uniform1fv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniform1iv(location: WebGLUniformLocation, data: Int32List, srcOffset?: number, srcLength?: number): void;
uniform1iv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniform2fv(location: WebGLUniformLocation, data: Float32List, srcOffset?: number, srcLength?: number): void;
uniform2fv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniform2iv(location: WebGLUniformLocation, data: Int32List, srcOffset?: number, srcLength?: number): void;
uniform2iv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniform3fv(location: WebGLUniformLocation, data: Float32List, srcOffset?: number, srcLength?: number): void;
uniform3fv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniform3iv(location: WebGLUniformLocation, data: Int32List, srcOffset?: number, srcLength?: number): void;
uniform3iv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniform4fv(location: WebGLUniformLocation, data: Float32List, srcOffset?: number, srcLength?: number): void;
uniform4fv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniform4iv(location: WebGLUniformLocation, data: Int32List, srcOffset?: number, srcLength?: number): void;
uniform4iv(location: WebGLUniformLocation, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, data: Float32List, srcOffset?: number, srcLength?: number): void;
uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, data: Float32List, srcOffset?: number, srcLength?: number): void;
uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, data: Float32List, srcOffset?: number, srcLength?: number): void;
uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, data: Iterable<number, any, any>, srcOffset?: number, srcLength?: number): void;
}
Hierarchy
- WebGL2RenderingContextOverloads (view full)
Methods
bufferData
- buffer
Data (target, size, usage): void Parameters
- target: number
- size: number
- usage: number
Returns void
- buffer
Data (target, srcData, usage): void Parameters
- target: number
- srcData: AllowSharedBufferSource
- usage: number
Returns void
- buffer
Data (target, srcData, usage, srcOffset, length?): void Parameters
- target: number
- srcData: ArrayBufferView
- usage: number
- srcOffset: number
Optional
length: number
Returns void
bufferSubData
- buffer
Sub (target, dstByteOffset, srcData): voidData Parameters
- target: number
- dstByteOffset: number
- srcData: AllowSharedBufferSource
Returns void
- buffer
Sub (target, dstByteOffset, srcData, srcOffset, length?): voidData Parameters
- target: number
- dstByteOffset: number
- srcData: ArrayBufferView
- srcOffset: number
Optional
length: number
Returns void
compressedTexImage2D
- compressed
Tex (target, level, internalformat, width, height, border, imageSize, offset): voidImage2D Parameters
- target: number
- level: number
- internalformat: number
- width: number
- height: number
- border: number
- imageSize: number
- offset: number
Returns void
- compressed
Tex (target, level, internalformat, width, height, border, srcData, srcOffset?, srcLengthOverride?): voidImage2D Parameters
- target: number
- level: number
- internalformat: number
- width: number
- height: number
- border: number
- srcData: ArrayBufferView
Optional
srcOffset: numberOptional
srcLengthOverride: number
Returns void
compressedTexSubImage2D
- compressed
Tex (target, level, xoffset, yoffset, width, height, format, imageSize, offset): voidSub Image2D Parameters
- target: number
- level: number
- xoffset: number
- yoffset: number
- width: number
- height: number
- format: number
- imageSize: number
- offset: number
Returns void
- compressed
Tex (target, level, xoffset, yoffset, width, height, format, srcData, srcOffset?, srcLengthOverride?): voidSub Image2D Parameters
- target: number
- level: number
- xoffset: number
- yoffset: number
- width: number
- height: number
- format: number
- srcData: ArrayBufferView
Optional
srcOffset: numberOptional
srcLengthOverride: number
Returns void
readPixels
- read
Pixels (x, y, width, height, format, type, dstData): void Parameters
- x: number
- y: number
- width: number
- height: number
- format: number
- type: number
- dstData: ArrayBufferView
Returns void
- read
Pixels (x, y, width, height, format, type, offset): void Parameters
- x: number
- y: number
- width: number
- height: number
- format: number
- type: number
- offset: number
Returns void
- read
Pixels (x, y, width, height, format, type, dstData, dstOffset): void Parameters
- x: number
- y: number
- width: number
- height: number
- format: number
- type: number
- dstData: ArrayBufferView
- dstOffset: number
Returns void
texImage2D
- tex
Image2D (target, level, internalformat, width, height, border, format, type, pixels): void Parameters
- target: number
- level: number
- internalformat: number
- width: number
- height: number
- border: number
- format: number
- type: number
- pixels: ArrayBufferView
Returns void
- tex
Image2D (target, level, internalformat, format, type, source): void Parameters
- target: number
- level: number
- internalformat: number
- format: number
- type: number
- source: TexImageSource
Returns void
- tex
Image2D (target, level, internalformat, width, height, border, format, type, pboOffset): void Parameters
- target: number
- level: number
- internalformat: number
- width: number
- height: number
- border: number
- format: number
- type: number
- pboOffset: number
Returns void
- tex
Image2D (target, level, internalformat, width, height, border, format, type, source): void Parameters
- target: number
- level: number
- internalformat: number
- width: number
- height: number
- border: number
- format: number
- type: number
- source: TexImageSource
Returns void
- tex
Image2D (target, level, internalformat, width, height, border, format, type, srcData, srcOffset): void Parameters
- target: number
- level: number
- internalformat: number
- width: number
- height: number
- border: number
- format: number
- type: number
- srcData: ArrayBufferView
- srcOffset: number
Returns void
- tex
Image2D (target, level, internalformat, format, type, source): void Parameters
- target: number
- level: number
- internalformat: number
- format: number
- type: number
- source: TexImageSourceWebCodecs
Returns void
- tex
Image2D (target, level, internalformat, width, height, border, format, type, source): void Parameters
- target: number
- level: number
- internalformat: number
- width: number
- height: number
- border: number
- format: number
- type: number
- source: TexImageSourceWebCodecs
Returns void
texSubImage2D
- tex
Sub (target, level, xoffset, yoffset, width, height, format, type, pixels): voidImage2D Parameters
- target: number
- level: number
- xoffset: number
- yoffset: number
- width: number
- height: number
- format: number
- type: number
- pixels: ArrayBufferView
Returns void
- tex
Sub (target, level, xoffset, yoffset, format, type, source): voidImage2D Parameters
- target: number
- level: number
- xoffset: number
- yoffset: number
- format: number
- type: number
- source: TexImageSource
Returns void
- tex
Sub (target, level, xoffset, yoffset, width, height, format, type, pboOffset): voidImage2D Parameters
- target: number
- level: number
- xoffset: number
- yoffset: number
- width: number
- height: number
- format: number
- type: number
- pboOffset: number
Returns void
- tex
Sub (target, level, xoffset, yoffset, width, height, format, type, source): voidImage2D Parameters
- target: number
- level: number
- xoffset: number
- yoffset: number
- width: number
- height: number
- format: number
- type: number
- source: TexImageSource
Returns void
- tex
Sub (target, level, xoffset, yoffset, width, height, format, type, srcData, srcOffset): voidImage2D Parameters
- target: number
- level: number
- xoffset: number
- yoffset: number
- width: number
- height: number
- format: number
- type: number
- srcData: ArrayBufferView
- srcOffset: number
Returns void
- tex
Sub (target, level, xoffset, yoffset, format, type, source): voidImage2D Parameters
- target: number
- level: number
- xoffset: number
- yoffset: number
- format: number
- type: number
- source: TexImageSourceWebCodecs
Returns void
- tex
Sub (target, level, xoffset, yoffset, width, height, format, type, source): voidImage2D Parameters
- target: number
- level: number
- xoffset: number
- yoffset: number
- width: number
- height: number
- format: number
- type: number
- source: TexImageSourceWebCodecs
Returns void
uniform1fv
- uniform1fv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Float32List
Optional
srcOffset: numberOptional
srcLength: number
Returns void
- uniform1fv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Iterable<number, any, any>
Optional
srcOffset: numberOptional
srcLength: number
Returns void
uniform1iv
- uniform1iv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Int32List
Optional
srcOffset: numberOptional
srcLength: number
Returns void
- uniform1iv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Iterable<number, any, any>
Optional
srcOffset: numberOptional
srcLength: number
Returns void
uniform2fv
- uniform2fv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Float32List
Optional
srcOffset: numberOptional
srcLength: number
Returns void
- uniform2fv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Iterable<number, any, any>
Optional
srcOffset: numberOptional
srcLength: number
Returns void
uniform2iv
- uniform2iv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Int32List
Optional
srcOffset: numberOptional
srcLength: number
Returns void
- uniform2iv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Iterable<number, any, any>
Optional
srcOffset: numberOptional
srcLength: number
Returns void
uniform3fv
- uniform3fv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Float32List
Optional
srcOffset: numberOptional
srcLength: number
Returns void
- uniform3fv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Iterable<number, any, any>
Optional
srcOffset: numberOptional
srcLength: number
Returns void
uniform3iv
- uniform3iv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Int32List
Optional
srcOffset: numberOptional
srcLength: number
Returns void
- uniform3iv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Iterable<number, any, any>
Optional
srcOffset: numberOptional
srcLength: number
Returns void
uniform4fv
- uniform4fv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Float32List
Optional
srcOffset: numberOptional
srcLength: number
Returns void
- uniform4fv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Iterable<number, any, any>
Optional
srcOffset: numberOptional
srcLength: number
Returns void
uniform4iv
- uniform4iv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Int32List
Optional
srcOffset: numberOptional
srcLength: number
Returns void
- uniform4iv(location, data, srcOffset?, srcLength?): void
Parameters
- location: WebGLUniformLocation
- data: Iterable<number, any, any>
Optional
srcOffset: numberOptional
srcLength: number
Returns void
uniformMatrix2fv
- uniform
Matrix2fv (location, transpose, data, srcOffset?, srcLength?): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- data: Float32List
Optional
srcOffset: numberOptional
srcLength: number
Returns void
- uniform
Matrix2fv (location, transpose, data, srcOffset?, srcLength?): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- data: Iterable<number, any, any>
Optional
srcOffset: numberOptional
srcLength: number
Returns void
uniformMatrix3fv
- uniform
Matrix3fv (location, transpose, data, srcOffset?, srcLength?): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- data: Float32List
Optional
srcOffset: numberOptional
srcLength: number
Returns void
- uniform
Matrix3fv (location, transpose, data, srcOffset?, srcLength?): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- data: Iterable<number, any, any>
Optional
srcOffset: numberOptional
srcLength: number
Returns void
uniformMatrix4fv
- uniform
Matrix4fv (location, transpose, data, srcOffset?, srcLength?): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- data: Float32List
Optional
srcOffset: numberOptional
srcLength: number
Returns void
- uniform
Matrix4fv (location, transpose, data, srcOffset?, srcLength?): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- data: Iterable<number, any, any>
Optional
srcOffset: numberOptional
srcLength: number
Returns void
MDN Reference