Appearance
RenderingContext
class RenderingContext extends JavaScriptObject implements CanvasRenderingContextAnnotations: @SupportedBrowser.new(SupportedBrowser.CHROME), @SupportedBrowser.new(SupportedBrowser.FIREFOX), @Unstable.new(), @Native.new("WebGLRenderingContext")
Implemented types
Properties
canvas no setter override
CanvasElement get canvasImplementation
dart
CanvasElement get canvas native;drawingBufferHeight no setter
int? get drawingBufferHeightImplementation
dart
int? get drawingBufferHeight native;drawingBufferWidth no setter
int? get drawingBufferWidthImplementation
dart
int? get drawingBufferWidth native;hashCode no setter inherited
int get hashCodeInherited from Interceptor.
Implementation
dart
int get hashCode => Primitives.objectHashCode(this);runtimeType no setter inherited
Type get runtimeTypeInherited from Interceptor.
Implementation
dart
Type get runtimeType =>
getRuntimeTypeOfInterceptorNotArray(getInterceptor(this), this);Methods
activeTexture()
void activeTexture(int texture)Implementation
dart
void activeTexture(int texture) native;attachShader()
Implementation
dart
void attachShader(Program program, Shader shader) native;bindAttribLocation()
Implementation
dart
void bindAttribLocation(Program program, int index, String name) native;bindBuffer()
Implementation
dart
void bindBuffer(int target, Buffer? buffer) native;bindFramebuffer()
void bindFramebuffer(int target, Framebuffer? framebuffer)Implementation
dart
void bindFramebuffer(int target, Framebuffer? framebuffer) native;bindRenderbuffer()
void bindRenderbuffer(int target, Renderbuffer? renderbuffer)Implementation
dart
void bindRenderbuffer(int target, Renderbuffer? renderbuffer) native;bindTexture()
Implementation
dart
void bindTexture(int target, Texture? texture) native;blendColor()
Implementation
dart
void blendColor(num red, num green, num blue, num alpha) native;blendEquation()
void blendEquation(int mode)Implementation
dart
void blendEquation(int mode) native;blendEquationSeparate()
Implementation
dart
void blendEquationSeparate(int modeRGB, int modeAlpha) native;blendFunc()
Implementation
dart
void blendFunc(int sfactor, int dfactor) native;blendFuncSeparate()
Implementation
dart
void blendFuncSeparate(
int srcRGB,
int dstRGB,
int srcAlpha,
int dstAlpha,
) native;bufferData()
Implementation
dart
void bufferData(int target, data_OR_size, int usage) native;deprecated bufferDataTyped()
DEPRECATED
Use bufferData
Set the bufferData to data.
Implementation
dart
@Deprecated("Use bufferData")
void bufferDataTyped(int target, TypedData data, int usage) {
bufferData(target, data, usage);
}bufferSubData()
Implementation
dart
void bufferSubData(int target, int offset, data) native;deprecated bufferSubDataTyped()
DEPRECATED
Use bufferSubData
Set the bufferSubData to data.
Implementation
dart
@Deprecated("Use bufferSubData")
void bufferSubDataTyped(int target, int offset, TypedData data) {
bufferSubData(target, offset, data);
}checkFramebufferStatus()
Implementation
dart
int checkFramebufferStatus(int target) native;clear()
void clear(int mask)Implementation
dart
void clear(int mask) native;clearColor()
Implementation
dart
void clearColor(num red, num green, num blue, num alpha) native;clearDepth()
void clearDepth(num depth)Implementation
dart
void clearDepth(num depth) native;clearStencil()
void clearStencil(int s)Implementation
dart
void clearStencil(int s) native;colorMask()
Implementation
dart
void colorMask(bool red, bool green, bool blue, bool alpha) native;commit()
Future<dynamic> commit()Implementation
dart
Future commit() => promiseToFuture(JS("", "#.commit()", this));compileShader()
void compileShader(Shader shader)Implementation
dart
void compileShader(Shader shader) native;compressedTexImage2D()
void compressedTexImage2D(
int target,
int level,
int internalformat,
int width,
int height,
int border,
TypedData data,
)Implementation
dart
void compressedTexImage2D(
int target,
int level,
int internalformat,
int width,
int height,
int border,
TypedData data,
) native;compressedTexSubImage2D()
void compressedTexSubImage2D(
int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
TypedData data,
)Implementation
dart
void compressedTexSubImage2D(
int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
TypedData data,
) native;copyTexImage2D()
void copyTexImage2D(
int target,
int level,
int internalformat,
int x,
int y,
int width,
int height,
int border,
)Implementation
dart
void copyTexImage2D(
int target,
int level,
int internalformat,
int x,
int y,
int width,
int height,
int border,
) native;copyTexSubImage2D()
void copyTexSubImage2D(
int target,
int level,
int xoffset,
int yoffset,
int x,
int y,
int width,
int height,
)Implementation
dart
void copyTexSubImage2D(
int target,
int level,
int xoffset,
int yoffset,
int x,
int y,
int width,
int height,
) native;createBuffer()
Buffer createBuffer()Implementation
dart
Buffer createBuffer() native;createFramebuffer()
Framebuffer createFramebuffer()Implementation
dart
Framebuffer createFramebuffer() native;createProgram()
Program createProgram()Implementation
dart
Program createProgram() native;createRenderbuffer()
Renderbuffer createRenderbuffer()Implementation
dart
Renderbuffer createRenderbuffer() native;createShader()
Implementation
dart
Shader createShader(int type) native;createTexture()
Texture createTexture()Implementation
dart
Texture createTexture() native;cullFace()
void cullFace(int mode)Implementation
dart
void cullFace(int mode) native;deleteBuffer()
void deleteBuffer(Buffer? buffer)Implementation
dart
void deleteBuffer(Buffer? buffer) native;deleteFramebuffer()
void deleteFramebuffer(Framebuffer? framebuffer)Implementation
dart
void deleteFramebuffer(Framebuffer? framebuffer) native;deleteProgram()
void deleteProgram(Program? program)Implementation
dart
void deleteProgram(Program? program) native;deleteRenderbuffer()
void deleteRenderbuffer(Renderbuffer? renderbuffer)Implementation
dart
void deleteRenderbuffer(Renderbuffer? renderbuffer) native;deleteShader()
void deleteShader(Shader? shader)Implementation
dart
void deleteShader(Shader? shader) native;deleteTexture()
void deleteTexture(Texture? texture)Implementation
dart
void deleteTexture(Texture? texture) native;depthFunc()
void depthFunc(int func)Implementation
dart
void depthFunc(int func) native;depthMask()
void depthMask(bool flag)Implementation
dart
void depthMask(bool flag) native;depthRange()
Implementation
dart
void depthRange(num zNear, num zFar) native;detachShader()
Implementation
dart
void detachShader(Program program, Shader shader) native;disable()
void disable(int cap)Implementation
dart
void disable(int cap) native;disableVertexAttribArray()
void disableVertexAttribArray(int index)Implementation
dart
void disableVertexAttribArray(int index) native;drawArrays()
Implementation
dart
void drawArrays(int mode, int first, int count) native;drawElements()
Implementation
dart
void drawElements(int mode, int count, int type, int offset) native;enable()
void enable(int cap)Implementation
dart
void enable(int cap) native;enableVertexAttribArray()
void enableVertexAttribArray(int index)Implementation
dart
void enableVertexAttribArray(int index) native;finish()
void finish()Implementation
dart
void finish() native;flush()
void flush()Implementation
dart
void flush() native;framebufferRenderbuffer()
void framebufferRenderbuffer(
int target,
int attachment,
int renderbuffertarget,
Renderbuffer? renderbuffer,
)Implementation
dart
void framebufferRenderbuffer(
int target,
int attachment,
int renderbuffertarget,
Renderbuffer? renderbuffer,
) native;framebufferTexture2D()
void framebufferTexture2D(
int target,
int attachment,
int textarget,
Texture? texture,
int level,
)Implementation
dart
void framebufferTexture2D(
int target,
int attachment,
int textarget,
Texture? texture,
int level,
) native;frontFace()
void frontFace(int mode)Implementation
dart
void frontFace(int mode) native;generateMipmap()
void generateMipmap(int target)Implementation
dart
void generateMipmap(int target) native;getActiveAttrib()
ActiveInfo getActiveAttrib(Program program, int index)Implementation
dart
ActiveInfo getActiveAttrib(Program program, int index) native;getActiveUniform()
ActiveInfo getActiveUniform(Program program, int index)Implementation
dart
ActiveInfo getActiveUniform(Program program, int index) native;getAttachedShaders()
Implementation
dart
List<Shader>? getAttachedShaders(Program program) native;getAttribLocation()
Implementation
dart
int getAttribLocation(Program program, String name) native;getBufferParameter()
Implementation
dart
@Creates('int|Null')
@Returns('int|Null')
Object? getBufferParameter(int target, int pname) native;getContextAttributes()
Map<dynamic, dynamic>? getContextAttributes()Implementation
dart
@Creates('ContextAttributes|Null')
Map? getContextAttributes() {
return convertNativeToDart_Dictionary(_getContextAttributes_1());
}getError()
int getError()Implementation
dart
int getError() native;getExtension()
Implementation
dart
Object? getExtension(String name) native;getFramebufferAttachmentParameter()
Implementation
dart
@Creates('int|Renderbuffer|Texture|Null')
@Returns('int|Renderbuffer|Texture|Null')
Object? getFramebufferAttachmentParameter(
int target,
int attachment,
int pname,
) native;getParameter()
Implementation
dart
@Creates(
'Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List|NativeUint32List|Framebuffer|Renderbuffer|Texture',
)
@Returns(
'Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List|NativeUint32List|Framebuffer|Renderbuffer|Texture',
)
Object? getParameter(int pname) native;getProgramInfoLog()
Implementation
dart
String? getProgramInfoLog(Program program) native;getProgramParameter()
Implementation
dart
@Creates('int|bool|Null')
@Returns('int|bool|Null')
Object? getProgramParameter(Program program, int pname) native;getRenderbufferParameter()
Implementation
dart
@Creates('int|Null')
@Returns('int|Null')
Object? getRenderbufferParameter(int target, int pname) native;getShaderInfoLog()
Implementation
dart
String? getShaderInfoLog(Shader shader) native;getShaderParameter()
Implementation
dart
@Creates('int|bool|Null')
@Returns('int|bool|Null')
Object? getShaderParameter(Shader shader, int pname) native;getShaderPrecisionFormat()
ShaderPrecisionFormat getShaderPrecisionFormat(
int shadertype,
int precisiontype,
)Implementation
dart
ShaderPrecisionFormat getShaderPrecisionFormat(
int shadertype,
int precisiontype,
) native;getShaderSource()
Implementation
dart
String? getShaderSource(Shader shader) native;getSupportedExtensions()
Implementation
dart
List<String>? getSupportedExtensions() native;getTexParameter()
Implementation
dart
@Creates('int|Null')
@Returns('int|Null')
Object? getTexParameter(int target, int pname) native;getUniform()
Object? getUniform(Program program, UniformLocation location)Implementation
dart
@Creates(
'Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List|NativeUint32List',
)
@Returns(
'Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List|NativeUint32List',
)
Object? getUniform(Program program, UniformLocation location) native;getUniformLocation()
UniformLocation getUniformLocation(Program program, String name)Implementation
dart
UniformLocation getUniformLocation(Program program, String name) native;getVertexAttrib()
Implementation
dart
@Creates('Null|num|bool|NativeFloat32List|Buffer')
@Returns('Null|num|bool|NativeFloat32List|Buffer')
Object? getVertexAttrib(int index, int pname) native;getVertexAttribOffset()
Implementation
dart
int getVertexAttribOffset(int index, int pname) native;hint()
Implementation
dart
void hint(int target, int mode) native;isBuffer()
Implementation
dart
bool isBuffer(Buffer? buffer) native;isContextLost()
bool isContextLost()Implementation
dart
bool isContextLost() native;isEnabled()
Implementation
dart
bool isEnabled(int cap) native;isFramebuffer()
bool isFramebuffer(Framebuffer? framebuffer)Implementation
dart
bool isFramebuffer(Framebuffer? framebuffer) native;isProgram()
Implementation
dart
bool isProgram(Program? program) native;isRenderbuffer()
bool isRenderbuffer(Renderbuffer? renderbuffer)Implementation
dart
bool isRenderbuffer(Renderbuffer? renderbuffer) native;isShader()
Implementation
dart
bool isShader(Shader? shader) native;isTexture()
Implementation
dart
bool isTexture(Texture? texture) native;lineWidth()
void lineWidth(num width)Implementation
dart
void lineWidth(num width) native;linkProgram()
void linkProgram(Program program)Implementation
dart
void linkProgram(Program program) native;noSuchMethod() inherited
dynamic noSuchMethod(Invocation invocation)Invoked when a nonexistent method or property is accessed.
A dynamic member invocation can attempt to call a member which doesn't exist on the receiving object. Example:
dart
dynamic object = 1;
object.add(42); // Statically allowed, run-time errorThis invalid code will invoke the noSuchMethod method of the integer 1 with an Invocation representing the .add(42) call and arguments (which then throws).
Classes can override noSuchMethod to provide custom behavior for such invalid dynamic invocations.
A class with a non-default noSuchMethod invocation can also omit implementations for members of its interface. Example:
dart
class MockList<T> implements List<T> {
noSuchMethod(Invocation invocation) {
log(invocation);
super.noSuchMethod(invocation); // Will throw.
}
}
void main() {
MockList().add(42);
}This code has no compile-time warnings or errors even though the MockList class has no concrete implementation of any of the List interface methods. Calls to List methods are forwarded to noSuchMethod, so this code will log an invocation similar to Invocation.method(#add, [42]) and then throw.
If a value is returned from noSuchMethod, it becomes the result of the original invocation. If the value is not of a type that can be returned by the original invocation, a type error occurs at the invocation.
The default behavior is to throw a NoSuchMethodError.
Inherited from Interceptor.
Implementation
dart
dynamic noSuchMethod(Invocation invocation) {
throw NoSuchMethodError.withInvocation(this, invocation);
}pixelStorei()
Implementation
dart
void pixelStorei(int pname, int param) native;polygonOffset()
Implementation
dart
void polygonOffset(num factor, num units) native;readPixels()
Implementation
dart
void readPixels(
int x,
int y,
int width,
int height,
int format,
int type,
TypedData? pixels,
) {
_readPixels(x, y, width, height, format, type, pixels);
}renderbufferStorage()
Implementation
dart
void renderbufferStorage(
int target,
int internalformat,
int width,
int height,
) native;sampleCoverage()
Implementation
dart
void sampleCoverage(num value, bool invert) native;scissor()
Implementation
dart
void scissor(int x, int y, int width, int height) native;shaderSource()
Implementation
dart
void shaderSource(Shader shader, String string) native;stencilFunc()
Implementation
dart
void stencilFunc(int func, int ref, int mask) native;stencilFuncSeparate()
Implementation
dart
void stencilFuncSeparate(int face, int func, int ref, int mask) native;stencilMask()
void stencilMask(int mask)Implementation
dart
void stencilMask(int mask) native;stencilMaskSeparate()
Implementation
dart
void stencilMaskSeparate(int face, int mask) native;stencilOp()
Implementation
dart
void stencilOp(int fail, int zfail, int zpass) native;stencilOpSeparate()
Implementation
dart
void stencilOpSeparate(int face, int fail, int zfail, int zpass) native;texImage2D()
void texImage2D(
int target,
int level,
int internalformat,
int format_OR_width,
int height_OR_type,
dynamic bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video, [
int? format,
int? type,
TypedData? pixels,
])Implementation
dart
void texImage2D(
int target,
int level,
int internalformat,
int format_OR_width,
int height_OR_type,
bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video, [
int? format,
int? type,
TypedData? pixels,
]) {
if (type != null &&
format != null &&
(bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video is int)) {
_texImage2D_1(
target,
level,
internalformat,
format_OR_width,
height_OR_type,
bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video,
format,
type,
pixels,
);
return;
}
if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData) &&
format == null &&
type == null &&
pixels == null) {
var pixels_1 = convertDartToNative_ImageData(
bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video,
);
_texImage2D_2(
target,
level,
internalformat,
format_OR_width,
height_OR_type,
pixels_1,
);
return;
}
if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
is ImageElement) &&
format == null &&
type == null &&
pixels == null) {
_texImage2D_3(
target,
level,
internalformat,
format_OR_width,
height_OR_type,
bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
is CanvasElement) &&
format == null &&
type == null &&
pixels == null) {
_texImage2D_4(
target,
level,
internalformat,
format_OR_width,
height_OR_type,
bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
is VideoElement) &&
format == null &&
type == null &&
pixels == null) {
_texImage2D_5(
target,
level,
internalformat,
format_OR_width,
height_OR_type,
bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video
is ImageBitmap) &&
format == null &&
type == null &&
pixels == null) {
_texImage2D_6(
target,
level,
internalformat,
format_OR_width,
height_OR_type,
bitmap_OR_border_OR_canvas_OR_image_OR_pixels_OR_video,
);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
}deprecated texImage2DTyped()
void texImage2DTyped(
int targetTexture,
int levelOfDetail,
int internalFormat,
int width,
int height,
int border,
int format,
int type,
TypedData data,
)DEPRECATED
Use texImage2D
Sets the currently bound texture to data.
This is deprecated in favour of texImage2D.
Implementation
dart
@Deprecated("Use texImage2D")
void texImage2DTyped(
int targetTexture,
int levelOfDetail,
int internalFormat,
int width,
int height,
int border,
int format,
int type,
TypedData data,
) {
texImage2D(
targetTexture,
levelOfDetail,
internalFormat,
width,
height,
border,
format,
type,
data,
);
}deprecated texImage2DUntyped()
void texImage2DUntyped(
int targetTexture,
int levelOfDetail,
int internalFormat,
int format,
int type,
dynamic data,
)DEPRECATED
Use texImage2D
Sets the currently bound texture to data.
data can be either an ImageElement, a CanvasElement, a VideoElement, TypedData or an ImageData object.
This is deprecated in favor of texImage2D.
Implementation
dart
@Deprecated("Use texImage2D")
void texImage2DUntyped(
int targetTexture,
int levelOfDetail,
int internalFormat,
int format,
int type,
data,
) {
texImage2D(
targetTexture,
levelOfDetail,
internalFormat,
format,
type,
data,
);
}texParameterf()
Implementation
dart
void texParameterf(int target, int pname, num param) native;texParameteri()
Implementation
dart
void texParameteri(int target, int pname, int param) native;texSubImage2D()
void texSubImage2D(
int target,
int level,
int xoffset,
int yoffset,
int format_OR_width,
int height_OR_type,
dynamic bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video, [
int? type,
TypedData? pixels,
])Implementation
dart
void texSubImage2D(
int target,
int level,
int xoffset,
int yoffset,
int format_OR_width,
int height_OR_type,
bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video, [
int? type,
TypedData? pixels,
]) {
if (type != null &&
(bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video is int)) {
_texSubImage2D_1(
target,
level,
xoffset,
yoffset,
format_OR_width,
height_OR_type,
bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video,
type,
pixels,
);
return;
}
if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData) &&
type == null &&
pixels == null) {
var pixels_1 = convertDartToNative_ImageData(
bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video,
);
_texSubImage2D_2(
target,
level,
xoffset,
yoffset,
format_OR_width,
height_OR_type,
pixels_1,
);
return;
}
if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video
is ImageElement) &&
type == null &&
pixels == null) {
_texSubImage2D_3(
target,
level,
xoffset,
yoffset,
format_OR_width,
height_OR_type,
bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video
is CanvasElement) &&
type == null &&
pixels == null) {
_texSubImage2D_4(
target,
level,
xoffset,
yoffset,
format_OR_width,
height_OR_type,
bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video
is VideoElement) &&
type == null &&
pixels == null) {
_texSubImage2D_5(
target,
level,
xoffset,
yoffset,
format_OR_width,
height_OR_type,
bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video
is ImageBitmap) &&
type == null &&
pixels == null) {
_texSubImage2D_6(
target,
level,
xoffset,
yoffset,
format_OR_width,
height_OR_type,
bitmap_OR_canvas_OR_format_OR_image_OR_pixels_OR_video,
);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
}deprecated texSubImage2DTyped()
void texSubImage2DTyped(
int targetTexture,
int levelOfDetail,
int xOffset,
int yOffset,
int width,
int height,
int border,
int format,
int type,
TypedData data,
)DEPRECATED
Use texSubImage2D
Updates a sub-rectangle of the currently bound texture to data.
Implementation
dart
@Deprecated("Use texSubImage2D")
void texSubImage2DTyped(
int targetTexture,
int levelOfDetail,
int xOffset,
int yOffset,
int width,
int height,
int border,
int format,
int type,
TypedData data,
) {
texSubImage2D(
targetTexture,
levelOfDetail,
xOffset,
yOffset,
width,
height,
format,
type,
data,
);
}deprecated texSubImage2DUntyped()
void texSubImage2DUntyped(
int targetTexture,
int levelOfDetail,
int xOffset,
int yOffset,
int format,
int type,
dynamic data,
)DEPRECATED
Use texSubImage2D
Updates a sub-rectangle of the currently bound texture to data.
data can be either an ImageElement, a CanvasElement, a VideoElement, TypedData or an ImageData object.
Implementation
dart
@Deprecated("Use texSubImage2D")
void texSubImage2DUntyped(
int targetTexture,
int levelOfDetail,
int xOffset,
int yOffset,
int format,
int type,
data,
) {
texSubImage2D(
targetTexture,
levelOfDetail,
xOffset,
yOffset,
format,
type,
data,
);
}toString() inherited
String toString()A string representation of this object.
Some classes have a default textual representation, often paired with a static parse function (like int.parse). These classes will provide the textual representation as their string representation.
Other classes have no meaningful textual representation that a program will care about. Such classes will typically override toString to provide useful information when inspecting the object, mainly for debugging or logging.
Inherited from Interceptor.
Implementation
dart
String toString() => Primitives.objectToHumanReadableString(this);uniform1f()
void uniform1f(UniformLocation? location, num x)Implementation
dart
void uniform1f(UniformLocation? location, num x) native;uniform1fv()
void uniform1fv(UniformLocation? location, dynamic v)Implementation
dart
void uniform1fv(UniformLocation? location, v) native;uniform1i()
void uniform1i(UniformLocation? location, int x)Implementation
dart
void uniform1i(UniformLocation? location, int x) native;uniform1iv()
void uniform1iv(UniformLocation? location, dynamic v)Implementation
dart
void uniform1iv(UniformLocation? location, v) native;uniform2f()
void uniform2f(UniformLocation? location, num x, num y)Implementation
dart
void uniform2f(UniformLocation? location, num x, num y) native;uniform2fv()
void uniform2fv(UniformLocation? location, dynamic v)Implementation
dart
void uniform2fv(UniformLocation? location, v) native;uniform2i()
void uniform2i(UniformLocation? location, int x, int y)Implementation
dart
void uniform2i(UniformLocation? location, int x, int y) native;uniform2iv()
void uniform2iv(UniformLocation? location, dynamic v)Implementation
dart
void uniform2iv(UniformLocation? location, v) native;uniform3f()
void uniform3f(UniformLocation? location, num x, num y, num z)Implementation
dart
void uniform3f(UniformLocation? location, num x, num y, num z) native;uniform3fv()
void uniform3fv(UniformLocation? location, dynamic v)Implementation
dart
void uniform3fv(UniformLocation? location, v) native;uniform3i()
void uniform3i(UniformLocation? location, int x, int y, int z)Implementation
dart
void uniform3i(UniformLocation? location, int x, int y, int z) native;uniform3iv()
void uniform3iv(UniformLocation? location, dynamic v)Implementation
dart
void uniform3iv(UniformLocation? location, v) native;uniform4f()
void uniform4f(UniformLocation? location, num x, num y, num z, num w)Implementation
dart
void uniform4f(UniformLocation? location, num x, num y, num z, num w) native;uniform4fv()
void uniform4fv(UniformLocation? location, dynamic v)Implementation
dart
void uniform4fv(UniformLocation? location, v) native;uniform4i()
void uniform4i(UniformLocation? location, int x, int y, int z, int w)Implementation
dart
void uniform4i(UniformLocation? location, int x, int y, int z, int w) native;uniform4iv()
void uniform4iv(UniformLocation? location, dynamic v)Implementation
dart
void uniform4iv(UniformLocation? location, v) native;uniformMatrix2fv()
void uniformMatrix2fv(UniformLocation? location, bool transpose, dynamic array)Implementation
dart
void uniformMatrix2fv(
UniformLocation? location,
bool transpose,
array,
) native;uniformMatrix3fv()
void uniformMatrix3fv(UniformLocation? location, bool transpose, dynamic array)Implementation
dart
void uniformMatrix3fv(
UniformLocation? location,
bool transpose,
array,
) native;uniformMatrix4fv()
void uniformMatrix4fv(UniformLocation? location, bool transpose, dynamic array)Implementation
dart
void uniformMatrix4fv(
UniformLocation? location,
bool transpose,
array,
) native;useProgram()
void useProgram(Program? program)Implementation
dart
void useProgram(Program? program) native;validateProgram()
void validateProgram(Program program)Implementation
dart
void validateProgram(Program program) native;vertexAttrib1f()
Implementation
dart
void vertexAttrib1f(int indx, num x) native;vertexAttrib1fv()
void vertexAttrib1fv(int indx, dynamic values)Implementation
dart
void vertexAttrib1fv(int indx, values) native;vertexAttrib2f()
Implementation
dart
void vertexAttrib2f(int indx, num x, num y) native;vertexAttrib2fv()
void vertexAttrib2fv(int indx, dynamic values)Implementation
dart
void vertexAttrib2fv(int indx, values) native;vertexAttrib3f()
Implementation
dart
void vertexAttrib3f(int indx, num x, num y, num z) native;vertexAttrib3fv()
void vertexAttrib3fv(int indx, dynamic values)Implementation
dart
void vertexAttrib3fv(int indx, values) native;vertexAttrib4f()
Implementation
dart
void vertexAttrib4f(int indx, num x, num y, num z, num w) native;vertexAttrib4fv()
void vertexAttrib4fv(int indx, dynamic values)Implementation
dart
void vertexAttrib4fv(int indx, values) native;vertexAttribPointer()
Implementation
dart
void vertexAttribPointer(
int indx,
int size,
int type,
bool normalized,
int stride,
int offset,
) native;viewport()
Implementation
dart
void viewport(int x, int y, int width, int height) native;Operators
operator ==() inherited
The equality operator.
The default behavior for all Objects is to return true if and only if this object and other are the same object.
Override this method to specify a different equality relation on a class. The overriding method must still be an equivalence relation. That is, it must be:
Total: It must return a boolean for all arguments. It should never throw.
Reflexive: For all objects
o,o == omust be true.Symmetric: For all objects
o1ando2,o1 == o2ando2 == o1must either both be true, or both be false.Transitive: For all objects
o1,o2, ando3, ifo1 == o2ando2 == o3are true, theno1 == o3must be true.
The method should also be consistent over time, so whether two objects are equal should only change if at least one of the objects was modified.
If a subclass overrides the equality operator, it should override the hashCode method as well to maintain consistency.
Inherited from Interceptor.
Implementation
dart
bool operator ==(Object other) => identical(this, other);Static Properties
supported no setter
bool get supportedChecks if this type is supported on the current platform.
Implementation
dart
static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)');