Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

WebGLRenderingContextOverloads

interface WebGLRenderingContextOverloads {
bufferData(
target: GLenum,
size: GLsizeiptr,
usage: GLenum,
): void;
bufferData(
target: GLenum,
data: BufferSource | null,
usage: GLenum,
): void;
bufferSubData(
target: GLenum,
offset: GLintptr,
): void;
compressedTexImage2D(
target: GLenum,
level: GLint,
internalformat: GLenum,
width: GLsizei,
height: GLsizei,
border: GLint,
data: ArrayBufferView,
): void;
compressedTexSubImage2D(
target: GLenum,
level: GLint,
xoffset: GLint,
yoffset: GLint,
width: GLsizei,
height: GLsizei,
format: GLenum,
data: ArrayBufferView,
): void;
readPixels(
x: GLint,
y: GLint,
width: GLsizei,
height: GLsizei,
format: GLenum,
type: GLenum,
pixels: ArrayBufferView | null,
): void;
texImage2D(
target: GLenum,
level: GLint,
internalformat: GLint,
width: GLsizei,
height: GLsizei,
border: GLint,
format: GLenum,
type: GLenum,
pixels: ArrayBufferView | null,
): void;
texImage2D(
target: GLenum,
level: GLint,
internalformat: GLint,
format: GLenum,
type: GLenum,
): void;
texSubImage2D(
target: GLenum,
level: GLint,
xoffset: GLint,
yoffset: GLint,
width: GLsizei,
height: GLsizei,
format: GLenum,
type: GLenum,
pixels: ArrayBufferView | null,
): void;
texSubImage2D(
target: GLenum,
level: GLint,
xoffset: GLint,
yoffset: GLint,
format: GLenum,
type: GLenum,
): void;
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void;
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void;
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void;
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void;
uniformMatrix2fv(
location: WebGLUniformLocation | null,
transpose: GLboolean,
value: Float32List,
): void;
uniformMatrix2fv(
location: WebGLUniformLocation | null,
transpose: GLboolean,
value: Iterable<GLfloat>,
): void;
uniformMatrix3fv(
location: WebGLUniformLocation | null,
transpose: GLboolean,
value: Float32List,
): void;
uniformMatrix3fv(
location: WebGLUniformLocation | null,
transpose: GLboolean,
value: Iterable<GLfloat>,
): void;
uniformMatrix4fv(
location: WebGLUniformLocation | null,
transpose: GLboolean,
value: Float32List,
): void;
uniformMatrix4fv(
location: WebGLUniformLocation | null,
transpose: GLboolean,
value: Iterable<GLfloat>,
): void;
}

§Methods

§
bufferData(
target: GLenum,
size: GLsizeiptr,
usage: GLenum,
): void
[src]
§
bufferData(
target: GLenum,
data: BufferSource | null,
usage: GLenum,
): void
[src]
§
bufferSubData(
target: GLenum,
offset: GLintptr,
): void
[src]
§
compressedTexImage2D(
target: GLenum,
level: GLint,
internalformat: GLenum,
width: GLsizei,
height: GLsizei,
border: GLint,
data: ArrayBufferView,
): void
[src]
§
compressedTexSubImage2D(
target: GLenum,
level: GLint,
xoffset: GLint,
yoffset: GLint,
width: GLsizei,
height: GLsizei,
format: GLenum,
data: ArrayBufferView,
): void
[src]
§
readPixels(
x: GLint,
y: GLint,
width: GLsizei,
height: GLsizei,
format: GLenum,
type: GLenum,
pixels: ArrayBufferView | null,
): void
[src]
§
texImage2D(
target: GLenum,
level: GLint,
internalformat: GLint,
width: GLsizei,
height: GLsizei,
border: GLint,
format: GLenum,
type: GLenum,
pixels: ArrayBufferView | null,
): void
[src]
§
texImage2D(
target: GLenum,
level: GLint,
internalformat: GLint,
format: GLenum,
type: GLenum,
): void
[src]
§
texSubImage2D(
target: GLenum,
level: GLint,
xoffset: GLint,
yoffset: GLint,
width: GLsizei,
height: GLsizei,
format: GLenum,
type: GLenum,
pixels: ArrayBufferView | null,
): void
[src]
§
texSubImage2D(
target: GLenum,
level: GLint,
xoffset: GLint,
yoffset: GLint,
format: GLenum,
type: GLenum,
): void
[src]
§
uniform1fv(location: WebGLUniformLocation | null, v: Float32List): void
[src]
§
uniform1fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void
[src]
§
uniform1iv(location: WebGLUniformLocation | null, v: Int32List): void
[src]
§
uniform1iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void
[src]
§
uniform2fv(location: WebGLUniformLocation | null, v: Float32List): void
[src]
§
uniform2fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void
[src]
§
uniform2iv(location: WebGLUniformLocation | null, v: Int32List): void
[src]
§
uniform2iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void
[src]
§
uniform3fv(location: WebGLUniformLocation | null, v: Float32List): void
[src]
§
uniform3fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void
[src]
§
uniform3iv(location: WebGLUniformLocation | null, v: Int32List): void
[src]
§
uniform3iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void
[src]
§
uniform4fv(location: WebGLUniformLocation | null, v: Float32List): void
[src]
§
uniform4fv(location: WebGLUniformLocation | null, v: Iterable<GLfloat>): void
[src]
§
uniform4iv(location: WebGLUniformLocation | null, v: Int32List): void
[src]
§
uniform4iv(location: WebGLUniformLocation | null, v: Iterable<GLint>): void
[src]
§
uniformMatrix2fv(
location: WebGLUniformLocation | null,
transpose: GLboolean,
value: Float32List,
): void
[src]
§
uniformMatrix2fv(
location: WebGLUniformLocation | null,
transpose: GLboolean,
value: Iterable<GLfloat>,
): void
[src]
§
uniformMatrix3fv(
location: WebGLUniformLocation | null,
transpose: GLboolean,
value: Float32List,
): void
[src]
§
uniformMatrix3fv(
location: WebGLUniformLocation | null,
transpose: GLboolean,
value: Iterable<GLfloat>,
): void
[src]
§
uniformMatrix4fv(
location: WebGLUniformLocation | null,
transpose: GLboolean,
value: Float32List,
): void
[src]
§
uniformMatrix4fv(
location: WebGLUniformLocation | null,
transpose: GLboolean,
value: Iterable<GLfloat>,
): void
[src]