RenderingContext2#
Annotations: @Native.new("WebGL2RenderingContext")
Properties#
canvas no setter#
Implementation
Canvas? get canvas native;
drawingBufferHeight no setter#
Implementation
int? get drawingBufferHeight native;
drawingBufferWidth no setter#
Implementation
int? get drawingBufferWidth native;
hashCode no setter inherited#
Inherited from Interceptor.
Implementation
int get hashCode => Primitives.objectHashCode(this);
runtimeType no setter inherited#
Inherited from Interceptor.
Implementation
Type get runtimeType =>
getRuntimeTypeOfInterceptorNotArray(getInterceptor(this), this);
Methods#
activeTexture()#
Implementation
void activeTexture(int texture) native;
attachShader()#
Implementation
void attachShader(Program program, Shader shader) native;
beginQuery()#
Implementation
void beginQuery(int target, Query query) native;
beginTransformFeedback()#
Implementation
void beginTransformFeedback(int primitiveMode) native;
bindAttribLocation()#
Implementation
void bindAttribLocation(Program program, int index, String name) native;
bindBuffer()#
Implementation
void bindBuffer(int target, Buffer? buffer) native;
bindBufferBase()#
Implementation
void bindBufferBase(int target, int index, Buffer? buffer) native;
bindBufferRange()#
Implementation
void bindBufferRange(
int target,
int index,
Buffer? buffer,
int offset,
int size,
) native;
bindFramebuffer()#
Implementation
void bindFramebuffer(int target, Framebuffer? framebuffer) native;
bindRenderbuffer()#
Implementation
void bindRenderbuffer(int target, Renderbuffer? renderbuffer) native;
bindSampler()#
Implementation
void bindSampler(int unit, Sampler? sampler) native;
bindTexture()#
Implementation
void bindTexture(int target, Texture? texture) native;
bindTransformFeedback()#
Implementation
void bindTransformFeedback(int target, TransformFeedback? feedback) native;
bindVertexArray()#
Implementation
void bindVertexArray(VertexArrayObject? vertexArray) native;
blendColor()#
Implementation
void blendColor(num red, num green, num blue, num alpha) native;
blendEquation()#
Implementation
void blendEquation(int mode) native;
blendEquationSeparate()#
Implementation
void blendEquationSeparate(int modeRGB, int modeAlpha) native;
blendFunc()#
Implementation
void blendFunc(int sfactor, int dfactor) native;
blendFuncSeparate()#
Implementation
void blendFuncSeparate(
int srcRGB,
int dstRGB,
int srcAlpha,
int dstAlpha,
) native;
blitFramebuffer()#
Implementation
void blitFramebuffer(
int srcX0,
int srcY0,
int srcX1,
int srcY1,
int dstX0,
int dstY0,
int dstX1,
int dstY1,
int mask,
int filter,
) native;
bufferData()#
Implementation
void bufferData(int target, data_OR_size, int usage) native;
bufferData2()#
Implementation
@JSName('bufferData')
void bufferData2(
int target,
TypedData srcData,
int usage,
int srcOffset, [
int? length,
]) native;
bufferSubData()#
Implementation
void bufferSubData(int target, int offset, data) native;
bufferSubData2()#
Implementation
@JSName('bufferSubData')
void bufferSubData2(
int target,
int dstByteOffset,
TypedData srcData,
int srcOffset, [
int? length,
]) native;
checkFramebufferStatus()#
Implementation
int checkFramebufferStatus(int target) native;
clear()#
Implementation
void clear(int mask) native;
clearBufferfi()#
Implementation
void clearBufferfi(int buffer, int drawbuffer, num depth, int stencil) native;
clearBufferfv()#
Implementation
void clearBufferfv(
int buffer,
int drawbuffer,
value, [
int? srcOffset,
]) native;
clearBufferiv()#
Implementation
void clearBufferiv(
int buffer,
int drawbuffer,
value, [
int? srcOffset,
]) native;
clearBufferuiv()#
Implementation
void clearBufferuiv(
int buffer,
int drawbuffer,
value, [
int? srcOffset,
]) native;
clearColor()#
Implementation
void clearColor(num red, num green, num blue, num alpha) native;
clearDepth()#
Implementation
void clearDepth(num depth) native;
clearStencil()#
Implementation
void clearStencil(int s) native;
clientWaitSync()#
Implementation
int clientWaitSync(Sync sync, int flags, int timeout) native;
colorMask()#
Implementation
void colorMask(bool red, bool green, bool blue, bool alpha) native;
commit()#
Implementation
Future commit() => promiseToFuture(JS("", "#.commit()", this));
compileShader()#
Implementation
void compileShader(Shader shader) native;
compressedTexImage2D()#
Implementation
void compressedTexImage2D(
int target,
int level,
int internalformat,
int width,
int height,
int border,
TypedData data,
) native;
compressedTexImage2D2()#
Implementation
@JSName('compressedTexImage2D')
void compressedTexImage2D2(
int target,
int level,
int internalformat,
int width,
int height,
int border,
TypedData data,
int srcOffset, [
int? srcLengthOverride,
]) native;
compressedTexImage2D3()#
Implementation
@JSName('compressedTexImage2D')
void compressedTexImage2D3(
int target,
int level,
int internalformat,
int width,
int height,
int border,
int imageSize,
int offset,
) native;
compressedTexImage3D()#
Implementation
void compressedTexImage3D(
int target,
int level,
int internalformat,
int width,
int height,
int depth,
int border,
TypedData data, [
int? srcOffset,
int? srcLengthOverride,
]) native;
compressedTexImage3D2()#
Implementation
@JSName('compressedTexImage3D')
void compressedTexImage3D2(
int target,
int level,
int internalformat,
int width,
int height,
int depth,
int border,
int imageSize,
int offset,
) native;
compressedTexSubImage2D()#
Implementation
void compressedTexSubImage2D(
int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
TypedData data,
) native;
compressedTexSubImage2D2()#
Implementation
@JSName('compressedTexSubImage2D')
void compressedTexSubImage2D2(
int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
TypedData data,
int srcOffset, [
int? srcLengthOverride,
]) native;
compressedTexSubImage2D3()#
Implementation
@JSName('compressedTexSubImage2D')
void compressedTexSubImage2D3(
int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int imageSize,
int offset,
) native;
compressedTexSubImage3D()#
Implementation
void compressedTexSubImage3D(
int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
TypedData data, [
int? srcOffset,
int? srcLengthOverride,
]) native;
compressedTexSubImage3D2()#
Implementation
@JSName('compressedTexSubImage3D')
void compressedTexSubImage3D2(
int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int imageSize,
int offset,
) native;
copyBufferSubData()#
Implementation
void copyBufferSubData(
int readTarget,
int writeTarget,
int readOffset,
int writeOffset,
int size,
) native;
copyTexImage2D()#
Implementation
void copyTexImage2D(
int target,
int level,
int internalformat,
int x,
int y,
int width,
int height,
int border,
) native;
copyTexSubImage2D()#
Implementation
void copyTexSubImage2D(
int target,
int level,
int xoffset,
int yoffset,
int x,
int y,
int width,
int height,
) native;
copyTexSubImage3D()#
Implementation
void copyTexSubImage3D(
int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int x,
int y,
int width,
int height,
) native;
createBuffer()#
Implementation
Buffer createBuffer() native;
createFramebuffer()#
Implementation
Framebuffer createFramebuffer() native;
createProgram()#
Implementation
Program createProgram() native;
createQuery()#
Implementation
Query? createQuery() native;
createRenderbuffer()#
Implementation
Renderbuffer createRenderbuffer() native;
createSampler()#
Implementation
Sampler? createSampler() native;
createShader()#
Implementation
Shader createShader(int type) native;
createTexture()#
Implementation
Texture createTexture() native;
createTransformFeedback()#
Implementation
TransformFeedback? createTransformFeedback() native;
createVertexArray()#
Implementation
VertexArrayObject? createVertexArray() native;
cullFace()#
Implementation
void cullFace(int mode) native;
deleteBuffer()#
Implementation
void deleteBuffer(Buffer? buffer) native;
deleteFramebuffer()#
Implementation
void deleteFramebuffer(Framebuffer? framebuffer) native;
deleteProgram()#
Implementation
void deleteProgram(Program? program) native;
deleteQuery()#
Implementation
void deleteQuery(Query? query) native;
deleteRenderbuffer()#
Implementation
void deleteRenderbuffer(Renderbuffer? renderbuffer) native;
deleteSampler()#
Implementation
void deleteSampler(Sampler? sampler) native;
deleteShader()#
Implementation
void deleteShader(Shader? shader) native;
deleteSync()#
Implementation
void deleteSync(Sync? sync) native;
deleteTexture()#
Implementation
void deleteTexture(Texture? texture) native;
deleteTransformFeedback()#
Implementation
void deleteTransformFeedback(TransformFeedback? feedback) native;
deleteVertexArray()#
Implementation
void deleteVertexArray(VertexArrayObject? vertexArray) native;
depthFunc()#
Implementation
void depthFunc(int func) native;
depthMask()#
Implementation
void depthMask(bool flag) native;
depthRange()#
Implementation
void depthRange(num zNear, num zFar) native;
detachShader()#
Implementation
void detachShader(Program program, Shader shader) native;
disable()#
Implementation
void disable(int cap) native;
disableVertexAttribArray()#
Implementation
void disableVertexAttribArray(int index) native;
drawArrays()#
Implementation
void drawArrays(int mode, int first, int count) native;
drawArraysInstanced()#
Implementation
void drawArraysInstanced(
int mode,
int first,
int count,
int instanceCount,
) native;
drawBuffers()#
Implementation
void drawBuffers(List<int> buffers) native;
drawElements()#
Implementation
void drawElements(int mode, int count, int type, int offset) native;
drawElementsInstanced()#
Implementation
void drawElementsInstanced(
int mode,
int count,
int type,
int offset,
int instanceCount,
) native;
drawRangeElements()#
Implementation
void drawRangeElements(
int mode,
int start,
int end,
int count,
int type,
int offset,
) native;
enable()#
Implementation
void enable(int cap) native;
enableVertexAttribArray()#
Implementation
void enableVertexAttribArray(int index) native;
endQuery()#
Implementation
void endQuery(int target) native;
endTransformFeedback()#
Implementation
void endTransformFeedback() native;
fenceSync()#
Implementation
Sync? fenceSync(int condition, int flags) native;
finish()#
Implementation
void finish() native;
flush()#
Implementation
void flush() native;
framebufferRenderbuffer()#
Implementation
void framebufferRenderbuffer(
int target,
int attachment,
int renderbuffertarget,
Renderbuffer? renderbuffer,
) native;
framebufferTexture2D()#
Implementation
void framebufferTexture2D(
int target,
int attachment,
int textarget,
Texture? texture,
int level,
) native;
framebufferTextureLayer()#
Implementation
void framebufferTextureLayer(
int target,
int attachment,
Texture? texture,
int level,
int layer,
) native;
frontFace()#
Implementation
void frontFace(int mode) native;
generateMipmap()#
Implementation
void generateMipmap(int target) native;
getActiveAttrib()#
Implementation
ActiveInfo getActiveAttrib(Program program, int index) native;
getActiveUniform()#
Implementation
ActiveInfo getActiveUniform(Program program, int index) native;
getActiveUniformBlockName()#
Implementation
String? getActiveUniformBlockName(
Program program,
int uniformBlockIndex,
) native;
getActiveUniformBlockParameter()#
Implementation
Object? getActiveUniformBlockParameter(
Program program,
int uniformBlockIndex,
int pname,
) native;
getActiveUniforms()#
Implementation
Object? getActiveUniforms(
Program program,
List<int> uniformIndices,
int pname,
) native;
getAttachedShaders()#
Implementation
List<Shader>? getAttachedShaders(Program program) native;
getAttribLocation()#
Implementation
int getAttribLocation(Program program, String name) native;
getBufferParameter()#
Implementation
Object? getBufferParameter(int target, int pname) native;
getBufferSubData()#
Implementation
void getBufferSubData(
int target,
int srcByteOffset,
TypedData dstData, [
int? dstOffset,
int? length,
]) native;
getContextAttributes()#
Implementation
Map? getContextAttributes() {
return convertNativeToDart_Dictionary(_getContextAttributes_1());
}
getError()#
Implementation
int getError() native;
getExtension()#
Implementation
Object? getExtension(String name) native;
getFragDataLocation()#
Implementation
int getFragDataLocation(Program program, String name) native;
getFramebufferAttachmentParameter()#
Implementation
Object? getFramebufferAttachmentParameter(
int target,
int attachment,
int pname,
) native;
getIndexedParameter()#
Implementation
Object? getIndexedParameter(int target, int index) native;
getInternalformatParameter()#
Implementation
Object? getInternalformatParameter(
int target,
int internalformat,
int pname,
) native;
getParameter()#
Implementation
Object? getParameter(int pname) native;
getProgramInfoLog()#
Implementation
String? getProgramInfoLog(Program program) native;
getProgramParameter()#
Implementation
Object? getProgramParameter(Program program, int pname) native;
getQuery()#
Implementation
Object? getQuery(int target, int pname) native;
getQueryParameter()#
Implementation
Object? getQueryParameter(Query query, int pname) native;
getRenderbufferParameter()#
Implementation
Object? getRenderbufferParameter(int target, int pname) native;
getSamplerParameter()#
Implementation
Object? getSamplerParameter(Sampler sampler, int pname) native;
getShaderInfoLog()#
Implementation
String? getShaderInfoLog(Shader shader) native;
getShaderParameter()#
Implementation
Object? getShaderParameter(Shader shader, int pname) native;
getShaderPrecisionFormat()#
Implementation
ShaderPrecisionFormat getShaderPrecisionFormat(
int shadertype,
int precisiontype,
) native;
getShaderSource()#
Implementation
String? getShaderSource(Shader shader) native;
getSupportedExtensions()#
Implementation
List<String>? getSupportedExtensions() native;
getSyncParameter()#
Implementation
Object? getSyncParameter(Sync sync, int pname) native;
getTexParameter()#
Implementation
Object? getTexParameter(int target, int pname) native;
getTransformFeedbackVarying()#
Implementation
ActiveInfo? getTransformFeedbackVarying(Program program, int index) native;
getUniform()#
Implementation
Object? getUniform(Program program, UniformLocation location) native;
getUniformBlockIndex()#
Implementation
int getUniformBlockIndex(Program program, String uniformBlockName) native;
getUniformIndices()#
Implementation
List<int>? getUniformIndices(Program program, List<String> uniformNames) {
List uniformNames_1 = convertDartToNative_StringArray(uniformNames);
return _getUniformIndices_1(program, uniformNames_1);
}
getUniformLocation()#
Implementation
UniformLocation getUniformLocation(Program program, String name) native;
getVertexAttrib()#
Implementation
Object? getVertexAttrib(int index, int pname) native;
getVertexAttribOffset()#
Implementation
int getVertexAttribOffset(int index, int pname) native;
hint()#
Implementation
void hint(int target, int mode) native;
invalidateFramebuffer()#
Implementation
void invalidateFramebuffer(int target, List<int> attachments) native;
invalidateSubFramebuffer()#
Implementation
void invalidateSubFramebuffer(
int target,
List<int> attachments,
int x,
int y,
int width,
int height,
) native;
isBuffer()#
Implementation
bool isBuffer(Buffer? buffer) native;
isContextLost()#
Implementation
bool isContextLost() native;
isEnabled()#
Implementation
bool isEnabled(int cap) native;
isFramebuffer()#
Implementation
bool isFramebuffer(Framebuffer? framebuffer) native;
isProgram()#
Implementation
bool isProgram(Program? program) native;
isQuery()#
Implementation
bool isQuery(Query? query) native;
isRenderbuffer()#
Implementation
bool isRenderbuffer(Renderbuffer? renderbuffer) native;
isSampler()#
Implementation
bool isSampler(Sampler? sampler) native;
isShader()#
Implementation
bool isShader(Shader? shader) native;
isSync()#
Implementation
bool isSync(Sync? sync) native;
isTexture()#
Implementation
bool isTexture(Texture? texture) native;
isTransformFeedback()#
Implementation
bool isTransformFeedback(TransformFeedback? feedback) native;
isVertexArray()#
Implementation
bool isVertexArray(VertexArrayObject? vertexArray) native;
lineWidth()#
Implementation
void lineWidth(num width) native;
linkProgram()#
Implementation
void linkProgram(Program program) native;
noSuchMethod() inherited#
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:
dynamic object = 1;
object.add(42); // Statically allowed, run-time error
This 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:
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
dynamic noSuchMethod(Invocation invocation) {
throw NoSuchMethodError.withInvocation(this, invocation);
}
pauseTransformFeedback()#
Implementation
void pauseTransformFeedback() native;
pixelStorei()#
Implementation
void pixelStorei(int pname, int param) native;
polygonOffset()#
Implementation
void polygonOffset(num factor, num units) native;
readBuffer()#
Implementation
void readBuffer(int mode) native;
readPixels()#
Implementation
void readPixels(
int x,
int y,
int width,
int height,
int format,
int type,
TypedData pixels,
) {
_readPixels(x, y, width, height, format, type, pixels);
}
readPixels2()#
Implementation
@JSName('readPixels')
void readPixels2(
int x,
int y,
int width,
int height,
int format,
int type,
dstData_OR_offset, [
int? offset,
]) native;
renderbufferStorage()#
Implementation
void renderbufferStorage(
int target,
int internalformat,
int width,
int height,
) native;
renderbufferStorageMultisample()#
Implementation
void renderbufferStorageMultisample(
int target,
int samples,
int internalformat,
int width,
int height,
) native;
resumeTransformFeedback()#
Implementation
void resumeTransformFeedback() native;
sampleCoverage()#
Implementation
void sampleCoverage(num value, bool invert) native;
samplerParameterf()#
Implementation
void samplerParameterf(Sampler sampler, int pname, num param) native;
samplerParameteri()#
Implementation
void samplerParameteri(Sampler sampler, int pname, int param) native;
scissor()#
Implementation
void scissor(int x, int y, int width, int height) native;
shaderSource()#
Implementation
void shaderSource(Shader shader, String string) native;
stencilFunc()#
Implementation
void stencilFunc(int func, int ref, int mask) native;
stencilFuncSeparate()#
Implementation
void stencilFuncSeparate(int face, int func, int ref, int mask) native;
stencilMask()#
Implementation
void stencilMask(int mask) native;
stencilMaskSeparate()#
Implementation
void stencilMaskSeparate(int face, int mask) native;
stencilOp()#
Implementation
void stencilOp(int fail, int zfail, int zpass) native;
stencilOpSeparate()#
Implementation
void stencilOpSeparate(int face, int fail, int zfail, int zpass) native;
texImage2D()#
Implementation
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");
}
texImage2D2()#
Implementation
void texImage2D2(
int target,
int level,
int internalformat,
int width,
int height,
int border,
int format,
int type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video, [
int? srcOffset,
]) {
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video
is int) &&
srcOffset == null) {
_texImage2D2_1(
target,
level,
internalformat,
width,
height,
border,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video
is ImageData) &&
srcOffset == null) {
var data_1 = convertDartToNative_ImageData(
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video,
);
_texImage2D2_2(
target,
level,
internalformat,
width,
height,
border,
format,
type,
data_1,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video
is ImageElement) &&
srcOffset == null) {
_texImage2D2_3(
target,
level,
internalformat,
width,
height,
border,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video
is CanvasElement) &&
srcOffset == null) {
_texImage2D2_4(
target,
level,
internalformat,
width,
height,
border,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video
is VideoElement) &&
srcOffset == null) {
_texImage2D2_5(
target,
level,
internalformat,
width,
height,
border,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video
is ImageBitmap) &&
srcOffset == null) {
_texImage2D2_6(
target,
level,
internalformat,
width,
height,
border,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video,
);
return;
}
if (srcOffset != null &&
(bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video
is TypedData)) {
_texImage2D2_7(
target,
level,
internalformat,
width,
height,
border,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video,
srcOffset,
);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
}
texImage3D()#
Implementation
void texImage3D(
int target,
int level,
int internalformat,
int width,
int height,
int depth,
int border,
int format,
int type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video, [
int? srcOffset,
]) {
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is int) &&
srcOffset == null) {
_texImage3D_1(
target,
level,
internalformat,
width,
height,
depth,
border,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is ImageData) &&
srcOffset == null) {
var data_1 = convertDartToNative_ImageData(
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
);
_texImage3D_2(
target,
level,
internalformat,
width,
height,
depth,
border,
format,
type,
data_1,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is ImageElement) &&
srcOffset == null) {
_texImage3D_3(
target,
level,
internalformat,
width,
height,
depth,
border,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is CanvasElement) &&
srcOffset == null) {
_texImage3D_4(
target,
level,
internalformat,
width,
height,
depth,
border,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is VideoElement) &&
srcOffset == null) {
_texImage3D_5(
target,
level,
internalformat,
width,
height,
depth,
border,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is ImageBitmap) &&
srcOffset == null) {
_texImage3D_6(
target,
level,
internalformat,
width,
height,
depth,
border,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is TypedData ||
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video ==
null) &&
srcOffset == null) {
_texImage3D_7(
target,
level,
internalformat,
width,
height,
depth,
border,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
);
return;
}
if (srcOffset != null &&
(bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is TypedData)) {
_texImage3D_8(
target,
level,
internalformat,
width,
height,
depth,
border,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
srcOffset,
);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
}
texParameterf()#
Implementation
void texParameterf(int target, int pname, num param) native;
texParameteri()#
Implementation
void texParameteri(int target, int pname, int param) native;
texStorage2D()#
Implementation
void texStorage2D(
int target,
int levels,
int internalformat,
int width,
int height,
) native;
texStorage3D()#
Implementation
void texStorage3D(
int target,
int levels,
int internalformat,
int width,
int height,
int depth,
) native;
texSubImage2D()#
Implementation
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");
}
texSubImage2D2()#
Implementation
void texSubImage2D2(
int target,
int level,
int xoffset,
int yoffset,
int width,
int height,
int format,
int type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video, [
int? srcOffset,
]) {
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video
is int) &&
srcOffset == null) {
_texSubImage2D2_1(
target,
level,
xoffset,
yoffset,
width,
height,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video
is ImageData) &&
srcOffset == null) {
var data_1 = convertDartToNative_ImageData(
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video,
);
_texSubImage2D2_2(
target,
level,
xoffset,
yoffset,
width,
height,
format,
type,
data_1,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video
is ImageElement) &&
srcOffset == null) {
_texSubImage2D2_3(
target,
level,
xoffset,
yoffset,
width,
height,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video
is CanvasElement) &&
srcOffset == null) {
_texSubImage2D2_4(
target,
level,
xoffset,
yoffset,
width,
height,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video
is VideoElement) &&
srcOffset == null) {
_texSubImage2D2_5(
target,
level,
xoffset,
yoffset,
width,
height,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video
is ImageBitmap) &&
srcOffset == null) {
_texSubImage2D2_6(
target,
level,
xoffset,
yoffset,
width,
height,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video,
);
return;
}
if (srcOffset != null &&
(bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video
is TypedData)) {
_texSubImage2D2_7(
target,
level,
xoffset,
yoffset,
width,
height,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video,
srcOffset,
);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
}
texSubImage3D()#
Implementation
void texSubImage3D(
int target,
int level,
int xoffset,
int yoffset,
int zoffset,
int width,
int height,
int depth,
int format,
int type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video, [
int? srcOffset,
]) {
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is int) &&
srcOffset == null) {
_texSubImage3D_1(
target,
level,
xoffset,
yoffset,
zoffset,
width,
height,
depth,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is ImageData) &&
srcOffset == null) {
var data_1 = convertDartToNative_ImageData(
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
);
_texSubImage3D_2(
target,
level,
xoffset,
yoffset,
zoffset,
width,
height,
depth,
format,
type,
data_1,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is ImageElement) &&
srcOffset == null) {
_texSubImage3D_3(
target,
level,
xoffset,
yoffset,
zoffset,
width,
height,
depth,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is CanvasElement) &&
srcOffset == null) {
_texSubImage3D_4(
target,
level,
xoffset,
yoffset,
zoffset,
width,
height,
depth,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is VideoElement) &&
srcOffset == null) {
_texSubImage3D_5(
target,
level,
xoffset,
yoffset,
zoffset,
width,
height,
depth,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is ImageBitmap) &&
srcOffset == null) {
_texSubImage3D_6(
target,
level,
xoffset,
yoffset,
zoffset,
width,
height,
depth,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
);
return;
}
if ((bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is TypedData) &&
srcOffset == null) {
_texSubImage3D_7(
target,
level,
xoffset,
yoffset,
zoffset,
width,
height,
depth,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
);
return;
}
if (srcOffset != null &&
(bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video
is TypedData)) {
_texSubImage3D_8(
target,
level,
xoffset,
yoffset,
zoffset,
width,
height,
depth,
format,
type,
bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video,
srcOffset,
);
return;
}
throw new ArgumentError("Incorrect number or type of arguments");
}
toString() inherited#
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
String toString() => Primitives.objectToHumanReadableString(this);
transformFeedbackVaryings()#
Implementation
void transformFeedbackVaryings(
Program program,
List<String> varyings,
int bufferMode,
) {
List varyings_1 = convertDartToNative_StringArray(varyings);
_transformFeedbackVaryings_1(program, varyings_1, bufferMode);
return;
}
uniform1f()#
Implementation
void uniform1f(UniformLocation? location, num x) native;
uniform1fv()#
Implementation
void uniform1fv(UniformLocation? location, v) native;
uniform1fv2()#
Implementation
@JSName('uniform1fv')
void uniform1fv2(
UniformLocation? location,
v,
int srcOffset, [
int? srcLength,
]) native;
uniform1i()#
Implementation
void uniform1i(UniformLocation? location, int x) native;
uniform1iv()#
Implementation
void uniform1iv(UniformLocation? location, v) native;
uniform1iv2()#
Implementation
@JSName('uniform1iv')
void uniform1iv2(
UniformLocation? location,
v,
int srcOffset, [
int? srcLength,
]) native;
uniform1ui()#
Implementation
void uniform1ui(UniformLocation? location, int v0) native;
uniform1uiv()#
Implementation
void uniform1uiv(
UniformLocation? location,
v, [
int? srcOffset,
int? srcLength,
]) native;
uniform2f()#
Implementation
void uniform2f(UniformLocation? location, num x, num y) native;
uniform2fv()#
Implementation
void uniform2fv(UniformLocation? location, v) native;
uniform2fv2()#
Implementation
@JSName('uniform2fv')
void uniform2fv2(
UniformLocation? location,
v,
int srcOffset, [
int? srcLength,
]) native;
uniform2i()#
Implementation
void uniform2i(UniformLocation? location, int x, int y) native;
uniform2iv()#
Implementation
void uniform2iv(UniformLocation? location, v) native;
uniform2iv2()#
Implementation
@JSName('uniform2iv')
void uniform2iv2(
UniformLocation? location,
v,
int srcOffset, [
int? srcLength,
]) native;
uniform2ui()#
Implementation
void uniform2ui(UniformLocation? location, int v0, int v1) native;
uniform2uiv()#
Implementation
void uniform2uiv(
UniformLocation? location,
v, [
int? srcOffset,
int? srcLength,
]) native;
uniform3f()#
Implementation
void uniform3f(UniformLocation? location, num x, num y, num z) native;
uniform3fv()#
Implementation
void uniform3fv(UniformLocation? location, v) native;
uniform3fv2()#
Implementation
@JSName('uniform3fv')
void uniform3fv2(
UniformLocation? location,
v,
int srcOffset, [
int? srcLength,
]) native;
uniform3i()#
Implementation
void uniform3i(UniformLocation? location, int x, int y, int z) native;
uniform3iv()#
Implementation
void uniform3iv(UniformLocation? location, v) native;
uniform3iv2()#
Implementation
@JSName('uniform3iv')
void uniform3iv2(
UniformLocation? location,
v,
int srcOffset, [
int? srcLength,
]) native;
uniform3ui()#
Implementation
void uniform3ui(UniformLocation? location, int v0, int v1, int v2) native;
uniform3uiv()#
Implementation
void uniform3uiv(
UniformLocation? location,
v, [
int? srcOffset,
int? srcLength,
]) native;
uniform4f()#
Implementation
void uniform4f(UniformLocation? location, num x, num y, num z, num w) native;
uniform4fv()#
Implementation
void uniform4fv(UniformLocation? location, v) native;
uniform4fv2()#
Implementation
@JSName('uniform4fv')
void uniform4fv2(
UniformLocation? location,
v,
int srcOffset, [
int? srcLength,
]) native;
uniform4i()#
Implementation
void uniform4i(UniformLocation? location, int x, int y, int z, int w) native;
uniform4iv()#
Implementation
void uniform4iv(UniformLocation? location, v) native;
uniform4iv2()#
Implementation
@JSName('uniform4iv')
void uniform4iv2(
UniformLocation? location,
v,
int srcOffset, [
int? srcLength,
]) native;
uniform4ui()#
Implementation
void uniform4ui(
UniformLocation? location,
int v0,
int v1,
int v2,
int v3,
) native;
uniform4uiv()#
Implementation
void uniform4uiv(
UniformLocation? location,
v, [
int? srcOffset,
int? srcLength,
]) native;
uniformBlockBinding()#
Implementation
void uniformBlockBinding(
Program program,
int uniformBlockIndex,
int uniformBlockBinding,
) native;
uniformMatrix2fv()#
Implementation
void uniformMatrix2fv(
UniformLocation? location,
bool transpose,
array,
) native;
uniformMatrix2fv2()#
Implementation
@JSName('uniformMatrix2fv')
void uniformMatrix2fv2(
UniformLocation? location,
bool transpose,
array,
int srcOffset, [
int? srcLength,
]) native;
uniformMatrix2x3fv()#
Implementation
void uniformMatrix2x3fv(
UniformLocation? location,
bool transpose,
value, [
int? srcOffset,
int? srcLength,
]) native;
uniformMatrix2x4fv()#
Implementation
void uniformMatrix2x4fv(
UniformLocation? location,
bool transpose,
value, [
int? srcOffset,
int? srcLength,
]) native;
uniformMatrix3fv()#
Implementation
void uniformMatrix3fv(
UniformLocation? location,
bool transpose,
array,
) native;
uniformMatrix3fv2()#
Implementation
@JSName('uniformMatrix3fv')
void uniformMatrix3fv2(
UniformLocation? location,
bool transpose,
array,
int srcOffset, [
int? srcLength,
]) native;
uniformMatrix3x2fv()#
Implementation
void uniformMatrix3x2fv(
UniformLocation? location,
bool transpose,
value, [
int? srcOffset,
int? srcLength,
]) native;
uniformMatrix3x4fv()#
Implementation
void uniformMatrix3x4fv(
UniformLocation? location,
bool transpose,
value, [
int? srcOffset,
int? srcLength,
]) native;
uniformMatrix4fv()#
Implementation
void uniformMatrix4fv(
UniformLocation? location,
bool transpose,
array,
) native;
uniformMatrix4fv2()#
Implementation
@JSName('uniformMatrix4fv')
void uniformMatrix4fv2(
UniformLocation? location,
bool transpose,
array,
int srcOffset, [
int? srcLength,
]) native;
uniformMatrix4x2fv()#
Implementation
void uniformMatrix4x2fv(
UniformLocation? location,
bool transpose,
value, [
int? srcOffset,
int? srcLength,
]) native;
uniformMatrix4x3fv()#
Implementation
void uniformMatrix4x3fv(
UniformLocation? location,
bool transpose,
value, [
int? srcOffset,
int? srcLength,
]) native;
useProgram()#
Implementation
void useProgram(Program? program) native;
validateProgram()#
Implementation
void validateProgram(Program program) native;
vertexAttrib1f()#
Implementation
void vertexAttrib1f(int indx, num x) native;
vertexAttrib1fv()#
Implementation
void vertexAttrib1fv(int indx, values) native;
vertexAttrib2f()#
Implementation
void vertexAttrib2f(int indx, num x, num y) native;
vertexAttrib2fv()#
Implementation
void vertexAttrib2fv(int indx, values) native;
vertexAttrib3f()#
Implementation
void vertexAttrib3f(int indx, num x, num y, num z) native;
vertexAttrib3fv()#
Implementation
void vertexAttrib3fv(int indx, values) native;
vertexAttrib4f()#
Implementation
void vertexAttrib4f(int indx, num x, num y, num z, num w) native;
vertexAttrib4fv()#
Implementation
void vertexAttrib4fv(int indx, values) native;
vertexAttribDivisor()#
Implementation
void vertexAttribDivisor(int index, int divisor) native;
vertexAttribI4i()#
Implementation
void vertexAttribI4i(int index, int x, int y, int z, int w) native;
vertexAttribI4iv()#
Implementation
void vertexAttribI4iv(int index, v) native;
vertexAttribI4ui()#
Implementation
void vertexAttribI4ui(int index, int x, int y, int z, int w) native;
vertexAttribI4uiv()#
Implementation
void vertexAttribI4uiv(int index, v) native;
vertexAttribIPointer()#
Implementation
void vertexAttribIPointer(
int index,
int size,
int type,
int stride,
int offset,
) native;
vertexAttribPointer()#
Implementation
void vertexAttribPointer(
int indx,
int size,
int type,
bool normalized,
int stride,
int offset,
) native;
viewport()#
Implementation
void viewport(int x, int y, int width, int height) native;
waitSync()#
Implementation
void waitSync(Sync sync, int flags, int timeout) 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
bool operator ==(Object other) => identical(this, other);