Skip to content

RenderingContext2

class RenderingContext2 extends JavaScriptObject

Annotations: @Native.new("WebGL2RenderingContext")

Properties

canvas no setter

Canvas? get canvas
Implementation
dart
Canvas? get canvas native;

drawingBufferHeight no setter

int? get drawingBufferHeight
Implementation
dart
int? get drawingBufferHeight native;

drawingBufferWidth no setter

int? get drawingBufferWidth
Implementation
dart
int? get drawingBufferWidth native;

hashCode no setter inherited

int get hashCode

Inherited from Interceptor.

Implementation
dart
int get hashCode => Primitives.objectHashCode(this);

runtimeType no setter inherited

Type get runtimeType

Inherited 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()

void attachShader(Program program, Shader shader)
Implementation
dart
void attachShader(Program program, Shader shader) native;

beginQuery()

void beginQuery(int target, Query query)
Implementation
dart
void beginQuery(int target, Query query) native;

beginTransformFeedback()

void beginTransformFeedback(int primitiveMode)
Implementation
dart
void beginTransformFeedback(int primitiveMode) native;

bindAttribLocation()

void bindAttribLocation(Program program, int index, String name)
Implementation
dart
void bindAttribLocation(Program program, int index, String name) native;

bindBuffer()

void bindBuffer(int target, Buffer? buffer)
Implementation
dart
void bindBuffer(int target, Buffer? buffer) native;

bindBufferBase()

void bindBufferBase(int target, int index, Buffer? buffer)
Implementation
dart
void bindBufferBase(int target, int index, Buffer? buffer) native;

bindBufferRange()

void bindBufferRange(
  int target,
  int index,
  Buffer? buffer,
  int offset,
  int size,
)
Implementation
dart
void bindBufferRange(
  int target,
  int index,
  Buffer? buffer,
  int offset,
  int size,
) 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;

bindSampler()

void bindSampler(int unit, Sampler? sampler)
Implementation
dart
void bindSampler(int unit, Sampler? sampler) native;

bindTexture()

void bindTexture(int target, Texture? texture)
Implementation
dart
void bindTexture(int target, Texture? texture) native;

bindTransformFeedback()

void bindTransformFeedback(int target, TransformFeedback? feedback)
Implementation
dart
void bindTransformFeedback(int target, TransformFeedback? feedback) native;

bindVertexArray()

void bindVertexArray(VertexArrayObject? vertexArray)
Implementation
dart
void bindVertexArray(VertexArrayObject? vertexArray) native;

blendColor()

void blendColor(num red, num green, num blue, num alpha)
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()

void blendEquationSeparate(int modeRGB, int modeAlpha)
Implementation
dart
void blendEquationSeparate(int modeRGB, int modeAlpha) native;

blendFunc()

void blendFunc(int sfactor, int dfactor)
Implementation
dart
void blendFunc(int sfactor, int dfactor) native;

blendFuncSeparate()

void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
Implementation
dart
void blendFuncSeparate(
  int srcRGB,
  int dstRGB,
  int srcAlpha,
  int dstAlpha,
) native;

blitFramebuffer()

void blitFramebuffer(
  int srcX0,
  int srcY0,
  int srcX1,
  int srcY1,
  int dstX0,
  int dstY0,
  int dstX1,
  int dstY1,
  int mask,
  int filter,
)
Implementation
dart
void blitFramebuffer(
  int srcX0,
  int srcY0,
  int srcX1,
  int srcY1,
  int dstX0,
  int dstY0,
  int dstX1,
  int dstY1,
  int mask,
  int filter,
) native;

bufferData()

void bufferData(int target, dynamic data_OR_size, int usage)
Implementation
dart
void bufferData(int target, data_OR_size, int usage) native;

bufferData2()

void bufferData2(
  int target,
  TypedData srcData,
  int usage,
  int srcOffset, [
  int? length,
])
Implementation
dart
@JSName('bufferData')
void bufferData2(
  int target,
  TypedData srcData,
  int usage,
  int srcOffset, [
  int? length,
]) native;

bufferSubData()

void bufferSubData(int target, int offset, dynamic data)
Implementation
dart
void bufferSubData(int target, int offset, data) native;

bufferSubData2()

void bufferSubData2(
  int target,
  int dstByteOffset,
  TypedData srcData,
  int srcOffset, [
  int? length,
])
Implementation
dart
@JSName('bufferSubData')
void bufferSubData2(
  int target,
  int dstByteOffset,
  TypedData srcData,
  int srcOffset, [
  int? length,
]) native;

checkFramebufferStatus()

int checkFramebufferStatus(int target)
Implementation
dart
int checkFramebufferStatus(int target) native;

clear()

void clear(int mask)
Implementation
dart
void clear(int mask) native;

clearBufferfi()

void clearBufferfi(int buffer, int drawbuffer, num depth, int stencil)
Implementation
dart
void clearBufferfi(int buffer, int drawbuffer, num depth, int stencil) native;

clearBufferfv()

void clearBufferfv(int buffer, int drawbuffer, dynamic value, [int? srcOffset])
Implementation
dart
void clearBufferfv(
  int buffer,
  int drawbuffer,
  value, [
  int? srcOffset,
]) native;

clearBufferiv()

void clearBufferiv(int buffer, int drawbuffer, dynamic value, [int? srcOffset])
Implementation
dart
void clearBufferiv(
  int buffer,
  int drawbuffer,
  value, [
  int? srcOffset,
]) native;

clearBufferuiv()

void clearBufferuiv(int buffer, int drawbuffer, dynamic value, [int? srcOffset])
Implementation
dart
void clearBufferuiv(
  int buffer,
  int drawbuffer,
  value, [
  int? srcOffset,
]) native;

clearColor()

void clearColor(num red, num green, num blue, num alpha)
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;

clientWaitSync()

int clientWaitSync(Sync sync, int flags, int timeout)
Implementation
dart
int clientWaitSync(Sync sync, int flags, int timeout) native;

colorMask()

void colorMask(bool red, bool green, bool blue, bool alpha)
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;

compressedTexImage2D2()

void compressedTexImage2D2(
  int target,
  int level,
  int internalformat,
  int width,
  int height,
  int border,
  TypedData data,
  int srcOffset, [
  int? srcLengthOverride,
])
Implementation
dart
@JSName('compressedTexImage2D')
void compressedTexImage2D2(
  int target,
  int level,
  int internalformat,
  int width,
  int height,
  int border,
  TypedData data,
  int srcOffset, [
  int? srcLengthOverride,
]) native;

compressedTexImage2D3()

void compressedTexImage2D3(
  int target,
  int level,
  int internalformat,
  int width,
  int height,
  int border,
  int imageSize,
  int offset,
)
Implementation
dart
@JSName('compressedTexImage2D')
void compressedTexImage2D3(
  int target,
  int level,
  int internalformat,
  int width,
  int height,
  int border,
  int imageSize,
  int offset,
) native;

compressedTexImage3D()

void compressedTexImage3D(
  int target,
  int level,
  int internalformat,
  int width,
  int height,
  int depth,
  int border,
  TypedData data, [
  int? srcOffset,
  int? srcLengthOverride,
])
Implementation
dart
void compressedTexImage3D(
  int target,
  int level,
  int internalformat,
  int width,
  int height,
  int depth,
  int border,
  TypedData data, [
  int? srcOffset,
  int? srcLengthOverride,
]) native;

compressedTexImage3D2()

void compressedTexImage3D2(
  int target,
  int level,
  int internalformat,
  int width,
  int height,
  int depth,
  int border,
  int imageSize,
  int offset,
)
Implementation
dart
@JSName('compressedTexImage3D')
void compressedTexImage3D2(
  int target,
  int level,
  int internalformat,
  int width,
  int height,
  int depth,
  int border,
  int imageSize,
  int offset,
) 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;

compressedTexSubImage2D2()

void compressedTexSubImage2D2(
  int target,
  int level,
  int xoffset,
  int yoffset,
  int width,
  int height,
  int format,
  TypedData data,
  int srcOffset, [
  int? srcLengthOverride,
])
Implementation
dart
@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()

void compressedTexSubImage2D3(
  int target,
  int level,
  int xoffset,
  int yoffset,
  int width,
  int height,
  int format,
  int imageSize,
  int offset,
)
Implementation
dart
@JSName('compressedTexSubImage2D')
void compressedTexSubImage2D3(
  int target,
  int level,
  int xoffset,
  int yoffset,
  int width,
  int height,
  int format,
  int imageSize,
  int offset,
) native;

compressedTexSubImage3D()

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,
])
Implementation
dart
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()

void compressedTexSubImage3D2(
  int target,
  int level,
  int xoffset,
  int yoffset,
  int zoffset,
  int width,
  int height,
  int depth,
  int format,
  int imageSize,
  int offset,
)
Implementation
dart
@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()

void copyBufferSubData(
  int readTarget,
  int writeTarget,
  int readOffset,
  int writeOffset,
  int size,
)
Implementation
dart
void copyBufferSubData(
  int readTarget,
  int writeTarget,
  int readOffset,
  int writeOffset,
  int size,
) 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;

copyTexSubImage3D()

void copyTexSubImage3D(
  int target,
  int level,
  int xoffset,
  int yoffset,
  int zoffset,
  int x,
  int y,
  int width,
  int height,
)
Implementation
dart
void copyTexSubImage3D(
  int target,
  int level,
  int xoffset,
  int yoffset,
  int zoffset,
  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;

createQuery()

Query? createQuery()
Implementation
dart
Query? createQuery() native;

createRenderbuffer()

Renderbuffer createRenderbuffer()
Implementation
dart
Renderbuffer createRenderbuffer() native;

createSampler()

Sampler? createSampler()
Implementation
dart
Sampler? createSampler() native;

createShader()

Shader createShader(int type)
Implementation
dart
Shader createShader(int type) native;

createTexture()

Texture createTexture()
Implementation
dart
Texture createTexture() native;

createTransformFeedback()

TransformFeedback? createTransformFeedback()
Implementation
dart
TransformFeedback? createTransformFeedback() native;

createVertexArray()

VertexArrayObject? createVertexArray()
Implementation
dart
VertexArrayObject? createVertexArray() 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;

deleteQuery()

void deleteQuery(Query? query)
Implementation
dart
void deleteQuery(Query? query) native;

deleteRenderbuffer()

void deleteRenderbuffer(Renderbuffer? renderbuffer)
Implementation
dart
void deleteRenderbuffer(Renderbuffer? renderbuffer) native;

deleteSampler()

void deleteSampler(Sampler? sampler)
Implementation
dart
void deleteSampler(Sampler? sampler) native;

deleteShader()

void deleteShader(Shader? shader)
Implementation
dart
void deleteShader(Shader? shader) native;

deleteSync()

void deleteSync(Sync? sync)
Implementation
dart
void deleteSync(Sync? sync) native;

deleteTexture()

void deleteTexture(Texture? texture)
Implementation
dart
void deleteTexture(Texture? texture) native;

deleteTransformFeedback()

void deleteTransformFeedback(TransformFeedback? feedback)
Implementation
dart
void deleteTransformFeedback(TransformFeedback? feedback) native;

deleteVertexArray()

void deleteVertexArray(VertexArrayObject? vertexArray)
Implementation
dart
void deleteVertexArray(VertexArrayObject? vertexArray) 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()

void depthRange(num zNear, num zFar)
Implementation
dart
void depthRange(num zNear, num zFar) native;

detachShader()

void detachShader(Program program, Shader shader)
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()

void drawArrays(int mode, int first, int count)
Implementation
dart
void drawArrays(int mode, int first, int count) native;

drawArraysInstanced()

void drawArraysInstanced(int mode, int first, int count, int instanceCount)
Implementation
dart
void drawArraysInstanced(
  int mode,
  int first,
  int count,
  int instanceCount,
) native;

drawBuffers()

void drawBuffers(List<int> buffers)
Implementation
dart
void drawBuffers(List<int> buffers) native;

drawElements()

void drawElements(int mode, int count, int type, int offset)
Implementation
dart
void drawElements(int mode, int count, int type, int offset) native;

drawElementsInstanced()

void drawElementsInstanced(
  int mode,
  int count,
  int type,
  int offset,
  int instanceCount,
)
Implementation
dart
void drawElementsInstanced(
  int mode,
  int count,
  int type,
  int offset,
  int instanceCount,
) native;

drawRangeElements()

void drawRangeElements(
  int mode,
  int start,
  int end,
  int count,
  int type,
  int offset,
)
Implementation
dart
void drawRangeElements(
  int mode,
  int start,
  int end,
  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;

endQuery()

void endQuery(int target)
Implementation
dart
void endQuery(int target) native;

endTransformFeedback()

void endTransformFeedback()
Implementation
dart
void endTransformFeedback() native;

fenceSync()

Sync? fenceSync(int condition, int flags)
Implementation
dart
Sync? fenceSync(int condition, int flags) 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;

framebufferTextureLayer()

void framebufferTextureLayer(
  int target,
  int attachment,
  Texture? texture,
  int level,
  int layer,
)
Implementation
dart
void framebufferTextureLayer(
  int target,
  int attachment,
  Texture? texture,
  int level,
  int layer,
) 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;

getActiveUniformBlockName()

String? getActiveUniformBlockName(Program program, int uniformBlockIndex)
Implementation
dart
String? getActiveUniformBlockName(
  Program program,
  int uniformBlockIndex,
) native;

getActiveUniformBlockParameter()

Object? getActiveUniformBlockParameter(
  Program program,
  int uniformBlockIndex,
  int pname,
)
Implementation
dart
Object? getActiveUniformBlockParameter(
  Program program,
  int uniformBlockIndex,
  int pname,
) native;

getActiveUniforms()

Object? getActiveUniforms(Program program, List<int> uniformIndices, int pname)
Implementation
dart
Object? getActiveUniforms(
  Program program,
  List<int> uniformIndices,
  int pname,
) native;

getAttachedShaders()

List<Shader>? getAttachedShaders(Program program)
Implementation
dart
List<Shader>? getAttachedShaders(Program program) native;

getAttribLocation()

int getAttribLocation(Program program, String name)
Implementation
dart
int getAttribLocation(Program program, String name) native;

getBufferParameter()

Object? getBufferParameter(int target, int pname)
Implementation
dart
Object? getBufferParameter(int target, int pname) native;

getBufferSubData()

void getBufferSubData(
  int target,
  int srcByteOffset,
  TypedData dstData, [
  int? dstOffset,
  int? length,
])
Implementation
dart
void getBufferSubData(
  int target,
  int srcByteOffset,
  TypedData dstData, [
  int? dstOffset,
  int? length,
]) native;

getContextAttributes()

Map<dynamic, dynamic>? getContextAttributes()
Implementation
dart
Map? getContextAttributes() {
  return convertNativeToDart_Dictionary(_getContextAttributes_1());
}

getError()

int getError()
Implementation
dart
int getError() native;

getExtension()

Object? getExtension(String name)
Implementation
dart
Object? getExtension(String name) native;

getFragDataLocation()

int getFragDataLocation(Program program, String name)
Implementation
dart
int getFragDataLocation(Program program, String name) native;

getFramebufferAttachmentParameter()

Object? getFramebufferAttachmentParameter(int target, int attachment, int pname)
Implementation
dart
Object? getFramebufferAttachmentParameter(
  int target,
  int attachment,
  int pname,
) native;

getIndexedParameter()

Object? getIndexedParameter(int target, int index)
Implementation
dart
Object? getIndexedParameter(int target, int index) native;

getInternalformatParameter()

Object? getInternalformatParameter(int target, int internalformat, int pname)
Implementation
dart
Object? getInternalformatParameter(
  int target,
  int internalformat,
  int pname,
) native;

getParameter()

Object? getParameter(int pname)
Implementation
dart
Object? getParameter(int pname) native;

getProgramInfoLog()

String? getProgramInfoLog(Program program)
Implementation
dart
String? getProgramInfoLog(Program program) native;

getProgramParameter()

Object? getProgramParameter(Program program, int pname)
Implementation
dart
Object? getProgramParameter(Program program, int pname) native;

getQuery()

Object? getQuery(int target, int pname)
Implementation
dart
Object? getQuery(int target, int pname) native;

getQueryParameter()

Object? getQueryParameter(Query query, int pname)
Implementation
dart
Object? getQueryParameter(Query query, int pname) native;

getRenderbufferParameter()

Object? getRenderbufferParameter(int target, int pname)
Implementation
dart
Object? getRenderbufferParameter(int target, int pname) native;

getSamplerParameter()

Object? getSamplerParameter(Sampler sampler, int pname)
Implementation
dart
Object? getSamplerParameter(Sampler sampler, int pname) native;

getShaderInfoLog()

String? getShaderInfoLog(Shader shader)
Implementation
dart
String? getShaderInfoLog(Shader shader) native;

getShaderParameter()

Object? getShaderParameter(Shader shader, int pname)
Implementation
dart
Object? getShaderParameter(Shader shader, int pname) native;

getShaderPrecisionFormat()

ShaderPrecisionFormat getShaderPrecisionFormat(
  int shadertype,
  int precisiontype,
)
Implementation
dart
ShaderPrecisionFormat getShaderPrecisionFormat(
  int shadertype,
  int precisiontype,
) native;

getShaderSource()

String? getShaderSource(Shader shader)
Implementation
dart
String? getShaderSource(Shader shader) native;

getSupportedExtensions()

List<String>? getSupportedExtensions()
Implementation
dart
List<String>? getSupportedExtensions() native;

getSyncParameter()

Object? getSyncParameter(Sync sync, int pname)
Implementation
dart
Object? getSyncParameter(Sync sync, int pname) native;

getTexParameter()

Object? getTexParameter(int target, int pname)
Implementation
dart
Object? getTexParameter(int target, int pname) native;

getTransformFeedbackVarying()

ActiveInfo? getTransformFeedbackVarying(Program program, int index)
Implementation
dart
ActiveInfo? getTransformFeedbackVarying(Program program, int index) native;

getUniform()

Object? getUniform(Program program, UniformLocation location)
Implementation
dart
Object? getUniform(Program program, UniformLocation location) native;

getUniformBlockIndex()

int getUniformBlockIndex(Program program, String uniformBlockName)
Implementation
dart
int getUniformBlockIndex(Program program, String uniformBlockName) native;

getUniformIndices()

List<int>? getUniformIndices(Program program, List<String> uniformNames)
Implementation
dart
List<int>? getUniformIndices(Program program, List<String> uniformNames) {
  List uniformNames_1 = convertDartToNative_StringArray(uniformNames);
  return _getUniformIndices_1(program, uniformNames_1);
}

getUniformLocation()

UniformLocation getUniformLocation(Program program, String name)
Implementation
dart
UniformLocation getUniformLocation(Program program, String name) native;

getVertexAttrib()

Object? getVertexAttrib(int index, int pname)
Implementation
dart
Object? getVertexAttrib(int index, int pname) native;

getVertexAttribOffset()

int getVertexAttribOffset(int index, int pname)
Implementation
dart
int getVertexAttribOffset(int index, int pname) native;

hint()

void hint(int target, int mode)
Implementation
dart
void hint(int target, int mode) native;

invalidateFramebuffer()

void invalidateFramebuffer(int target, List<int> attachments)
Implementation
dart
void invalidateFramebuffer(int target, List<int> attachments) native;

invalidateSubFramebuffer()

void invalidateSubFramebuffer(
  int target,
  List<int> attachments,
  int x,
  int y,
  int width,
  int height,
)
Implementation
dart
void invalidateSubFramebuffer(
  int target,
  List<int> attachments,
  int x,
  int y,
  int width,
  int height,
) native;

isBuffer()

bool isBuffer(Buffer? buffer)
Implementation
dart
bool isBuffer(Buffer? buffer) native;

isContextLost()

bool isContextLost()
Implementation
dart
bool isContextLost() native;

isEnabled()

bool isEnabled(int cap)
Implementation
dart
bool isEnabled(int cap) native;

isFramebuffer()

bool isFramebuffer(Framebuffer? framebuffer)
Implementation
dart
bool isFramebuffer(Framebuffer? framebuffer) native;

isProgram()

bool isProgram(Program? program)
Implementation
dart
bool isProgram(Program? program) native;

isQuery()

bool isQuery(Query? query)
Implementation
dart
bool isQuery(Query? query) native;

isRenderbuffer()

bool isRenderbuffer(Renderbuffer? renderbuffer)
Implementation
dart
bool isRenderbuffer(Renderbuffer? renderbuffer) native;

isSampler()

bool isSampler(Sampler? sampler)
Implementation
dart
bool isSampler(Sampler? sampler) native;

isShader()

bool isShader(Shader? shader)
Implementation
dart
bool isShader(Shader? shader) native;

isSync()

bool isSync(Sync? sync)
Implementation
dart
bool isSync(Sync? sync) native;

isTexture()

bool isTexture(Texture? texture)
Implementation
dart
bool isTexture(Texture? texture) native;

isTransformFeedback()

bool isTransformFeedback(TransformFeedback? feedback)
Implementation
dart
bool isTransformFeedback(TransformFeedback? feedback) native;

isVertexArray()

bool isVertexArray(VertexArrayObject? vertexArray)
Implementation
dart
bool isVertexArray(VertexArrayObject? vertexArray) 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 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:

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);
}

pauseTransformFeedback()

void pauseTransformFeedback()
Implementation
dart
void pauseTransformFeedback() native;

pixelStorei()

void pixelStorei(int pname, int param)
Implementation
dart
void pixelStorei(int pname, int param) native;

polygonOffset()

void polygonOffset(num factor, num units)
Implementation
dart
void polygonOffset(num factor, num units) native;

readBuffer()

void readBuffer(int mode)
Implementation
dart
void readBuffer(int mode) native;

readPixels()

void readPixels(
  int x,
  int y,
  int width,
  int height,
  int format,
  int type,
  TypedData pixels,
)
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);
}

readPixels2()

void readPixels2(
  int x,
  int y,
  int width,
  int height,
  int format,
  int type,
  dynamic dstData_OR_offset, [
  int? offset,
])
Implementation
dart
@JSName('readPixels')
void readPixels2(
  int x,
  int y,
  int width,
  int height,
  int format,
  int type,
  dstData_OR_offset, [
  int? offset,
]) native;

renderbufferStorage()

void renderbufferStorage(int target, int internalformat, int width, int height)
Implementation
dart
void renderbufferStorage(
  int target,
  int internalformat,
  int width,
  int height,
) native;

renderbufferStorageMultisample()

void renderbufferStorageMultisample(
  int target,
  int samples,
  int internalformat,
  int width,
  int height,
)
Implementation
dart
void renderbufferStorageMultisample(
  int target,
  int samples,
  int internalformat,
  int width,
  int height,
) native;

resumeTransformFeedback()

void resumeTransformFeedback()
Implementation
dart
void resumeTransformFeedback() native;

sampleCoverage()

void sampleCoverage(num value, bool invert)
Implementation
dart
void sampleCoverage(num value, bool invert) native;

samplerParameterf()

void samplerParameterf(Sampler sampler, int pname, num param)
Implementation
dart
void samplerParameterf(Sampler sampler, int pname, num param) native;

samplerParameteri()

void samplerParameteri(Sampler sampler, int pname, int param)
Implementation
dart
void samplerParameteri(Sampler sampler, int pname, int param) native;

scissor()

void scissor(int x, int y, int width, int height)
Implementation
dart
void scissor(int x, int y, int width, int height) native;

shaderSource()

void shaderSource(Shader shader, String string)
Implementation
dart
void shaderSource(Shader shader, String string) native;

stencilFunc()

void stencilFunc(int func, int ref, int mask)
Implementation
dart
void stencilFunc(int func, int ref, int mask) native;

stencilFuncSeparate()

void stencilFuncSeparate(int face, int func, int ref, int mask)
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()

void stencilMaskSeparate(int face, int mask)
Implementation
dart
void stencilMaskSeparate(int face, int mask) native;

stencilOp()

void stencilOp(int fail, int zfail, int zpass)
Implementation
dart
void stencilOp(int fail, int zfail, int zpass) native;

stencilOpSeparate()

void stencilOpSeparate(int face, int fail, int zfail, int zpass)
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");
}

texImage2D2()

void texImage2D2(
  int target,
  int level,
  int internalformat,
  int width,
  int height,
  int border,
  int format,
  int type,
  dynamic bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video, [
  int? srcOffset,
])
Implementation
dart
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()

void texImage3D(
  int target,
  int level,
  int internalformat,
  int width,
  int height,
  int depth,
  int border,
  int format,
  int type,
  dynamic bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video, [
  int? srcOffset,
])
Implementation
dart
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()

void texParameterf(int target, int pname, num param)
Implementation
dart
void texParameterf(int target, int pname, num param) native;

texParameteri()

void texParameteri(int target, int pname, int param)
Implementation
dart
void texParameteri(int target, int pname, int param) native;

texStorage2D()

void texStorage2D(
  int target,
  int levels,
  int internalformat,
  int width,
  int height,
)
Implementation
dart
void texStorage2D(
  int target,
  int levels,
  int internalformat,
  int width,
  int height,
) native;

texStorage3D()

void texStorage3D(
  int target,
  int levels,
  int internalformat,
  int width,
  int height,
  int depth,
)
Implementation
dart
void texStorage3D(
  int target,
  int levels,
  int internalformat,
  int width,
  int height,
  int depth,
) 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");
}

texSubImage2D2()

void texSubImage2D2(
  int target,
  int level,
  int xoffset,
  int yoffset,
  int width,
  int height,
  int format,
  int type,
  dynamic bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_srcData_OR_video, [
  int? srcOffset,
])
Implementation
dart
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()

void texSubImage3D(
  int target,
  int level,
  int xoffset,
  int yoffset,
  int zoffset,
  int width,
  int height,
  int depth,
  int format,
  int type,
  dynamic bitmap_OR_canvas_OR_data_OR_image_OR_offset_OR_pixels_OR_video, [
  int? srcOffset,
])
Implementation
dart
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

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);

transformFeedbackVaryings()

void transformFeedbackVaryings(
  Program program,
  List<String> varyings,
  int bufferMode,
)
Implementation
dart
void transformFeedbackVaryings(
  Program program,
  List<String> varyings,
  int bufferMode,
) {
  List varyings_1 = convertDartToNative_StringArray(varyings);
  _transformFeedbackVaryings_1(program, varyings_1, bufferMode);
  return;
}

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;

uniform1fv2()

void uniform1fv2(
  UniformLocation? location,
  dynamic v,
  int srcOffset, [
  int? srcLength,
])
Implementation
dart
@JSName('uniform1fv')
void uniform1fv2(
  UniformLocation? location,
  v,
  int srcOffset, [
  int? srcLength,
]) 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;

uniform1iv2()

void uniform1iv2(
  UniformLocation? location,
  dynamic v,
  int srcOffset, [
  int? srcLength,
])
Implementation
dart
@JSName('uniform1iv')
void uniform1iv2(
  UniformLocation? location,
  v,
  int srcOffset, [
  int? srcLength,
]) native;

uniform1ui()

void uniform1ui(UniformLocation? location, int v0)
Implementation
dart
void uniform1ui(UniformLocation? location, int v0) native;

uniform1uiv()

void uniform1uiv(
  UniformLocation? location,
  dynamic v, [
  int? srcOffset,
  int? srcLength,
])
Implementation
dart
void uniform1uiv(
  UniformLocation? location,
  v, [
  int? srcOffset,
  int? srcLength,
]) 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;

uniform2fv2()

void uniform2fv2(
  UniformLocation? location,
  dynamic v,
  int srcOffset, [
  int? srcLength,
])
Implementation
dart
@JSName('uniform2fv')
void uniform2fv2(
  UniformLocation? location,
  v,
  int srcOffset, [
  int? srcLength,
]) 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;

uniform2iv2()

void uniform2iv2(
  UniformLocation? location,
  dynamic v,
  int srcOffset, [
  int? srcLength,
])
Implementation
dart
@JSName('uniform2iv')
void uniform2iv2(
  UniformLocation? location,
  v,
  int srcOffset, [
  int? srcLength,
]) native;

uniform2ui()

void uniform2ui(UniformLocation? location, int v0, int v1)
Implementation
dart
void uniform2ui(UniformLocation? location, int v0, int v1) native;

uniform2uiv()

void uniform2uiv(
  UniformLocation? location,
  dynamic v, [
  int? srcOffset,
  int? srcLength,
])
Implementation
dart
void uniform2uiv(
  UniformLocation? location,
  v, [
  int? srcOffset,
  int? srcLength,
]) 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;

uniform3fv2()

void uniform3fv2(
  UniformLocation? location,
  dynamic v,
  int srcOffset, [
  int? srcLength,
])
Implementation
dart
@JSName('uniform3fv')
void uniform3fv2(
  UniformLocation? location,
  v,
  int srcOffset, [
  int? srcLength,
]) 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;

uniform3iv2()

void uniform3iv2(
  UniformLocation? location,
  dynamic v,
  int srcOffset, [
  int? srcLength,
])
Implementation
dart
@JSName('uniform3iv')
void uniform3iv2(
  UniformLocation? location,
  v,
  int srcOffset, [
  int? srcLength,
]) native;

uniform3ui()

void uniform3ui(UniformLocation? location, int v0, int v1, int v2)
Implementation
dart
void uniform3ui(UniformLocation? location, int v0, int v1, int v2) native;

uniform3uiv()

void uniform3uiv(
  UniformLocation? location,
  dynamic v, [
  int? srcOffset,
  int? srcLength,
])
Implementation
dart
void uniform3uiv(
  UniformLocation? location,
  v, [
  int? srcOffset,
  int? srcLength,
]) 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;

uniform4fv2()

void uniform4fv2(
  UniformLocation? location,
  dynamic v,
  int srcOffset, [
  int? srcLength,
])
Implementation
dart
@JSName('uniform4fv')
void uniform4fv2(
  UniformLocation? location,
  v,
  int srcOffset, [
  int? srcLength,
]) 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;

uniform4iv2()

void uniform4iv2(
  UniformLocation? location,
  dynamic v,
  int srcOffset, [
  int? srcLength,
])
Implementation
dart
@JSName('uniform4iv')
void uniform4iv2(
  UniformLocation? location,
  v,
  int srcOffset, [
  int? srcLength,
]) native;

uniform4ui()

void uniform4ui(UniformLocation? location, int v0, int v1, int v2, int v3)
Implementation
dart
void uniform4ui(
  UniformLocation? location,
  int v0,
  int v1,
  int v2,
  int v3,
) native;

uniform4uiv()

void uniform4uiv(
  UniformLocation? location,
  dynamic v, [
  int? srcOffset,
  int? srcLength,
])
Implementation
dart
void uniform4uiv(
  UniformLocation? location,
  v, [
  int? srcOffset,
  int? srcLength,
]) native;

uniformBlockBinding()

void uniformBlockBinding(
  Program program,
  int uniformBlockIndex,
  int uniformBlockBinding,
)
Implementation
dart
void uniformBlockBinding(
  Program program,
  int uniformBlockIndex,
  int uniformBlockBinding,
) native;

uniformMatrix2fv()

void uniformMatrix2fv(UniformLocation? location, bool transpose, dynamic array)
Implementation
dart
void uniformMatrix2fv(
  UniformLocation? location,
  bool transpose,
  array,
) native;

uniformMatrix2fv2()

void uniformMatrix2fv2(
  UniformLocation? location,
  bool transpose,
  dynamic array,
  int srcOffset, [
  int? srcLength,
])
Implementation
dart
@JSName('uniformMatrix2fv')
void uniformMatrix2fv2(
  UniformLocation? location,
  bool transpose,
  array,
  int srcOffset, [
  int? srcLength,
]) native;

uniformMatrix2x3fv()

void uniformMatrix2x3fv(
  UniformLocation? location,
  bool transpose,
  dynamic value, [
  int? srcOffset,
  int? srcLength,
])
Implementation
dart
void uniformMatrix2x3fv(
  UniformLocation? location,
  bool transpose,
  value, [
  int? srcOffset,
  int? srcLength,
]) native;

uniformMatrix2x4fv()

void uniformMatrix2x4fv(
  UniformLocation? location,
  bool transpose,
  dynamic value, [
  int? srcOffset,
  int? srcLength,
])
Implementation
dart
void uniformMatrix2x4fv(
  UniformLocation? location,
  bool transpose,
  value, [
  int? srcOffset,
  int? srcLength,
]) native;

uniformMatrix3fv()

void uniformMatrix3fv(UniformLocation? location, bool transpose, dynamic array)
Implementation
dart
void uniformMatrix3fv(
  UniformLocation? location,
  bool transpose,
  array,
) native;

uniformMatrix3fv2()

void uniformMatrix3fv2(
  UniformLocation? location,
  bool transpose,
  dynamic array,
  int srcOffset, [
  int? srcLength,
])
Implementation
dart
@JSName('uniformMatrix3fv')
void uniformMatrix3fv2(
  UniformLocation? location,
  bool transpose,
  array,
  int srcOffset, [
  int? srcLength,
]) native;

uniformMatrix3x2fv()

void uniformMatrix3x2fv(
  UniformLocation? location,
  bool transpose,
  dynamic value, [
  int? srcOffset,
  int? srcLength,
])
Implementation
dart
void uniformMatrix3x2fv(
  UniformLocation? location,
  bool transpose,
  value, [
  int? srcOffset,
  int? srcLength,
]) native;

uniformMatrix3x4fv()

void uniformMatrix3x4fv(
  UniformLocation? location,
  bool transpose,
  dynamic value, [
  int? srcOffset,
  int? srcLength,
])
Implementation
dart
void uniformMatrix3x4fv(
  UniformLocation? location,
  bool transpose,
  value, [
  int? srcOffset,
  int? srcLength,
]) native;

uniformMatrix4fv()

void uniformMatrix4fv(UniformLocation? location, bool transpose, dynamic array)
Implementation
dart
void uniformMatrix4fv(
  UniformLocation? location,
  bool transpose,
  array,
) native;

uniformMatrix4fv2()

void uniformMatrix4fv2(
  UniformLocation? location,
  bool transpose,
  dynamic array,
  int srcOffset, [
  int? srcLength,
])
Implementation
dart
@JSName('uniformMatrix4fv')
void uniformMatrix4fv2(
  UniformLocation? location,
  bool transpose,
  array,
  int srcOffset, [
  int? srcLength,
]) native;

uniformMatrix4x2fv()

void uniformMatrix4x2fv(
  UniformLocation? location,
  bool transpose,
  dynamic value, [
  int? srcOffset,
  int? srcLength,
])
Implementation
dart
void uniformMatrix4x2fv(
  UniformLocation? location,
  bool transpose,
  value, [
  int? srcOffset,
  int? srcLength,
]) native;

uniformMatrix4x3fv()

void uniformMatrix4x3fv(
  UniformLocation? location,
  bool transpose,
  dynamic value, [
  int? srcOffset,
  int? srcLength,
])
Implementation
dart
void uniformMatrix4x3fv(
  UniformLocation? location,
  bool transpose,
  value, [
  int? srcOffset,
  int? srcLength,
]) 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()

void vertexAttrib1f(int indx, num x)
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()

void vertexAttrib2f(int indx, num x, num y)
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()

void vertexAttrib3f(int indx, num x, num y, num z)
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()

void vertexAttrib4f(int indx, num x, num y, num z, num w)
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;

vertexAttribDivisor()

void vertexAttribDivisor(int index, int divisor)
Implementation
dart
void vertexAttribDivisor(int index, int divisor) native;

vertexAttribI4i()

void vertexAttribI4i(int index, int x, int y, int z, int w)
Implementation
dart
void vertexAttribI4i(int index, int x, int y, int z, int w) native;

vertexAttribI4iv()

void vertexAttribI4iv(int index, dynamic v)
Implementation
dart
void vertexAttribI4iv(int index, v) native;

vertexAttribI4ui()

void vertexAttribI4ui(int index, int x, int y, int z, int w)
Implementation
dart
void vertexAttribI4ui(int index, int x, int y, int z, int w) native;

vertexAttribI4uiv()

void vertexAttribI4uiv(int index, dynamic v)
Implementation
dart
void vertexAttribI4uiv(int index, v) native;

vertexAttribIPointer()

void vertexAttribIPointer(int index, int size, int type, int stride, int offset)
Implementation
dart
void vertexAttribIPointer(
  int index,
  int size,
  int type,
  int stride,
  int offset,
) native;

vertexAttribPointer()

void vertexAttribPointer(
  int indx,
  int size,
  int type,
  bool normalized,
  int stride,
  int offset,
)
Implementation
dart
void vertexAttribPointer(
  int indx,
  int size,
  int type,
  bool normalized,
  int stride,
  int offset,
) native;

viewport()

void viewport(int x, int y, int width, int height)
Implementation
dart
void viewport(int x, int y, int width, int height) native;

waitSync()

void waitSync(Sync sync, int flags, int timeout)
Implementation
dart
void waitSync(Sync sync, int flags, int timeout) native;

Operators

operator ==() inherited

bool operator ==(Object other)

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 == o must be true.

  • Symmetric: For all objects o1 and o2, o1 == o2 and o2 == o1 must either both be true, or both be false.

  • Transitive: For all objects o1, o2, and o3, if o1 == o2 and o2 == o3 are true, then o1 == o3 must 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);