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;
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;
uniform1fv(location: WebGLUniformLocation, v: Float32List): void;
uniform1fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform1iv(location: WebGLUniformLocation, v: Int32List): void;
uniform1iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform2fv(location: WebGLUniformLocation, v: Float32List): void;
uniform2fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform2iv(location: WebGLUniformLocation, v: Int32List): void;
uniform2iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform3fv(location: WebGLUniformLocation, v: Float32List): void;
uniform3fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform3iv(location: WebGLUniformLocation, v: Int32List): void;
uniform3iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform4fv(location: WebGLUniformLocation, v: Float32List): void;
uniform4fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform4iv(location: WebGLUniformLocation, v: Int32List): void;
uniform4iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Float32List): void;
uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Iterable<number, any, any>): void;
uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Float32List): void;
uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Iterable<number, any, any>): void;
uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Float32List): void;
uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Iterable<number, any, any>): void;
}
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;
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;
uniform1fv(location: WebGLUniformLocation, v: Float32List): void;
uniform1fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform1iv(location: WebGLUniformLocation, v: Int32List): void;
uniform1iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform2fv(location: WebGLUniformLocation, v: Float32List): void;
uniform2fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform2iv(location: WebGLUniformLocation, v: Int32List): void;
uniform2iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform3fv(location: WebGLUniformLocation, v: Float32List): void;
uniform3fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform3iv(location: WebGLUniformLocation, v: Int32List): void;
uniform3iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform4fv(location: WebGLUniformLocation, v: Float32List): void;
uniform4fv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniform4iv(location: WebGLUniformLocation, v: Int32List): void;
uniform4iv(location: WebGLUniformLocation, v: Iterable<number, any, any>): void;
uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Float32List): void;
uniformMatrix2fv(location: WebGLUniformLocation, transpose: boolean, value: Iterable<number, any, any>): void;
uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Float32List): void;
uniformMatrix3fv(location: WebGLUniformLocation, transpose: boolean, value: Iterable<number, any, any>): void;
uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Float32List): void;
uniformMatrix4fv(location: WebGLUniformLocation, transpose: boolean, value: Iterable<number, any, any>): void;
}
Hierarchy
- WebGLRenderingContextOverloads (view full)
Methods
bufferData
- buffer
Data (target, size, usage): void Parameters
- target: number
- size: number
- usage: number
Returns void
- buffer
Data (target, data, usage): void Parameters
- target: number
- data: AllowSharedBufferSource
- usage: number
Returns void
bufferSubData
- buffer
Sub (target, offset, data): voidData Parameters
- target: number
- offset: number
- data: AllowSharedBufferSource
Returns void
compressedTexImage2D
- compressed
Tex (target, level, internalformat, width, height, border, data): voidImage2D Parameters
- target: number
- level: number
- internalformat: number
- width: number
- height: number
- border: number
- data: ArrayBufferView
Returns void
compressedTexSubImage2D
- compressed
Tex (target, level, xoffset, yoffset, width, height, format, data): voidSub Image2D Parameters
- target: number
- level: number
- xoffset: number
- yoffset: number
- width: number
- height: number
- format: number
- data: ArrayBufferView
Returns void
readPixels
- read
Pixels (x, y, width, height, format, type, pixels): void Parameters
- x: number
- y: number
- width: number
- height: number
- format: number
- type: number
- pixels: ArrayBufferView
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
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
uniform1fv
- uniform1fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Float32List
Returns void
- uniform1fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniform1iv
- uniform1iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Int32List
Returns void
- uniform1iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniform2fv
- uniform2fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Float32List
Returns void
- uniform2fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniform2iv
- uniform2iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Int32List
Returns void
- uniform2iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniform3fv
- uniform3fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Float32List
Returns void
- uniform3fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniform3iv
- uniform3iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Int32List
Returns void
- uniform3iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniform4fv
- uniform4fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Float32List
Returns void
- uniform4fv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniform4iv
- uniform4iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Int32List
Returns void
- uniform4iv(location, v): void
Parameters
- location: WebGLUniformLocation
- v: Iterable<number, any, any>
Returns void
uniformMatrix2fv
- uniform
Matrix2fv (location, transpose, value): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- value: Float32List
Returns void
- uniform
Matrix2fv (location, transpose, value): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- value: Iterable<number, any, any>
Returns void
uniformMatrix3fv
- uniform
Matrix3fv (location, transpose, value): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- value: Float32List
Returns void
- uniform
Matrix3fv (location, transpose, value): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- value: Iterable<number, any, any>
Returns void
uniformMatrix4fv
- uniform
Matrix4fv (location, transpose, value): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- value: Float32List
Returns void
- uniform
Matrix4fv (location, transpose, value): void Parameters
- location: WebGLUniformLocation
- transpose: boolean
- value: Iterable<number, any, any>
Returns void
MDN Reference