Inheritance
Implements
Annotations
  • DomName('WebGLRenderingContext')
  • SupportedBrowser(SupportedBrowser.CHROME)
  • SupportedBrowser(SupportedBrowser.FIREFOX)
  • Experimental()
  • Unstable()

Constants

ACTIVE_ATTRIBUTES int

0x8B89
ACTIVE_TEXTURE int

0x84E0
ACTIVE_UNIFORMS int

0x8B86
ALIASED_LINE_WIDTH_RANGE int

0x846E
ALIASED_POINT_SIZE_RANGE int

0x846D
ALPHA int

0x1906
ALPHA_BITS int

0x0D55
ALWAYS int

0x0207
ARRAY_BUFFER int

0x8892
ARRAY_BUFFER_BINDING int

0x8894
ATTACHED_SHADERS int

0x8B85
BACK int

0x0405
BLEND int

0x0BE2
BLEND_COLOR int

0x8005
BLEND_DST_ALPHA int

0x80CA
BLEND_DST_RGB int

0x80C8
BLEND_EQUATION int

0x8009
BLEND_EQUATION_ALPHA int

0x883D
BLEND_EQUATION_RGB int

0x8009
BLEND_SRC_ALPHA int

0x80CB
BLEND_SRC_RGB int

0x80C9
BLUE_BITS int

0x0D54
BOOL int

0x8B56
BOOL_VEC2 int

0x8B57
BOOL_VEC3 int

0x8B58
BOOL_VEC4 int

0x8B59
BROWSER_DEFAULT_WEBGL int

0x9244
BUFFER_SIZE int

0x8764
BUFFER_USAGE int

0x8765
BYTE int

0x1400
CCW int

0x0901
CLAMP_TO_EDGE int

0x812F
COLOR_ATTACHMENT0 int

0x8CE0
COLOR_BUFFER_BIT int

0x00004000
COLOR_CLEAR_VALUE int

0x0C22
COLOR_WRITEMASK int

0x0C23
COMPILE_STATUS int

0x8B81
COMPRESSED_TEXTURE_FORMATS int

0x86A3
CONSTANT_ALPHA int

0x8003
CONSTANT_COLOR int

0x8001
CONTEXT_LOST_WEBGL int

0x9242
CULL_FACE int

0x0B44
CULL_FACE_MODE int

0x0B45
CURRENT_PROGRAM int

0x8B8D
CURRENT_VERTEX_ATTRIB int

0x8626
CW int

0x0900
DECR int

0x1E03
DECR_WRAP int

0x8508
DELETE_STATUS int

0x8B80
DEPTH_ATTACHMENT int

0x8D00
DEPTH_BITS int

0x0D56
DEPTH_BUFFER_BIT int

0x00000100
DEPTH_CLEAR_VALUE int

0x0B73
DEPTH_COMPONENT int

0x1902
DEPTH_COMPONENT16 int

0x81A5
DEPTH_FUNC int

0x0B74
DEPTH_RANGE int

0x0B70
DEPTH_STENCIL int

0x84F9
DEPTH_STENCIL_ATTACHMENT int

0x821A
DEPTH_TEST int

0x0B71
DEPTH_WRITEMASK int

0x0B72
DITHER int

0x0BD0
DONT_CARE int

0x1100
DST_ALPHA int

0x0304
DST_COLOR int

0x0306
DYNAMIC_DRAW int

0x88E8
ELEMENT_ARRAY_BUFFER int

0x8893
ELEMENT_ARRAY_BUFFER_BINDING int

0x8895
EQUAL int

0x0202
FASTEST int

0x1101
FLOAT int

0x1406
FLOAT_MAT2 int

0x8B5A
FLOAT_MAT3 int

0x8B5B
FLOAT_MAT4 int

0x8B5C
FLOAT_VEC2 int

0x8B50
FLOAT_VEC3 int

0x8B51
FLOAT_VEC4 int

0x8B52
FRAGMENT_SHADER int

0x8B30
FRAMEBUFFER int

0x8D40
FRAMEBUFFER_ATTACHMENT_OBJECT_NAME int

0x8CD1
FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE int

0x8CD0
FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE int

0x8CD3
FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL int

0x8CD2
FRAMEBUFFER_BINDING int

0x8CA6
FRAMEBUFFER_COMPLETE int

0x8CD5
FRAMEBUFFER_INCOMPLETE_ATTACHMENT int

0x8CD6
FRAMEBUFFER_INCOMPLETE_DIMENSIONS int

0x8CD9
FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT int

0x8CD7
FRAMEBUFFER_UNSUPPORTED int

0x8CDD
FRONT int

0x0404
FRONT_AND_BACK int

0x0408
FRONT_FACE int

0x0B46
FUNC_ADD int

0x8006
FUNC_REVERSE_SUBTRACT int

0x800B
FUNC_SUBTRACT int

0x800A
GENERATE_MIPMAP_HINT int

0x8192
GEQUAL int

0x0206
GREATER int

0x0204
GREEN_BITS int

0x0D53
HIGH_FLOAT int

0x8DF2
HIGH_INT int

0x8DF5
IMPLEMENTATION_COLOR_READ_FORMAT int

0x8B9B
IMPLEMENTATION_COLOR_READ_TYPE int

0x8B9A
INCR int

0x1E02
INCR_WRAP int

0x8507
INT int

0x1404
INT_VEC2 int

0x8B53
INT_VEC3 int

0x8B54
INT_VEC4 int

0x8B55
INVALID_ENUM int

0x0500
INVALID_FRAMEBUFFER_OPERATION int

0x0506
INVALID_OPERATION int

0x0502
INVALID_VALUE int

0x0501
INVERT int

0x150A
KEEP int

0x1E00
LEQUAL int

0x0203
LESS int

0x0201
LINE_LOOP int

0x0002
LINE_STRIP int

0x0003
LINE_WIDTH int

0x0B21
LINEAR int

0x2601
LINEAR_MIPMAP_LINEAR int

0x2703
LINEAR_MIPMAP_NEAREST int

0x2701
LINES int

0x0001

0x8B82
LOW_FLOAT int

0x8DF0
LOW_INT int

0x8DF3
LUMINANCE int

0x1909
LUMINANCE_ALPHA int

0x190A
MAX_COMBINED_TEXTURE_IMAGE_UNITS int

0x8B4D
MAX_CUBE_MAP_TEXTURE_SIZE int

0x851C
MAX_FRAGMENT_UNIFORM_VECTORS int

0x8DFD
MAX_RENDERBUFFER_SIZE int

0x84E8
MAX_TEXTURE_IMAGE_UNITS int

0x8872
MAX_TEXTURE_SIZE int

0x0D33
MAX_VARYING_VECTORS int

0x8DFC
MAX_VERTEX_ATTRIBS int

0x8869
MAX_VERTEX_TEXTURE_IMAGE_UNITS int

0x8B4C
MAX_VERTEX_UNIFORM_VECTORS int

0x8DFB
MAX_VIEWPORT_DIMS int

0x0D3A
MEDIUM_FLOAT int

0x8DF1
MEDIUM_INT int

0x8DF4
MIRRORED_REPEAT int

0x8370
NEAREST int

0x2600
NEAREST_MIPMAP_LINEAR int

0x2702
NEAREST_MIPMAP_NEAREST int

0x2700
NEVER int

0x0200
NICEST int

0x1102
NO_ERROR int

0
NONE int

0
NOTEQUAL int

0x0205
ONE int

1
ONE_MINUS_CONSTANT_ALPHA int

0x8004
ONE_MINUS_CONSTANT_COLOR int

0x8002
ONE_MINUS_DST_ALPHA int

0x0305
ONE_MINUS_DST_COLOR int

0x0307
ONE_MINUS_SRC_ALPHA int

0x0303
ONE_MINUS_SRC_COLOR int

0x0301
OUT_OF_MEMORY int

0x0505
PACK_ALIGNMENT int

0x0D05
POINTS int

0x0000
POLYGON_OFFSET_FACTOR int

0x8038
POLYGON_OFFSET_FILL int

0x8037
POLYGON_OFFSET_UNITS int

0x2A00
RED_BITS int

0x0D52
RENDERBUFFER int

0x8D41
RENDERBUFFER_ALPHA_SIZE int

0x8D53
RENDERBUFFER_BINDING int

0x8CA7
RENDERBUFFER_BLUE_SIZE int

0x8D52
RENDERBUFFER_DEPTH_SIZE int

0x8D54
RENDERBUFFER_GREEN_SIZE int

0x8D51
RENDERBUFFER_HEIGHT int

0x8D43
RENDERBUFFER_INTERNAL_FORMAT int

0x8D44
RENDERBUFFER_RED_SIZE int

0x8D50
RENDERBUFFER_STENCIL_SIZE int

0x8D55
RENDERBUFFER_WIDTH int

0x8D42
RENDERER int

0x1F01
REPEAT int

0x2901
REPLACE int

0x1E01
RGB int

0x1907
RGB5_A1 int

0x8057
RGB565 int

0x8D62
RGBA int

0x1908
RGBA4 int

0x8056
SAMPLE_ALPHA_TO_COVERAGE int

0x809E
SAMPLE_BUFFERS int

0x80A8
SAMPLE_COVERAGE int

0x80A0
SAMPLE_COVERAGE_INVERT int

0x80AB
SAMPLE_COVERAGE_VALUE int

0x80AA
SAMPLER_2D int

0x8B5E
SAMPLER_CUBE int

0x8B60
SAMPLES int

0x80A9
SCISSOR_BOX int

0x0C10
SCISSOR_TEST int

0x0C11
SHADER_TYPE int

0x8B4F
SHADING_LANGUAGE_VERSION int

0x8B8C
SHORT int

0x1402
SRC_ALPHA int

0x0302
SRC_ALPHA_SATURATE int

0x0308
SRC_COLOR int

0x0300
STATIC_DRAW int

0x88E4
STENCIL_ATTACHMENT int

0x8D20
STENCIL_BACK_FAIL int

0x8801
STENCIL_BACK_FUNC int

0x8800
STENCIL_BACK_PASS_DEPTH_FAIL int

0x8802
STENCIL_BACK_PASS_DEPTH_PASS int

0x8803
STENCIL_BACK_REF int

0x8CA3
STENCIL_BACK_VALUE_MASK int

0x8CA4
STENCIL_BACK_WRITEMASK int

0x8CA5
STENCIL_BITS int

0x0D57
STENCIL_BUFFER_BIT int

0x00000400
STENCIL_CLEAR_VALUE int

0x0B91
STENCIL_FAIL int

0x0B94
STENCIL_FUNC int

0x0B92
STENCIL_INDEX int

0x1901
STENCIL_INDEX8 int

0x8D48
STENCIL_PASS_DEPTH_FAIL int

0x0B95
STENCIL_PASS_DEPTH_PASS int

0x0B96
STENCIL_REF int

0x0B97
STENCIL_TEST int

0x0B90
STENCIL_VALUE_MASK int

0x0B93
STENCIL_WRITEMASK int

0x0B98
STREAM_DRAW int

0x88E0
SUBPIXEL_BITS int

0x0D50
TEXTURE int

0x1702
TEXTURE0 int

0x84C0
TEXTURE1 int

0x84C1
TEXTURE2 int

0x84C2
TEXTURE3 int

0x84C3
TEXTURE4 int

0x84C4
TEXTURE5 int

0x84C5
TEXTURE6 int

0x84C6
TEXTURE7 int

0x84C7
TEXTURE8 int

0x84C8
TEXTURE9 int

0x84C9
TEXTURE10 int

0x84CA
TEXTURE11 int

0x84CB
TEXTURE12 int

0x84CC
TEXTURE13 int

0x84CD
TEXTURE14 int

0x84CE
TEXTURE15 int

0x84CF
TEXTURE16 int

0x84D0
TEXTURE17 int

0x84D1
TEXTURE18 int

0x84D2
TEXTURE19 int

0x84D3
TEXTURE20 int

0x84D4
TEXTURE21 int

0x84D5
TEXTURE22 int

0x84D6
TEXTURE23 int

0x84D7
TEXTURE24 int

0x84D8
TEXTURE25 int

0x84D9
TEXTURE26 int

0x84DA
TEXTURE27 int

0x84DB
TEXTURE28 int

0x84DC
TEXTURE29 int

0x84DD
TEXTURE30 int

0x84DE
TEXTURE31 int

0x84DF
TEXTURE_2D int

0x0DE1
TEXTURE_BINDING_2D int

0x8069
TEXTURE_BINDING_CUBE_MAP int

0x8514
TEXTURE_CUBE_MAP int

0x8513
TEXTURE_CUBE_MAP_NEGATIVE_X int

0x8516
TEXTURE_CUBE_MAP_NEGATIVE_Y int

0x8518
TEXTURE_CUBE_MAP_NEGATIVE_Z int

0x851A
TEXTURE_CUBE_MAP_POSITIVE_X int

0x8515
TEXTURE_CUBE_MAP_POSITIVE_Y int

0x8517
TEXTURE_CUBE_MAP_POSITIVE_Z int

0x8519
TEXTURE_MAG_FILTER int

0x2800
TEXTURE_MIN_FILTER int

0x2801
TEXTURE_WRAP_S int

0x2802
TEXTURE_WRAP_T int

0x2803
TRIANGLE_FAN int

0x0006
TRIANGLE_STRIP int

0x0005
TRIANGLES int

0x0004
UNPACK_ALIGNMENT int

0x0CF5
UNPACK_COLORSPACE_CONVERSION_WEBGL int

0x9243
UNPACK_FLIP_Y_WEBGL int

0x9240
UNPACK_PREMULTIPLY_ALPHA_WEBGL int

0x9241
UNSIGNED_BYTE int

0x1401
UNSIGNED_INT int

0x1405
UNSIGNED_SHORT int

0x1403
UNSIGNED_SHORT_4_4_4_4 int

0x8033
UNSIGNED_SHORT_5_5_5_1 int

0x8034
UNSIGNED_SHORT_5_6_5 int

0x8363
VALIDATE_STATUS int

0x8B83
VENDOR int

0x1F00
VERSION int

0x1F02
VERTEX_ATTRIB_ARRAY_BUFFER_BINDING int

0x889F
VERTEX_ATTRIB_ARRAY_ENABLED int

0x8622
VERTEX_ATTRIB_ARRAY_NORMALIZED int

0x886A
VERTEX_ATTRIB_ARRAY_POINTER int

0x8645
VERTEX_ATTRIB_ARRAY_SIZE int

0x8623
VERTEX_ATTRIB_ARRAY_STRIDE int

0x8624
VERTEX_ATTRIB_ARRAY_TYPE int

0x8625
VERTEX_SHADER int

0x8B31
VIEWPORT int

0x0BA2
ZERO int

0

Static Properties

instanceRuntimeType Type

read-only
supported bool

Checks if this type is supported on the current platform.

read-only

Constructors

RenderingContext.internal_()

Properties

canvas CanvasElement

read-only
drawingBufferHeight int

read-only
drawingBufferWidth int

read-only
hashCode int

read-only, inherited
runtimeType Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) bool

The equality operator.

inherited

Methods

activeTexture(int texture) → void

attachShader(Program program, Shader shader) → void

bindAttribLocation(Program program, int index, String name) → void

bindBuffer(int target, Buffer buffer) → void

bindFramebuffer(int target, Framebuffer framebuffer) → void

bindRenderbuffer(int target, Renderbuffer renderbuffer) → void

bindTexture(int target, Texture texture) → void

blendColor(num red, num green, num blue, num alpha) → void

blendEquation(int mode) → void

blendEquationSeparate(int modeRGB, int modeAlpha) → void

blendFunc(int sfactor, int dfactor) → void

blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) → void

bufferData(int target, data_OR_size, int usage) → void

bufferDataTyped(int target, TypedData data, int usage) → void

Set the bufferData to data.

bufferSubData(int target, int offset, data) → void

bufferSubDataTyped(int target, int offset, TypedData data) → void

Set the bufferSubData to data.

checkFramebufferStatus(int target) int

clear(int mask) → void

clearColor(num red, num green, num blue, num alpha) → void

clearDepth(num depth) → void

clearStencil(int s) → void

colorMask(bool red, bool green, bool blue, bool alpha) → void

compileShader(Shader shader) → void

compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, TypedData data) → void

compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, TypedData data) → void

copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border) → void

copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) → void

createBuffer() Buffer

createFramebuffer() Framebuffer

createProgram() Program

createRenderbuffer() Renderbuffer

createShader(int type) Shader

createTexture() Texture

cullFace(int mode) → void

deleteBuffer(Buffer buffer) → void

deleteFramebuffer(Framebuffer framebuffer) → void

deleteProgram(Program program) → void

deleteRenderbuffer(Renderbuffer renderbuffer) → void

deleteShader(Shader shader) → void

deleteTexture(Texture texture) → void

depthFunc(int func) → void

depthMask(bool flag) → void

depthRange(num zNear, num zFar) → void

detachShader(Program program, Shader shader) → void

disable(int cap) → void

disableVertexAttribArray(int index) → void

drawArrays(int mode, int first, int count) → void

drawElements(int mode, int count, int type, int offset) → void

enable(int cap) → void

enableVertexAttribArray(int index) → void

finish() → void

flush() → void

framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, Renderbuffer renderbuffer) → void

framebufferTexture2D(int target, int attachment, int textarget, Texture texture, int level) → void

frontFace(int mode) → void

generateMipmap(int target) → void

getActiveAttrib(Program program, int index) ActiveInfo

getActiveUniform(Program program, int index) ActiveInfo

getAttachedShaders(Program program) List<Shader>

getAttribLocation(Program program, String name) int

getBufferParameter(int target, int pname) Object

getContextAttributes() → dynamic

getError() int

getExtension(String name) Object

getFramebufferAttachmentParameter(int target, int attachment, int pname) Object

getParameter(int pname) Object

getProgramInfoLog(Program program) String

getProgramParameter(Program program, int pname) Object

getRenderbufferParameter(int target, int pname) Object

getShaderInfoLog(Shader shader) String

getShaderParameter(Shader shader, int pname) Object

getShaderPrecisionFormat(int shadertype, int precisiontype) ShaderPrecisionFormat

getShaderSource(Shader shader) String

getSupportedExtensions() List<String>

getTexParameter(int target, int pname) Object

getUniform(Program program, UniformLocation location) Object

getUniformLocation(Program program, String name) UniformLocation

getVertexAttrib(int index, int pname) Object

getVertexAttribOffset(int index, int pname) int

hint(int target, int mode) → void

isBuffer(Buffer buffer) bool

isContextLost() bool

isEnabled(int cap) bool

isFramebuffer(Framebuffer framebuffer) bool

isProgram(Program program) bool

isRenderbuffer(Renderbuffer renderbuffer) bool

isShader(Shader shader) bool

isTexture(Texture texture) bool

lineWidth(num width) → void

linkProgram(Program program) → void

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
pixelStorei(int pname, int param) → void

polygonOffset(num factor, num units) → void

readPixels(int x, int y, int width, int height, int format, int type, TypedData pixels) → void

renderbufferStorage(int target, int internalformat, int width, int height) → void

sampleCoverage(num value, bool invert) → void

scissor(int x, int y, int width, int height) → void

shaderSource(Shader shader, String string) → void

stencilFunc(int func, int ref, int mask) → void

stencilFuncSeparate(int face, int func, int ref, int mask) → void

stencilMask(int mask) → void

stencilMaskSeparate(int face, int mask) → void

stencilOp(int fail, int zfail, int zpass) → void

stencilOpSeparate(int face, int fail, int zfail, int zpass) → void

texImage2D(int target, int level, int internalformat, int format_OR_width, int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [ int format, int type, TypedData pixels ]) → void

texImage2DTyped(int targetTexture, int levelOfDetail, int internalFormat, int width, int height, int border, int format, int type, TypedData data) → void

Sets the currently bound texture to data.

texImage2DUntyped(int targetTexture, int levelOfDetail, int internalFormat, int format, int type, data) → void

Sets the currently bound texture to data.

texParameterf(int target, int pname, num param) → void

texParameteri(int target, int pname, int param) → void

texSubImage2D(int target, int level, int xoffset, int yoffset, int format_OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [ int type, TypedData pixels ]) → void

texSubImage2DTyped(int targetTexture, int levelOfDetail, int xOffset, int yOffset, int width, int height, int border, int format, int type, TypedData data) → void

Updates a sub-rectangle of the currently bound texture to data.

texSubImage2DUntyped(int targetTexture, int levelOfDetail, int xOffset, int yOffset, int format, int type, data) → void

Updates a sub-rectangle of the currently bound texture to data.

toString() String

Returns the result of the JavaScript objects toString method.

inherited
uniform1f(UniformLocation location, num x) → void

uniform1fv(UniformLocation location, v) → void

uniform1i(UniformLocation location, int x) → void

uniform1iv(UniformLocation location, v) → void

uniform2f(UniformLocation location, num x, num y) → void

uniform2fv(UniformLocation location, v) → void

uniform2i(UniformLocation location, int x, int y) → void

uniform2iv(UniformLocation location, v) → void

uniform3f(UniformLocation location, num x, num y, num z) → void

uniform3fv(UniformLocation location, v) → void

uniform3i(UniformLocation location, int x, int y, int z) → void

uniform3iv(UniformLocation location, v) → void

uniform4f(UniformLocation location, num x, num y, num z, num w) → void

uniform4fv(UniformLocation location, v) → void

uniform4i(UniformLocation location, int x, int y, int z, int w) → void

uniform4iv(UniformLocation location, v) → void

uniformMatrix2fv(UniformLocation location, bool transpose, array) → void

uniformMatrix3fv(UniformLocation location, bool transpose, array) → void

uniformMatrix4fv(UniformLocation location, bool transpose, array) → void

useProgram(Program program) → void

validateProgram(Program program) → void

vertexAttrib1f(int indx, num x) → void

vertexAttrib1fv(int indx, values) → void

vertexAttrib2f(int indx, num x, num y) → void

vertexAttrib2fv(int indx, values) → void

vertexAttrib3f(int indx, num x, num y, num z) → void

vertexAttrib3fv(int indx, values) → void

vertexAttrib4f(int indx, num x, num y, num z, num w) → void

vertexAttrib4fv(int indx, values) → void

vertexAttribPointer(int indx, int size, int type, bool normalized, int stride, int offset) → void

viewport(int x, int y, int width, int height) → void