Skip to main content

WebGLRenderingContextOverloads

Extended by

Methods

bufferData()

Call Signature

bufferData(
target,
size,
usage
): void;

MDN Reference

Parameters
ParameterType
targetnumber
sizenumber
usagenumber
Returns

void

Call Signature

bufferData(
target,
data,
usage
): void;
Parameters
ParameterType
targetnumber
dataAllowSharedBufferSource | null
usagenumber
Returns

void


bufferSubData()

bufferSubData(
target,
offset,
data
): void;

MDN Reference

Parameters

ParameterType
targetnumber
offsetnumber
dataAllowSharedBufferSource

Returns

void


compressedTexImage2D()

compressedTexImage2D(
target,
level,
internalformat,
width,
height,
border,
data
): void;

MDN Reference

Parameters

ParameterType
targetnumber
levelnumber
internalformatnumber
widthnumber
heightnumber
bordernumber
dataArrayBufferView<ArrayBufferLike>

Returns

void


compressedTexSubImage2D()

compressedTexSubImage2D(
target,
level,
xoffset,
yoffset,
width,
height,
format,
data
): void;

MDN Reference

Parameters

ParameterType
targetnumber
levelnumber
xoffsetnumber
yoffsetnumber
widthnumber
heightnumber
formatnumber
dataArrayBufferView<ArrayBufferLike>

Returns

void


readPixels()

readPixels(
x,
y,
width,
height,
format,
type,
pixels
): void;

MDN Reference

Parameters

ParameterType
xnumber
ynumber
widthnumber
heightnumber
formatnumber
typenumber
pixels| ArrayBufferView<ArrayBufferLike> | null

Returns

void


texImage2D()

Call Signature

texImage2D(
target,
level,
internalformat,
width,
height,
border,
format,
type,
pixels
): void;

MDN Reference

Parameters
ParameterType
targetnumber
levelnumber
internalformatnumber
widthnumber
heightnumber
bordernumber
formatnumber
typenumber
pixels| ArrayBufferView<ArrayBufferLike> | null
Returns

void

Call Signature

texImage2D(
target,
level,
internalformat,
format,
type,
source
): void;
Parameters
ParameterType
targetnumber
levelnumber
internalformatnumber
formatnumber
typenumber
sourceTexImageSource
Returns

void


texSubImage2D()

Call Signature

texSubImage2D(
target,
level,
xoffset,
yoffset,
width,
height,
format,
type,
pixels
): void;

MDN Reference

Parameters
ParameterType
targetnumber
levelnumber
xoffsetnumber
yoffsetnumber
widthnumber
heightnumber
formatnumber
typenumber
pixels| ArrayBufferView<ArrayBufferLike> | null
Returns

void

Call Signature

texSubImage2D(
target,
level,
xoffset,
yoffset,
format,
type,
source
): void;
Parameters
ParameterType
targetnumber
levelnumber
xoffsetnumber
yoffsetnumber
formatnumber
typenumber
sourceTexImageSource
Returns

void


uniform1fv()

Call Signature

uniform1fv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vFloat32List
Returns

void

Call Signature

uniform1fv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vIterable<number>
Returns

void


uniform1iv()

Call Signature

uniform1iv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vInt32List
Returns

void

Call Signature

uniform1iv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vIterable<number>
Returns

void


uniform2fv()

Call Signature

uniform2fv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vFloat32List
Returns

void

Call Signature

uniform2fv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vIterable<number>
Returns

void


uniform2iv()

Call Signature

uniform2iv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vInt32List
Returns

void

Call Signature

uniform2iv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vIterable<number>
Returns

void


uniform3fv()

Call Signature

uniform3fv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vFloat32List
Returns

void

Call Signature

uniform3fv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vIterable<number>
Returns

void


uniform3iv()

Call Signature

uniform3iv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vInt32List
Returns

void

Call Signature

uniform3iv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vIterable<number>
Returns

void


uniform4fv()

Call Signature

uniform4fv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vFloat32List
Returns

void

Call Signature

uniform4fv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vIterable<number>
Returns

void


uniform4iv()

Call Signature

uniform4iv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vInt32List
Returns

void

Call Signature

uniform4iv(location, v): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
vIterable<number>
Returns

void


uniformMatrix2fv()

Call Signature

uniformMatrix2fv(
location,
transpose,
value
): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
transposeboolean
valueFloat32List
Returns

void

Call Signature

uniformMatrix2fv(
location,
transpose,
value
): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
transposeboolean
valueIterable<number>
Returns

void


uniformMatrix3fv()

Call Signature

uniformMatrix3fv(
location,
transpose,
value
): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
transposeboolean
valueFloat32List
Returns

void

Call Signature

uniformMatrix3fv(
location,
transpose,
value
): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
transposeboolean
valueIterable<number>
Returns

void


uniformMatrix4fv()

Call Signature

uniformMatrix4fv(
location,
transpose,
value
): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
transposeboolean
valueFloat32List
Returns

void

Call Signature

uniformMatrix4fv(
location,
transpose,
value
): void;

MDN Reference

Parameters
ParameterType
locationWebGLUniformLocation | null
transposeboolean
valueIterable<number>
Returns

void