Index: sdk/lib/web_gl/dart2js/web_gl_dart2js.dart |
diff --git a/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart b/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart |
index 73bed3420c1bc9797bc6c14012e0f45843ba7f75..4beaea8cca530029ab042f5f3c04132cb891dc81 100644 |
--- a/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart |
+++ b/sdk/lib/web_gl/dart2js/web_gl_dart2js.dart |
@@ -25,302 +25,302 @@ import 'dart:_interceptors' show Interceptor, JSExtendableArray; |
// BSD-style license that can be found in the LICENSE file. |
-const int ACTIVE_ATTRIBUTES = RenderingContextBase.ACTIVE_ATTRIBUTES; |
-const int ACTIVE_TEXTURE = RenderingContextBase.ACTIVE_TEXTURE; |
-const int ACTIVE_UNIFORMS = RenderingContextBase.ACTIVE_UNIFORMS; |
-const int ALIASED_LINE_WIDTH_RANGE = RenderingContextBase.ALIASED_LINE_WIDTH_RANGE; |
-const int ALIASED_POINT_SIZE_RANGE = RenderingContextBase.ALIASED_POINT_SIZE_RANGE; |
-const int ALPHA = RenderingContextBase.ALPHA; |
-const int ALPHA_BITS = RenderingContextBase.ALPHA_BITS; |
-const int ALWAYS = RenderingContextBase.ALWAYS; |
-const int ARRAY_BUFFER = RenderingContextBase.ARRAY_BUFFER; |
-const int ARRAY_BUFFER_BINDING = RenderingContextBase.ARRAY_BUFFER_BINDING; |
-const int ATTACHED_SHADERS = RenderingContextBase.ATTACHED_SHADERS; |
-const int BACK = RenderingContextBase.BACK; |
-const int BLEND = RenderingContextBase.BLEND; |
-const int BLEND_COLOR = RenderingContextBase.BLEND_COLOR; |
-const int BLEND_DST_ALPHA = RenderingContextBase.BLEND_DST_ALPHA; |
-const int BLEND_DST_RGB = RenderingContextBase.BLEND_DST_RGB; |
-const int BLEND_EQUATION = RenderingContextBase.BLEND_EQUATION; |
-const int BLEND_EQUATION_ALPHA = RenderingContextBase.BLEND_EQUATION_ALPHA; |
-const int BLEND_EQUATION_RGB = RenderingContextBase.BLEND_EQUATION_RGB; |
-const int BLEND_SRC_ALPHA = RenderingContextBase.BLEND_SRC_ALPHA; |
-const int BLEND_SRC_RGB = RenderingContextBase.BLEND_SRC_RGB; |
-const int BLUE_BITS = RenderingContextBase.BLUE_BITS; |
-const int BOOL = RenderingContextBase.BOOL; |
-const int BOOL_VEC2 = RenderingContextBase.BOOL_VEC2; |
-const int BOOL_VEC3 = RenderingContextBase.BOOL_VEC3; |
-const int BOOL_VEC4 = RenderingContextBase.BOOL_VEC4; |
-const int BROWSER_DEFAULT_WEBGL = RenderingContextBase.BROWSER_DEFAULT_WEBGL; |
-const int BUFFER_SIZE = RenderingContextBase.BUFFER_SIZE; |
-const int BUFFER_USAGE = RenderingContextBase.BUFFER_USAGE; |
-const int BYTE = RenderingContextBase.BYTE; |
-const int CCW = RenderingContextBase.CCW; |
-const int CLAMP_TO_EDGE = RenderingContextBase.CLAMP_TO_EDGE; |
-const int COLOR_ATTACHMENT0 = RenderingContextBase.COLOR_ATTACHMENT0; |
-const int COLOR_BUFFER_BIT = RenderingContextBase.COLOR_BUFFER_BIT; |
-const int COLOR_CLEAR_VALUE = RenderingContextBase.COLOR_CLEAR_VALUE; |
-const int COLOR_WRITEMASK = RenderingContextBase.COLOR_WRITEMASK; |
-const int COMPILE_STATUS = RenderingContextBase.COMPILE_STATUS; |
-const int COMPRESSED_TEXTURE_FORMATS = RenderingContextBase.COMPRESSED_TEXTURE_FORMATS; |
-const int CONSTANT_ALPHA = RenderingContextBase.CONSTANT_ALPHA; |
-const int CONSTANT_COLOR = RenderingContextBase.CONSTANT_COLOR; |
-const int CONTEXT_LOST_WEBGL = RenderingContextBase.CONTEXT_LOST_WEBGL; |
-const int CULL_FACE = RenderingContextBase.CULL_FACE; |
-const int CULL_FACE_MODE = RenderingContextBase.CULL_FACE_MODE; |
-const int CURRENT_PROGRAM = RenderingContextBase.CURRENT_PROGRAM; |
-const int CURRENT_VERTEX_ATTRIB = RenderingContextBase.CURRENT_VERTEX_ATTRIB; |
-const int CW = RenderingContextBase.CW; |
-const int DECR = RenderingContextBase.DECR; |
-const int DECR_WRAP = RenderingContextBase.DECR_WRAP; |
-const int DELETE_STATUS = RenderingContextBase.DELETE_STATUS; |
-const int DEPTH_ATTACHMENT = RenderingContextBase.DEPTH_ATTACHMENT; |
-const int DEPTH_BITS = RenderingContextBase.DEPTH_BITS; |
-const int DEPTH_BUFFER_BIT = RenderingContextBase.DEPTH_BUFFER_BIT; |
-const int DEPTH_CLEAR_VALUE = RenderingContextBase.DEPTH_CLEAR_VALUE; |
-const int DEPTH_COMPONENT = RenderingContextBase.DEPTH_COMPONENT; |
-const int DEPTH_COMPONENT16 = RenderingContextBase.DEPTH_COMPONENT16; |
-const int DEPTH_FUNC = RenderingContextBase.DEPTH_FUNC; |
-const int DEPTH_RANGE = RenderingContextBase.DEPTH_RANGE; |
-const int DEPTH_STENCIL = RenderingContextBase.DEPTH_STENCIL; |
-const int DEPTH_STENCIL_ATTACHMENT = RenderingContextBase.DEPTH_STENCIL_ATTACHMENT; |
-const int DEPTH_TEST = RenderingContextBase.DEPTH_TEST; |
-const int DEPTH_WRITEMASK = RenderingContextBase.DEPTH_WRITEMASK; |
-const int DITHER = RenderingContextBase.DITHER; |
-const int DONT_CARE = RenderingContextBase.DONT_CARE; |
-const int DST_ALPHA = RenderingContextBase.DST_ALPHA; |
-const int DST_COLOR = RenderingContextBase.DST_COLOR; |
-const int DYNAMIC_DRAW = RenderingContextBase.DYNAMIC_DRAW; |
-const int ELEMENT_ARRAY_BUFFER = RenderingContextBase.ELEMENT_ARRAY_BUFFER; |
-const int ELEMENT_ARRAY_BUFFER_BINDING = RenderingContextBase.ELEMENT_ARRAY_BUFFER_BINDING; |
-const int EQUAL = RenderingContextBase.EQUAL; |
-const int FASTEST = RenderingContextBase.FASTEST; |
-const int FLOAT = RenderingContextBase.FLOAT; |
-const int FLOAT_MAT2 = RenderingContextBase.FLOAT_MAT2; |
-const int FLOAT_MAT3 = RenderingContextBase.FLOAT_MAT3; |
-const int FLOAT_MAT4 = RenderingContextBase.FLOAT_MAT4; |
-const int FLOAT_VEC2 = RenderingContextBase.FLOAT_VEC2; |
-const int FLOAT_VEC3 = RenderingContextBase.FLOAT_VEC3; |
-const int FLOAT_VEC4 = RenderingContextBase.FLOAT_VEC4; |
-const int FRAGMENT_SHADER = RenderingContextBase.FRAGMENT_SHADER; |
-const int FRAMEBUFFER = RenderingContextBase.FRAMEBUFFER; |
-const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = RenderingContextBase.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME; |
-const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = RenderingContextBase.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE; |
-const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = RenderingContextBase.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE; |
-const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = RenderingContextBase.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL; |
-const int FRAMEBUFFER_BINDING = RenderingContextBase.FRAMEBUFFER_BINDING; |
-const int FRAMEBUFFER_COMPLETE = RenderingContextBase.FRAMEBUFFER_COMPLETE; |
-const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = RenderingContextBase.FRAMEBUFFER_INCOMPLETE_ATTACHMENT; |
-const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = RenderingContextBase.FRAMEBUFFER_INCOMPLETE_DIMENSIONS; |
-const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = RenderingContextBase.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT; |
-const int FRAMEBUFFER_UNSUPPORTED = RenderingContextBase.FRAMEBUFFER_UNSUPPORTED; |
-const int FRONT = RenderingContextBase.FRONT; |
-const int FRONT_AND_BACK = RenderingContextBase.FRONT_AND_BACK; |
-const int FRONT_FACE = RenderingContextBase.FRONT_FACE; |
-const int FUNC_ADD = RenderingContextBase.FUNC_ADD; |
-const int FUNC_REVERSE_SUBTRACT = RenderingContextBase.FUNC_REVERSE_SUBTRACT; |
-const int FUNC_SUBTRACT = RenderingContextBase.FUNC_SUBTRACT; |
-const int GENERATE_MIPMAP_HINT = RenderingContextBase.GENERATE_MIPMAP_HINT; |
-const int GEQUAL = RenderingContextBase.GEQUAL; |
-const int GREATER = RenderingContextBase.GREATER; |
-const int GREEN_BITS = RenderingContextBase.GREEN_BITS; |
+const int ACTIVE_ATTRIBUTES = RenderingContext.ACTIVE_ATTRIBUTES; |
+const int ACTIVE_TEXTURE = RenderingContext.ACTIVE_TEXTURE; |
+const int ACTIVE_UNIFORMS = RenderingContext.ACTIVE_UNIFORMS; |
+const int ALIASED_LINE_WIDTH_RANGE = RenderingContext.ALIASED_LINE_WIDTH_RANGE; |
+const int ALIASED_POINT_SIZE_RANGE = RenderingContext.ALIASED_POINT_SIZE_RANGE; |
+const int ALPHA = RenderingContext.ALPHA; |
+const int ALPHA_BITS = RenderingContext.ALPHA_BITS; |
+const int ALWAYS = RenderingContext.ALWAYS; |
+const int ARRAY_BUFFER = RenderingContext.ARRAY_BUFFER; |
+const int ARRAY_BUFFER_BINDING = RenderingContext.ARRAY_BUFFER_BINDING; |
+const int ATTACHED_SHADERS = RenderingContext.ATTACHED_SHADERS; |
+const int BACK = RenderingContext.BACK; |
+const int BLEND = RenderingContext.BLEND; |
+const int BLEND_COLOR = RenderingContext.BLEND_COLOR; |
+const int BLEND_DST_ALPHA = RenderingContext.BLEND_DST_ALPHA; |
+const int BLEND_DST_RGB = RenderingContext.BLEND_DST_RGB; |
+const int BLEND_EQUATION = RenderingContext.BLEND_EQUATION; |
+const int BLEND_EQUATION_ALPHA = RenderingContext.BLEND_EQUATION_ALPHA; |
+const int BLEND_EQUATION_RGB = RenderingContext.BLEND_EQUATION_RGB; |
+const int BLEND_SRC_ALPHA = RenderingContext.BLEND_SRC_ALPHA; |
+const int BLEND_SRC_RGB = RenderingContext.BLEND_SRC_RGB; |
+const int BLUE_BITS = RenderingContext.BLUE_BITS; |
+const int BOOL = RenderingContext.BOOL; |
+const int BOOL_VEC2 = RenderingContext.BOOL_VEC2; |
+const int BOOL_VEC3 = RenderingContext.BOOL_VEC3; |
+const int BOOL_VEC4 = RenderingContext.BOOL_VEC4; |
+const int BROWSER_DEFAULT_WEBGL = RenderingContext.BROWSER_DEFAULT_WEBGL; |
+const int BUFFER_SIZE = RenderingContext.BUFFER_SIZE; |
+const int BUFFER_USAGE = RenderingContext.BUFFER_USAGE; |
+const int BYTE = RenderingContext.BYTE; |
+const int CCW = RenderingContext.CCW; |
+const int CLAMP_TO_EDGE = RenderingContext.CLAMP_TO_EDGE; |
+const int COLOR_ATTACHMENT0 = RenderingContext.COLOR_ATTACHMENT0; |
+const int COLOR_BUFFER_BIT = RenderingContext.COLOR_BUFFER_BIT; |
+const int COLOR_CLEAR_VALUE = RenderingContext.COLOR_CLEAR_VALUE; |
+const int COLOR_WRITEMASK = RenderingContext.COLOR_WRITEMASK; |
+const int COMPILE_STATUS = RenderingContext.COMPILE_STATUS; |
+const int COMPRESSED_TEXTURE_FORMATS = RenderingContext.COMPRESSED_TEXTURE_FORMATS; |
+const int CONSTANT_ALPHA = RenderingContext.CONSTANT_ALPHA; |
+const int CONSTANT_COLOR = RenderingContext.CONSTANT_COLOR; |
+const int CONTEXT_LOST_WEBGL = RenderingContext.CONTEXT_LOST_WEBGL; |
+const int CULL_FACE = RenderingContext.CULL_FACE; |
+const int CULL_FACE_MODE = RenderingContext.CULL_FACE_MODE; |
+const int CURRENT_PROGRAM = RenderingContext.CURRENT_PROGRAM; |
+const int CURRENT_VERTEX_ATTRIB = RenderingContext.CURRENT_VERTEX_ATTRIB; |
+const int CW = RenderingContext.CW; |
+const int DECR = RenderingContext.DECR; |
+const int DECR_WRAP = RenderingContext.DECR_WRAP; |
+const int DELETE_STATUS = RenderingContext.DELETE_STATUS; |
+const int DEPTH_ATTACHMENT = RenderingContext.DEPTH_ATTACHMENT; |
+const int DEPTH_BITS = RenderingContext.DEPTH_BITS; |
+const int DEPTH_BUFFER_BIT = RenderingContext.DEPTH_BUFFER_BIT; |
+const int DEPTH_CLEAR_VALUE = RenderingContext.DEPTH_CLEAR_VALUE; |
+const int DEPTH_COMPONENT = RenderingContext.DEPTH_COMPONENT; |
+const int DEPTH_COMPONENT16 = RenderingContext.DEPTH_COMPONENT16; |
+const int DEPTH_FUNC = RenderingContext.DEPTH_FUNC; |
+const int DEPTH_RANGE = RenderingContext.DEPTH_RANGE; |
+const int DEPTH_STENCIL = RenderingContext.DEPTH_STENCIL; |
+const int DEPTH_STENCIL_ATTACHMENT = RenderingContext.DEPTH_STENCIL_ATTACHMENT; |
+const int DEPTH_TEST = RenderingContext.DEPTH_TEST; |
+const int DEPTH_WRITEMASK = RenderingContext.DEPTH_WRITEMASK; |
+const int DITHER = RenderingContext.DITHER; |
+const int DONT_CARE = RenderingContext.DONT_CARE; |
+const int DST_ALPHA = RenderingContext.DST_ALPHA; |
+const int DST_COLOR = RenderingContext.DST_COLOR; |
+const int DYNAMIC_DRAW = RenderingContext.DYNAMIC_DRAW; |
+const int ELEMENT_ARRAY_BUFFER = RenderingContext.ELEMENT_ARRAY_BUFFER; |
+const int ELEMENT_ARRAY_BUFFER_BINDING = RenderingContext.ELEMENT_ARRAY_BUFFER_BINDING; |
+const int EQUAL = RenderingContext.EQUAL; |
+const int FASTEST = RenderingContext.FASTEST; |
+const int FLOAT = RenderingContext.FLOAT; |
+const int FLOAT_MAT2 = RenderingContext.FLOAT_MAT2; |
+const int FLOAT_MAT3 = RenderingContext.FLOAT_MAT3; |
+const int FLOAT_MAT4 = RenderingContext.FLOAT_MAT4; |
+const int FLOAT_VEC2 = RenderingContext.FLOAT_VEC2; |
+const int FLOAT_VEC3 = RenderingContext.FLOAT_VEC3; |
+const int FLOAT_VEC4 = RenderingContext.FLOAT_VEC4; |
+const int FRAGMENT_SHADER = RenderingContext.FRAGMENT_SHADER; |
+const int FRAMEBUFFER = RenderingContext.FRAMEBUFFER; |
+const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME; |
+const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE; |
+const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE; |
+const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL; |
+const int FRAMEBUFFER_BINDING = RenderingContext.FRAMEBUFFER_BINDING; |
+const int FRAMEBUFFER_COMPLETE = RenderingContext.FRAMEBUFFER_COMPLETE; |
+const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = RenderingContext.FRAMEBUFFER_INCOMPLETE_ATTACHMENT; |
+const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = RenderingContext.FRAMEBUFFER_INCOMPLETE_DIMENSIONS; |
+const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = RenderingContext.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT; |
+const int FRAMEBUFFER_UNSUPPORTED = RenderingContext.FRAMEBUFFER_UNSUPPORTED; |
+const int FRONT = RenderingContext.FRONT; |
+const int FRONT_AND_BACK = RenderingContext.FRONT_AND_BACK; |
+const int FRONT_FACE = RenderingContext.FRONT_FACE; |
+const int FUNC_ADD = RenderingContext.FUNC_ADD; |
+const int FUNC_REVERSE_SUBTRACT = RenderingContext.FUNC_REVERSE_SUBTRACT; |
+const int FUNC_SUBTRACT = RenderingContext.FUNC_SUBTRACT; |
+const int GENERATE_MIPMAP_HINT = RenderingContext.GENERATE_MIPMAP_HINT; |
+const int GEQUAL = RenderingContext.GEQUAL; |
+const int GREATER = RenderingContext.GREATER; |
+const int GREEN_BITS = RenderingContext.GREEN_BITS; |
const int HALF_FLOAT_OES = OesTextureHalfFloat.HALF_FLOAT_OES; |
-const int HIGH_FLOAT = RenderingContextBase.HIGH_FLOAT; |
-const int HIGH_INT = RenderingContextBase.HIGH_INT; |
-const int INCR = RenderingContextBase.INCR; |
-const int INCR_WRAP = RenderingContextBase.INCR_WRAP; |
-const int INT = RenderingContextBase.INT; |
-const int INT_VEC2 = RenderingContextBase.INT_VEC2; |
-const int INT_VEC3 = RenderingContextBase.INT_VEC3; |
-const int INT_VEC4 = RenderingContextBase.INT_VEC4; |
-const int INVALID_ENUM = RenderingContextBase.INVALID_ENUM; |
-const int INVALID_FRAMEBUFFER_OPERATION = RenderingContextBase.INVALID_FRAMEBUFFER_OPERATION; |
-const int INVALID_OPERATION = RenderingContextBase.INVALID_OPERATION; |
-const int INVALID_VALUE = RenderingContextBase.INVALID_VALUE; |
-const int INVERT = RenderingContextBase.INVERT; |
-const int KEEP = RenderingContextBase.KEEP; |
-const int LEQUAL = RenderingContextBase.LEQUAL; |
-const int LESS = RenderingContextBase.LESS; |
-const int LINEAR = RenderingContextBase.LINEAR; |
-const int LINEAR_MIPMAP_LINEAR = RenderingContextBase.LINEAR_MIPMAP_LINEAR; |
-const int LINEAR_MIPMAP_NEAREST = RenderingContextBase.LINEAR_MIPMAP_NEAREST; |
-const int LINES = RenderingContextBase.LINES; |
-const int LINE_LOOP = RenderingContextBase.LINE_LOOP; |
-const int LINE_STRIP = RenderingContextBase.LINE_STRIP; |
-const int LINE_WIDTH = RenderingContextBase.LINE_WIDTH; |
-const int LINK_STATUS = RenderingContextBase.LINK_STATUS; |
-const int LOW_FLOAT = RenderingContextBase.LOW_FLOAT; |
-const int LOW_INT = RenderingContextBase.LOW_INT; |
-const int LUMINANCE = RenderingContextBase.LUMINANCE; |
-const int LUMINANCE_ALPHA = RenderingContextBase.LUMINANCE_ALPHA; |
-const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = RenderingContextBase.MAX_COMBINED_TEXTURE_IMAGE_UNITS; |
-const int MAX_CUBE_MAP_TEXTURE_SIZE = RenderingContextBase.MAX_CUBE_MAP_TEXTURE_SIZE; |
-const int MAX_FRAGMENT_UNIFORM_VECTORS = RenderingContextBase.MAX_FRAGMENT_UNIFORM_VECTORS; |
-const int MAX_RENDERBUFFER_SIZE = RenderingContextBase.MAX_RENDERBUFFER_SIZE; |
-const int MAX_TEXTURE_IMAGE_UNITS = RenderingContextBase.MAX_TEXTURE_IMAGE_UNITS; |
-const int MAX_TEXTURE_SIZE = RenderingContextBase.MAX_TEXTURE_SIZE; |
-const int MAX_VARYING_VECTORS = RenderingContextBase.MAX_VARYING_VECTORS; |
-const int MAX_VERTEX_ATTRIBS = RenderingContextBase.MAX_VERTEX_ATTRIBS; |
-const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = RenderingContextBase.MAX_VERTEX_TEXTURE_IMAGE_UNITS; |
-const int MAX_VERTEX_UNIFORM_VECTORS = RenderingContextBase.MAX_VERTEX_UNIFORM_VECTORS; |
-const int MAX_VIEWPORT_DIMS = RenderingContextBase.MAX_VIEWPORT_DIMS; |
-const int MEDIUM_FLOAT = RenderingContextBase.MEDIUM_FLOAT; |
-const int MEDIUM_INT = RenderingContextBase.MEDIUM_INT; |
-const int MIRRORED_REPEAT = RenderingContextBase.MIRRORED_REPEAT; |
-const int NEAREST = RenderingContextBase.NEAREST; |
-const int NEAREST_MIPMAP_LINEAR = RenderingContextBase.NEAREST_MIPMAP_LINEAR; |
-const int NEAREST_MIPMAP_NEAREST = RenderingContextBase.NEAREST_MIPMAP_NEAREST; |
-const int NEVER = RenderingContextBase.NEVER; |
-const int NICEST = RenderingContextBase.NICEST; |
-const int NONE = RenderingContextBase.NONE; |
-const int NOTEQUAL = RenderingContextBase.NOTEQUAL; |
-const int NO_ERROR = RenderingContextBase.NO_ERROR; |
-const int ONE = RenderingContextBase.ONE; |
-const int ONE_MINUS_CONSTANT_ALPHA = RenderingContextBase.ONE_MINUS_CONSTANT_ALPHA; |
-const int ONE_MINUS_CONSTANT_COLOR = RenderingContextBase.ONE_MINUS_CONSTANT_COLOR; |
-const int ONE_MINUS_DST_ALPHA = RenderingContextBase.ONE_MINUS_DST_ALPHA; |
-const int ONE_MINUS_DST_COLOR = RenderingContextBase.ONE_MINUS_DST_COLOR; |
-const int ONE_MINUS_SRC_ALPHA = RenderingContextBase.ONE_MINUS_SRC_ALPHA; |
-const int ONE_MINUS_SRC_COLOR = RenderingContextBase.ONE_MINUS_SRC_COLOR; |
-const int OUT_OF_MEMORY = RenderingContextBase.OUT_OF_MEMORY; |
-const int PACK_ALIGNMENT = RenderingContextBase.PACK_ALIGNMENT; |
-const int POINTS = RenderingContextBase.POINTS; |
-const int POLYGON_OFFSET_FACTOR = RenderingContextBase.POLYGON_OFFSET_FACTOR; |
-const int POLYGON_OFFSET_FILL = RenderingContextBase.POLYGON_OFFSET_FILL; |
-const int POLYGON_OFFSET_UNITS = RenderingContextBase.POLYGON_OFFSET_UNITS; |
-const int RED_BITS = RenderingContextBase.RED_BITS; |
-const int RENDERBUFFER = RenderingContextBase.RENDERBUFFER; |
-const int RENDERBUFFER_ALPHA_SIZE = RenderingContextBase.RENDERBUFFER_ALPHA_SIZE; |
-const int RENDERBUFFER_BINDING = RenderingContextBase.RENDERBUFFER_BINDING; |
-const int RENDERBUFFER_BLUE_SIZE = RenderingContextBase.RENDERBUFFER_BLUE_SIZE; |
-const int RENDERBUFFER_DEPTH_SIZE = RenderingContextBase.RENDERBUFFER_DEPTH_SIZE; |
-const int RENDERBUFFER_GREEN_SIZE = RenderingContextBase.RENDERBUFFER_GREEN_SIZE; |
-const int RENDERBUFFER_HEIGHT = RenderingContextBase.RENDERBUFFER_HEIGHT; |
-const int RENDERBUFFER_INTERNAL_FORMAT = RenderingContextBase.RENDERBUFFER_INTERNAL_FORMAT; |
-const int RENDERBUFFER_RED_SIZE = RenderingContextBase.RENDERBUFFER_RED_SIZE; |
-const int RENDERBUFFER_STENCIL_SIZE = RenderingContextBase.RENDERBUFFER_STENCIL_SIZE; |
-const int RENDERBUFFER_WIDTH = RenderingContextBase.RENDERBUFFER_WIDTH; |
-const int RENDERER = RenderingContextBase.RENDERER; |
-const int REPEAT = RenderingContextBase.REPEAT; |
-const int REPLACE = RenderingContextBase.REPLACE; |
-const int RGB = RenderingContextBase.RGB; |
-const int RGB565 = RenderingContextBase.RGB565; |
-const int RGB5_A1 = RenderingContextBase.RGB5_A1; |
-const int RGBA = RenderingContextBase.RGBA; |
-const int RGBA4 = RenderingContextBase.RGBA4; |
-const int SAMPLER_2D = RenderingContextBase.SAMPLER_2D; |
-const int SAMPLER_CUBE = RenderingContextBase.SAMPLER_CUBE; |
-const int SAMPLES = RenderingContextBase.SAMPLES; |
-const int SAMPLE_ALPHA_TO_COVERAGE = RenderingContextBase.SAMPLE_ALPHA_TO_COVERAGE; |
-const int SAMPLE_BUFFERS = RenderingContextBase.SAMPLE_BUFFERS; |
-const int SAMPLE_COVERAGE = RenderingContextBase.SAMPLE_COVERAGE; |
-const int SAMPLE_COVERAGE_INVERT = RenderingContextBase.SAMPLE_COVERAGE_INVERT; |
-const int SAMPLE_COVERAGE_VALUE = RenderingContextBase.SAMPLE_COVERAGE_VALUE; |
-const int SCISSOR_BOX = RenderingContextBase.SCISSOR_BOX; |
-const int SCISSOR_TEST = RenderingContextBase.SCISSOR_TEST; |
-const int SHADER_TYPE = RenderingContextBase.SHADER_TYPE; |
-const int SHADING_LANGUAGE_VERSION = RenderingContextBase.SHADING_LANGUAGE_VERSION; |
-const int SHORT = RenderingContextBase.SHORT; |
-const int SRC_ALPHA = RenderingContextBase.SRC_ALPHA; |
-const int SRC_ALPHA_SATURATE = RenderingContextBase.SRC_ALPHA_SATURATE; |
-const int SRC_COLOR = RenderingContextBase.SRC_COLOR; |
-const int STATIC_DRAW = RenderingContextBase.STATIC_DRAW; |
-const int STENCIL_ATTACHMENT = RenderingContextBase.STENCIL_ATTACHMENT; |
-const int STENCIL_BACK_FAIL = RenderingContextBase.STENCIL_BACK_FAIL; |
-const int STENCIL_BACK_FUNC = RenderingContextBase.STENCIL_BACK_FUNC; |
-const int STENCIL_BACK_PASS_DEPTH_FAIL = RenderingContextBase.STENCIL_BACK_PASS_DEPTH_FAIL; |
-const int STENCIL_BACK_PASS_DEPTH_PASS = RenderingContextBase.STENCIL_BACK_PASS_DEPTH_PASS; |
-const int STENCIL_BACK_REF = RenderingContextBase.STENCIL_BACK_REF; |
-const int STENCIL_BACK_VALUE_MASK = RenderingContextBase.STENCIL_BACK_VALUE_MASK; |
-const int STENCIL_BACK_WRITEMASK = RenderingContextBase.STENCIL_BACK_WRITEMASK; |
-const int STENCIL_BITS = RenderingContextBase.STENCIL_BITS; |
-const int STENCIL_BUFFER_BIT = RenderingContextBase.STENCIL_BUFFER_BIT; |
-const int STENCIL_CLEAR_VALUE = RenderingContextBase.STENCIL_CLEAR_VALUE; |
-const int STENCIL_FAIL = RenderingContextBase.STENCIL_FAIL; |
-const int STENCIL_FUNC = RenderingContextBase.STENCIL_FUNC; |
-const int STENCIL_INDEX = RenderingContextBase.STENCIL_INDEX; |
-const int STENCIL_INDEX8 = RenderingContextBase.STENCIL_INDEX8; |
-const int STENCIL_PASS_DEPTH_FAIL = RenderingContextBase.STENCIL_PASS_DEPTH_FAIL; |
-const int STENCIL_PASS_DEPTH_PASS = RenderingContextBase.STENCIL_PASS_DEPTH_PASS; |
-const int STENCIL_REF = RenderingContextBase.STENCIL_REF; |
-const int STENCIL_TEST = RenderingContextBase.STENCIL_TEST; |
-const int STENCIL_VALUE_MASK = RenderingContextBase.STENCIL_VALUE_MASK; |
-const int STENCIL_WRITEMASK = RenderingContextBase.STENCIL_WRITEMASK; |
-const int STREAM_DRAW = RenderingContextBase.STREAM_DRAW; |
-const int SUBPIXEL_BITS = RenderingContextBase.SUBPIXEL_BITS; |
-const int TEXTURE = RenderingContextBase.TEXTURE; |
-const int TEXTURE0 = RenderingContextBase.TEXTURE0; |
-const int TEXTURE1 = RenderingContextBase.TEXTURE1; |
-const int TEXTURE10 = RenderingContextBase.TEXTURE10; |
-const int TEXTURE11 = RenderingContextBase.TEXTURE11; |
-const int TEXTURE12 = RenderingContextBase.TEXTURE12; |
-const int TEXTURE13 = RenderingContextBase.TEXTURE13; |
-const int TEXTURE14 = RenderingContextBase.TEXTURE14; |
-const int TEXTURE15 = RenderingContextBase.TEXTURE15; |
-const int TEXTURE16 = RenderingContextBase.TEXTURE16; |
-const int TEXTURE17 = RenderingContextBase.TEXTURE17; |
-const int TEXTURE18 = RenderingContextBase.TEXTURE18; |
-const int TEXTURE19 = RenderingContextBase.TEXTURE19; |
-const int TEXTURE2 = RenderingContextBase.TEXTURE2; |
-const int TEXTURE20 = RenderingContextBase.TEXTURE20; |
-const int TEXTURE21 = RenderingContextBase.TEXTURE21; |
-const int TEXTURE22 = RenderingContextBase.TEXTURE22; |
-const int TEXTURE23 = RenderingContextBase.TEXTURE23; |
-const int TEXTURE24 = RenderingContextBase.TEXTURE24; |
-const int TEXTURE25 = RenderingContextBase.TEXTURE25; |
-const int TEXTURE26 = RenderingContextBase.TEXTURE26; |
-const int TEXTURE27 = RenderingContextBase.TEXTURE27; |
-const int TEXTURE28 = RenderingContextBase.TEXTURE28; |
-const int TEXTURE29 = RenderingContextBase.TEXTURE29; |
-const int TEXTURE3 = RenderingContextBase.TEXTURE3; |
-const int TEXTURE30 = RenderingContextBase.TEXTURE30; |
-const int TEXTURE31 = RenderingContextBase.TEXTURE31; |
-const int TEXTURE4 = RenderingContextBase.TEXTURE4; |
-const int TEXTURE5 = RenderingContextBase.TEXTURE5; |
-const int TEXTURE6 = RenderingContextBase.TEXTURE6; |
-const int TEXTURE7 = RenderingContextBase.TEXTURE7; |
-const int TEXTURE8 = RenderingContextBase.TEXTURE8; |
-const int TEXTURE9 = RenderingContextBase.TEXTURE9; |
-const int TEXTURE_2D = RenderingContextBase.TEXTURE_2D; |
-const int TEXTURE_BINDING_2D = RenderingContextBase.TEXTURE_BINDING_2D; |
-const int TEXTURE_BINDING_CUBE_MAP = RenderingContextBase.TEXTURE_BINDING_CUBE_MAP; |
-const int TEXTURE_CUBE_MAP = RenderingContextBase.TEXTURE_CUBE_MAP; |
-const int TEXTURE_CUBE_MAP_NEGATIVE_X = RenderingContextBase.TEXTURE_CUBE_MAP_NEGATIVE_X; |
-const int TEXTURE_CUBE_MAP_NEGATIVE_Y = RenderingContextBase.TEXTURE_CUBE_MAP_NEGATIVE_Y; |
-const int TEXTURE_CUBE_MAP_NEGATIVE_Z = RenderingContextBase.TEXTURE_CUBE_MAP_NEGATIVE_Z; |
-const int TEXTURE_CUBE_MAP_POSITIVE_X = RenderingContextBase.TEXTURE_CUBE_MAP_POSITIVE_X; |
-const int TEXTURE_CUBE_MAP_POSITIVE_Y = RenderingContextBase.TEXTURE_CUBE_MAP_POSITIVE_Y; |
-const int TEXTURE_CUBE_MAP_POSITIVE_Z = RenderingContextBase.TEXTURE_CUBE_MAP_POSITIVE_Z; |
-const int TEXTURE_MAG_FILTER = RenderingContextBase.TEXTURE_MAG_FILTER; |
-const int TEXTURE_MIN_FILTER = RenderingContextBase.TEXTURE_MIN_FILTER; |
-const int TEXTURE_WRAP_S = RenderingContextBase.TEXTURE_WRAP_S; |
-const int TEXTURE_WRAP_T = RenderingContextBase.TEXTURE_WRAP_T; |
-const int TRIANGLES = RenderingContextBase.TRIANGLES; |
-const int TRIANGLE_FAN = RenderingContextBase.TRIANGLE_FAN; |
-const int TRIANGLE_STRIP = RenderingContextBase.TRIANGLE_STRIP; |
-const int UNPACK_ALIGNMENT = RenderingContextBase.UNPACK_ALIGNMENT; |
-const int UNPACK_COLORSPACE_CONVERSION_WEBGL = RenderingContextBase.UNPACK_COLORSPACE_CONVERSION_WEBGL; |
-const int UNPACK_FLIP_Y_WEBGL = RenderingContextBase.UNPACK_FLIP_Y_WEBGL; |
-const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = RenderingContextBase.UNPACK_PREMULTIPLY_ALPHA_WEBGL; |
-const int UNSIGNED_BYTE = RenderingContextBase.UNSIGNED_BYTE; |
-const int UNSIGNED_INT = RenderingContextBase.UNSIGNED_INT; |
-const int UNSIGNED_SHORT = RenderingContextBase.UNSIGNED_SHORT; |
-const int UNSIGNED_SHORT_4_4_4_4 = RenderingContextBase.UNSIGNED_SHORT_4_4_4_4; |
-const int UNSIGNED_SHORT_5_5_5_1 = RenderingContextBase.UNSIGNED_SHORT_5_5_5_1; |
-const int UNSIGNED_SHORT_5_6_5 = RenderingContextBase.UNSIGNED_SHORT_5_6_5; |
-const int VALIDATE_STATUS = RenderingContextBase.VALIDATE_STATUS; |
-const int VENDOR = RenderingContextBase.VENDOR; |
-const int VERSION = RenderingContextBase.VERSION; |
-const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = RenderingContextBase.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING; |
-const int VERTEX_ATTRIB_ARRAY_ENABLED = RenderingContextBase.VERTEX_ATTRIB_ARRAY_ENABLED; |
-const int VERTEX_ATTRIB_ARRAY_NORMALIZED = RenderingContextBase.VERTEX_ATTRIB_ARRAY_NORMALIZED; |
-const int VERTEX_ATTRIB_ARRAY_POINTER = RenderingContextBase.VERTEX_ATTRIB_ARRAY_POINTER; |
-const int VERTEX_ATTRIB_ARRAY_SIZE = RenderingContextBase.VERTEX_ATTRIB_ARRAY_SIZE; |
-const int VERTEX_ATTRIB_ARRAY_STRIDE = RenderingContextBase.VERTEX_ATTRIB_ARRAY_STRIDE; |
-const int VERTEX_ATTRIB_ARRAY_TYPE = RenderingContextBase.VERTEX_ATTRIB_ARRAY_TYPE; |
-const int VERTEX_SHADER = RenderingContextBase.VERTEX_SHADER; |
-const int VIEWPORT = RenderingContextBase.VIEWPORT; |
-const int ZERO = RenderingContextBase.ZERO; |
+const int HIGH_FLOAT = RenderingContext.HIGH_FLOAT; |
+const int HIGH_INT = RenderingContext.HIGH_INT; |
+const int INCR = RenderingContext.INCR; |
+const int INCR_WRAP = RenderingContext.INCR_WRAP; |
+const int INT = RenderingContext.INT; |
+const int INT_VEC2 = RenderingContext.INT_VEC2; |
+const int INT_VEC3 = RenderingContext.INT_VEC3; |
+const int INT_VEC4 = RenderingContext.INT_VEC4; |
+const int INVALID_ENUM = RenderingContext.INVALID_ENUM; |
+const int INVALID_FRAMEBUFFER_OPERATION = RenderingContext.INVALID_FRAMEBUFFER_OPERATION; |
+const int INVALID_OPERATION = RenderingContext.INVALID_OPERATION; |
+const int INVALID_VALUE = RenderingContext.INVALID_VALUE; |
+const int INVERT = RenderingContext.INVERT; |
+const int KEEP = RenderingContext.KEEP; |
+const int LEQUAL = RenderingContext.LEQUAL; |
+const int LESS = RenderingContext.LESS; |
+const int LINEAR = RenderingContext.LINEAR; |
+const int LINEAR_MIPMAP_LINEAR = RenderingContext.LINEAR_MIPMAP_LINEAR; |
+const int LINEAR_MIPMAP_NEAREST = RenderingContext.LINEAR_MIPMAP_NEAREST; |
+const int LINES = RenderingContext.LINES; |
+const int LINE_LOOP = RenderingContext.LINE_LOOP; |
+const int LINE_STRIP = RenderingContext.LINE_STRIP; |
+const int LINE_WIDTH = RenderingContext.LINE_WIDTH; |
+const int LINK_STATUS = RenderingContext.LINK_STATUS; |
+const int LOW_FLOAT = RenderingContext.LOW_FLOAT; |
+const int LOW_INT = RenderingContext.LOW_INT; |
+const int LUMINANCE = RenderingContext.LUMINANCE; |
+const int LUMINANCE_ALPHA = RenderingContext.LUMINANCE_ALPHA; |
+const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_COMBINED_TEXTURE_IMAGE_UNITS; |
+const int MAX_CUBE_MAP_TEXTURE_SIZE = RenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE; |
+const int MAX_FRAGMENT_UNIFORM_VECTORS = RenderingContext.MAX_FRAGMENT_UNIFORM_VECTORS; |
+const int MAX_RENDERBUFFER_SIZE = RenderingContext.MAX_RENDERBUFFER_SIZE; |
+const int MAX_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_TEXTURE_IMAGE_UNITS; |
+const int MAX_TEXTURE_SIZE = RenderingContext.MAX_TEXTURE_SIZE; |
+const int MAX_VARYING_VECTORS = RenderingContext.MAX_VARYING_VECTORS; |
+const int MAX_VERTEX_ATTRIBS = RenderingContext.MAX_VERTEX_ATTRIBS; |
+const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_VERTEX_TEXTURE_IMAGE_UNITS; |
+const int MAX_VERTEX_UNIFORM_VECTORS = RenderingContext.MAX_VERTEX_UNIFORM_VECTORS; |
+const int MAX_VIEWPORT_DIMS = RenderingContext.MAX_VIEWPORT_DIMS; |
+const int MEDIUM_FLOAT = RenderingContext.MEDIUM_FLOAT; |
+const int MEDIUM_INT = RenderingContext.MEDIUM_INT; |
+const int MIRRORED_REPEAT = RenderingContext.MIRRORED_REPEAT; |
+const int NEAREST = RenderingContext.NEAREST; |
+const int NEAREST_MIPMAP_LINEAR = RenderingContext.NEAREST_MIPMAP_LINEAR; |
+const int NEAREST_MIPMAP_NEAREST = RenderingContext.NEAREST_MIPMAP_NEAREST; |
+const int NEVER = RenderingContext.NEVER; |
+const int NICEST = RenderingContext.NICEST; |
+const int NONE = RenderingContext.NONE; |
+const int NOTEQUAL = RenderingContext.NOTEQUAL; |
+const int NO_ERROR = RenderingContext.NO_ERROR; |
+const int ONE = RenderingContext.ONE; |
+const int ONE_MINUS_CONSTANT_ALPHA = RenderingContext.ONE_MINUS_CONSTANT_ALPHA; |
+const int ONE_MINUS_CONSTANT_COLOR = RenderingContext.ONE_MINUS_CONSTANT_COLOR; |
+const int ONE_MINUS_DST_ALPHA = RenderingContext.ONE_MINUS_DST_ALPHA; |
+const int ONE_MINUS_DST_COLOR = RenderingContext.ONE_MINUS_DST_COLOR; |
+const int ONE_MINUS_SRC_ALPHA = RenderingContext.ONE_MINUS_SRC_ALPHA; |
+const int ONE_MINUS_SRC_COLOR = RenderingContext.ONE_MINUS_SRC_COLOR; |
+const int OUT_OF_MEMORY = RenderingContext.OUT_OF_MEMORY; |
+const int PACK_ALIGNMENT = RenderingContext.PACK_ALIGNMENT; |
+const int POINTS = RenderingContext.POINTS; |
+const int POLYGON_OFFSET_FACTOR = RenderingContext.POLYGON_OFFSET_FACTOR; |
+const int POLYGON_OFFSET_FILL = RenderingContext.POLYGON_OFFSET_FILL; |
+const int POLYGON_OFFSET_UNITS = RenderingContext.POLYGON_OFFSET_UNITS; |
+const int RED_BITS = RenderingContext.RED_BITS; |
+const int RENDERBUFFER = RenderingContext.RENDERBUFFER; |
+const int RENDERBUFFER_ALPHA_SIZE = RenderingContext.RENDERBUFFER_ALPHA_SIZE; |
+const int RENDERBUFFER_BINDING = RenderingContext.RENDERBUFFER_BINDING; |
+const int RENDERBUFFER_BLUE_SIZE = RenderingContext.RENDERBUFFER_BLUE_SIZE; |
+const int RENDERBUFFER_DEPTH_SIZE = RenderingContext.RENDERBUFFER_DEPTH_SIZE; |
+const int RENDERBUFFER_GREEN_SIZE = RenderingContext.RENDERBUFFER_GREEN_SIZE; |
+const int RENDERBUFFER_HEIGHT = RenderingContext.RENDERBUFFER_HEIGHT; |
+const int RENDERBUFFER_INTERNAL_FORMAT = RenderingContext.RENDERBUFFER_INTERNAL_FORMAT; |
+const int RENDERBUFFER_RED_SIZE = RenderingContext.RENDERBUFFER_RED_SIZE; |
+const int RENDERBUFFER_STENCIL_SIZE = RenderingContext.RENDERBUFFER_STENCIL_SIZE; |
+const int RENDERBUFFER_WIDTH = RenderingContext.RENDERBUFFER_WIDTH; |
+const int RENDERER = RenderingContext.RENDERER; |
+const int REPEAT = RenderingContext.REPEAT; |
+const int REPLACE = RenderingContext.REPLACE; |
+const int RGB = RenderingContext.RGB; |
+const int RGB565 = RenderingContext.RGB565; |
+const int RGB5_A1 = RenderingContext.RGB5_A1; |
+const int RGBA = RenderingContext.RGBA; |
+const int RGBA4 = RenderingContext.RGBA4; |
+const int SAMPLER_2D = RenderingContext.SAMPLER_2D; |
+const int SAMPLER_CUBE = RenderingContext.SAMPLER_CUBE; |
+const int SAMPLES = RenderingContext.SAMPLES; |
+const int SAMPLE_ALPHA_TO_COVERAGE = RenderingContext.SAMPLE_ALPHA_TO_COVERAGE; |
+const int SAMPLE_BUFFERS = RenderingContext.SAMPLE_BUFFERS; |
+const int SAMPLE_COVERAGE = RenderingContext.SAMPLE_COVERAGE; |
+const int SAMPLE_COVERAGE_INVERT = RenderingContext.SAMPLE_COVERAGE_INVERT; |
+const int SAMPLE_COVERAGE_VALUE = RenderingContext.SAMPLE_COVERAGE_VALUE; |
+const int SCISSOR_BOX = RenderingContext.SCISSOR_BOX; |
+const int SCISSOR_TEST = RenderingContext.SCISSOR_TEST; |
+const int SHADER_TYPE = RenderingContext.SHADER_TYPE; |
+const int SHADING_LANGUAGE_VERSION = RenderingContext.SHADING_LANGUAGE_VERSION; |
+const int SHORT = RenderingContext.SHORT; |
+const int SRC_ALPHA = RenderingContext.SRC_ALPHA; |
+const int SRC_ALPHA_SATURATE = RenderingContext.SRC_ALPHA_SATURATE; |
+const int SRC_COLOR = RenderingContext.SRC_COLOR; |
+const int STATIC_DRAW = RenderingContext.STATIC_DRAW; |
+const int STENCIL_ATTACHMENT = RenderingContext.STENCIL_ATTACHMENT; |
+const int STENCIL_BACK_FAIL = RenderingContext.STENCIL_BACK_FAIL; |
+const int STENCIL_BACK_FUNC = RenderingContext.STENCIL_BACK_FUNC; |
+const int STENCIL_BACK_PASS_DEPTH_FAIL = RenderingContext.STENCIL_BACK_PASS_DEPTH_FAIL; |
+const int STENCIL_BACK_PASS_DEPTH_PASS = RenderingContext.STENCIL_BACK_PASS_DEPTH_PASS; |
+const int STENCIL_BACK_REF = RenderingContext.STENCIL_BACK_REF; |
+const int STENCIL_BACK_VALUE_MASK = RenderingContext.STENCIL_BACK_VALUE_MASK; |
+const int STENCIL_BACK_WRITEMASK = RenderingContext.STENCIL_BACK_WRITEMASK; |
+const int STENCIL_BITS = RenderingContext.STENCIL_BITS; |
+const int STENCIL_BUFFER_BIT = RenderingContext.STENCIL_BUFFER_BIT; |
+const int STENCIL_CLEAR_VALUE = RenderingContext.STENCIL_CLEAR_VALUE; |
+const int STENCIL_FAIL = RenderingContext.STENCIL_FAIL; |
+const int STENCIL_FUNC = RenderingContext.STENCIL_FUNC; |
+const int STENCIL_INDEX = RenderingContext.STENCIL_INDEX; |
+const int STENCIL_INDEX8 = RenderingContext.STENCIL_INDEX8; |
+const int STENCIL_PASS_DEPTH_FAIL = RenderingContext.STENCIL_PASS_DEPTH_FAIL; |
+const int STENCIL_PASS_DEPTH_PASS = RenderingContext.STENCIL_PASS_DEPTH_PASS; |
+const int STENCIL_REF = RenderingContext.STENCIL_REF; |
+const int STENCIL_TEST = RenderingContext.STENCIL_TEST; |
+const int STENCIL_VALUE_MASK = RenderingContext.STENCIL_VALUE_MASK; |
+const int STENCIL_WRITEMASK = RenderingContext.STENCIL_WRITEMASK; |
+const int STREAM_DRAW = RenderingContext.STREAM_DRAW; |
+const int SUBPIXEL_BITS = RenderingContext.SUBPIXEL_BITS; |
+const int TEXTURE = RenderingContext.TEXTURE; |
+const int TEXTURE0 = RenderingContext.TEXTURE0; |
+const int TEXTURE1 = RenderingContext.TEXTURE1; |
+const int TEXTURE10 = RenderingContext.TEXTURE10; |
+const int TEXTURE11 = RenderingContext.TEXTURE11; |
+const int TEXTURE12 = RenderingContext.TEXTURE12; |
+const int TEXTURE13 = RenderingContext.TEXTURE13; |
+const int TEXTURE14 = RenderingContext.TEXTURE14; |
+const int TEXTURE15 = RenderingContext.TEXTURE15; |
+const int TEXTURE16 = RenderingContext.TEXTURE16; |
+const int TEXTURE17 = RenderingContext.TEXTURE17; |
+const int TEXTURE18 = RenderingContext.TEXTURE18; |
+const int TEXTURE19 = RenderingContext.TEXTURE19; |
+const int TEXTURE2 = RenderingContext.TEXTURE2; |
+const int TEXTURE20 = RenderingContext.TEXTURE20; |
+const int TEXTURE21 = RenderingContext.TEXTURE21; |
+const int TEXTURE22 = RenderingContext.TEXTURE22; |
+const int TEXTURE23 = RenderingContext.TEXTURE23; |
+const int TEXTURE24 = RenderingContext.TEXTURE24; |
+const int TEXTURE25 = RenderingContext.TEXTURE25; |
+const int TEXTURE26 = RenderingContext.TEXTURE26; |
+const int TEXTURE27 = RenderingContext.TEXTURE27; |
+const int TEXTURE28 = RenderingContext.TEXTURE28; |
+const int TEXTURE29 = RenderingContext.TEXTURE29; |
+const int TEXTURE3 = RenderingContext.TEXTURE3; |
+const int TEXTURE30 = RenderingContext.TEXTURE30; |
+const int TEXTURE31 = RenderingContext.TEXTURE31; |
+const int TEXTURE4 = RenderingContext.TEXTURE4; |
+const int TEXTURE5 = RenderingContext.TEXTURE5; |
+const int TEXTURE6 = RenderingContext.TEXTURE6; |
+const int TEXTURE7 = RenderingContext.TEXTURE7; |
+const int TEXTURE8 = RenderingContext.TEXTURE8; |
+const int TEXTURE9 = RenderingContext.TEXTURE9; |
+const int TEXTURE_2D = RenderingContext.TEXTURE_2D; |
+const int TEXTURE_BINDING_2D = RenderingContext.TEXTURE_BINDING_2D; |
+const int TEXTURE_BINDING_CUBE_MAP = RenderingContext.TEXTURE_BINDING_CUBE_MAP; |
+const int TEXTURE_CUBE_MAP = RenderingContext.TEXTURE_CUBE_MAP; |
+const int TEXTURE_CUBE_MAP_NEGATIVE_X = RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X; |
+const int TEXTURE_CUBE_MAP_NEGATIVE_Y = RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y; |
+const int TEXTURE_CUBE_MAP_NEGATIVE_Z = RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z; |
+const int TEXTURE_CUBE_MAP_POSITIVE_X = RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_X; |
+const int TEXTURE_CUBE_MAP_POSITIVE_Y = RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y; |
+const int TEXTURE_CUBE_MAP_POSITIVE_Z = RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z; |
+const int TEXTURE_MAG_FILTER = RenderingContext.TEXTURE_MAG_FILTER; |
+const int TEXTURE_MIN_FILTER = RenderingContext.TEXTURE_MIN_FILTER; |
+const int TEXTURE_WRAP_S = RenderingContext.TEXTURE_WRAP_S; |
+const int TEXTURE_WRAP_T = RenderingContext.TEXTURE_WRAP_T; |
+const int TRIANGLES = RenderingContext.TRIANGLES; |
+const int TRIANGLE_FAN = RenderingContext.TRIANGLE_FAN; |
+const int TRIANGLE_STRIP = RenderingContext.TRIANGLE_STRIP; |
+const int UNPACK_ALIGNMENT = RenderingContext.UNPACK_ALIGNMENT; |
+const int UNPACK_COLORSPACE_CONVERSION_WEBGL = RenderingContext.UNPACK_COLORSPACE_CONVERSION_WEBGL; |
+const int UNPACK_FLIP_Y_WEBGL = RenderingContext.UNPACK_FLIP_Y_WEBGL; |
+const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = RenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL; |
+const int UNSIGNED_BYTE = RenderingContext.UNSIGNED_BYTE; |
+const int UNSIGNED_INT = RenderingContext.UNSIGNED_INT; |
+const int UNSIGNED_SHORT = RenderingContext.UNSIGNED_SHORT; |
+const int UNSIGNED_SHORT_4_4_4_4 = RenderingContext.UNSIGNED_SHORT_4_4_4_4; |
+const int UNSIGNED_SHORT_5_5_5_1 = RenderingContext.UNSIGNED_SHORT_5_5_5_1; |
+const int UNSIGNED_SHORT_5_6_5 = RenderingContext.UNSIGNED_SHORT_5_6_5; |
+const int VALIDATE_STATUS = RenderingContext.VALIDATE_STATUS; |
+const int VENDOR = RenderingContext.VENDOR; |
+const int VERSION = RenderingContext.VERSION; |
+const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = RenderingContext.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING; |
+const int VERTEX_ATTRIB_ARRAY_ENABLED = RenderingContext.VERTEX_ATTRIB_ARRAY_ENABLED; |
+const int VERTEX_ATTRIB_ARRAY_NORMALIZED = RenderingContext.VERTEX_ATTRIB_ARRAY_NORMALIZED; |
+const int VERTEX_ATTRIB_ARRAY_POINTER = RenderingContext.VERTEX_ATTRIB_ARRAY_POINTER; |
+const int VERTEX_ATTRIB_ARRAY_SIZE = RenderingContext.VERTEX_ATTRIB_ARRAY_SIZE; |
+const int VERTEX_ATTRIB_ARRAY_STRIDE = RenderingContext.VERTEX_ATTRIB_ARRAY_STRIDE; |
+const int VERTEX_ATTRIB_ARRAY_TYPE = RenderingContext.VERTEX_ATTRIB_ARRAY_TYPE; |
+const int VERTEX_SHADER = RenderingContext.VERTEX_SHADER; |
+const int VIEWPORT = RenderingContext.VIEWPORT; |
+const int ZERO = RenderingContext.ZERO; |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
// BSD-style license that can be found in the LICENSE file. |
@@ -1069,2810 +1069,2201 @@ class RenderingContext extends Interceptor implements CanvasRenderingContext { |
/// Checks if this type is supported on the current platform. |
static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)'); |
- // From WebGLRenderingContextBase |
+ @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES') |
+ @DocsEditable() |
+ static const int ACTIVE_ATTRIBUTES = 0x8B89; |
- @DomName('WebGLRenderingContext.canvas') |
+ @DomName('WebGLRenderingContext.ACTIVE_TEXTURE') |
@DocsEditable() |
- @Experimental() // untriaged |
- final CanvasElement canvas; |
+ static const int ACTIVE_TEXTURE = 0x84E0; |
- @DomName('WebGLRenderingContext.drawingBufferHeight') |
+ @DomName('WebGLRenderingContext.ACTIVE_UNIFORMS') |
@DocsEditable() |
- final int drawingBufferHeight; |
+ static const int ACTIVE_UNIFORMS = 0x8B86; |
- @DomName('WebGLRenderingContext.drawingBufferWidth') |
+ @DomName('WebGLRenderingContext.ALIASED_LINE_WIDTH_RANGE') |
@DocsEditable() |
- final int drawingBufferWidth; |
+ static const int ALIASED_LINE_WIDTH_RANGE = 0x846E; |
- @DomName('WebGLRenderingContext.activeTexture') |
+ @DomName('WebGLRenderingContext.ALIASED_POINT_SIZE_RANGE') |
@DocsEditable() |
- void activeTexture(int texture) native; |
+ static const int ALIASED_POINT_SIZE_RANGE = 0x846D; |
- @DomName('WebGLRenderingContext.attachShader') |
+ @DomName('WebGLRenderingContext.ALPHA') |
@DocsEditable() |
- void attachShader(Program program, Shader shader) native; |
+ static const int ALPHA = 0x1906; |
- @DomName('WebGLRenderingContext.bindAttribLocation') |
+ @DomName('WebGLRenderingContext.ALPHA_BITS') |
@DocsEditable() |
- void bindAttribLocation(Program program, int index, String name) native; |
+ static const int ALPHA_BITS = 0x0D55; |
- @DomName('WebGLRenderingContext.bindBuffer') |
+ @DomName('WebGLRenderingContext.ALWAYS') |
@DocsEditable() |
- void bindBuffer(int target, Buffer buffer) native; |
+ static const int ALWAYS = 0x0207; |
- @DomName('WebGLRenderingContext.bindFramebuffer') |
+ @DomName('WebGLRenderingContext.ARRAY_BUFFER') |
@DocsEditable() |
- void bindFramebuffer(int target, Framebuffer framebuffer) native; |
+ static const int ARRAY_BUFFER = 0x8892; |
- @DomName('WebGLRenderingContext.bindRenderbuffer') |
+ @DomName('WebGLRenderingContext.ARRAY_BUFFER_BINDING') |
@DocsEditable() |
- void bindRenderbuffer(int target, Renderbuffer renderbuffer) native; |
+ static const int ARRAY_BUFFER_BINDING = 0x8894; |
- @DomName('WebGLRenderingContext.bindTexture') |
+ @DomName('WebGLRenderingContext.ATTACHED_SHADERS') |
@DocsEditable() |
- void bindTexture(int target, Texture texture) native; |
+ static const int ATTACHED_SHADERS = 0x8B85; |
- @DomName('WebGLRenderingContext.blendColor') |
+ @DomName('WebGLRenderingContext.BACK') |
@DocsEditable() |
- void blendColor(num red, num green, num blue, num alpha) native; |
+ static const int BACK = 0x0405; |
- @DomName('WebGLRenderingContext.blendEquation') |
+ @DomName('WebGLRenderingContext.BLEND') |
@DocsEditable() |
- void blendEquation(int mode) native; |
+ static const int BLEND = 0x0BE2; |
- @DomName('WebGLRenderingContext.blendEquationSeparate') |
+ @DomName('WebGLRenderingContext.BLEND_COLOR') |
@DocsEditable() |
- void blendEquationSeparate(int modeRGB, int modeAlpha) native; |
+ static const int BLEND_COLOR = 0x8005; |
- @DomName('WebGLRenderingContext.blendFunc') |
+ @DomName('WebGLRenderingContext.BLEND_DST_ALPHA') |
@DocsEditable() |
- void blendFunc(int sfactor, int dfactor) native; |
+ static const int BLEND_DST_ALPHA = 0x80CA; |
- @DomName('WebGLRenderingContext.blendFuncSeparate') |
+ @DomName('WebGLRenderingContext.BLEND_DST_RGB') |
@DocsEditable() |
- void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) native; |
+ static const int BLEND_DST_RGB = 0x80C8; |
- @JSName('bufferData') |
- /** |
- * Buffers the specified data. |
- * |
- * The [bufferData] method is provided for WebGL API compatibility reasons, but |
- * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] |
- * depending on your purposes. |
- */ |
- @DomName('WebGLRenderingContext.bufferData') |
+ @DomName('WebGLRenderingContext.BLEND_EQUATION') |
@DocsEditable() |
- void bufferByteData(int target, ByteBuffer data, int usage) native; |
+ static const int BLEND_EQUATION = 0x8009; |
- /** |
- * Buffers the specified data. |
- * |
- * The [bufferData] method is provided for WebGL API compatibility reasons, but |
- * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] |
- * depending on your purposes. |
- */ |
- @DomName('WebGLRenderingContext.bufferData') |
+ @DomName('WebGLRenderingContext.BLEND_EQUATION_ALPHA') |
@DocsEditable() |
- void bufferData(int target, data_OR_size, int usage) native; |
+ static const int BLEND_EQUATION_ALPHA = 0x883D; |
- @JSName('bufferData') |
- /** |
- * Buffers the specified data. |
- * |
- * The [bufferData] method is provided for WebGL API compatibility reasons, but |
- * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] |
- * depending on your purposes. |
- */ |
- @DomName('WebGLRenderingContext.bufferData') |
+ @DomName('WebGLRenderingContext.BLEND_EQUATION_RGB') |
@DocsEditable() |
- void bufferDataTyped(int target, TypedData data, int usage) native; |
+ static const int BLEND_EQUATION_RGB = 0x8009; |
- @JSName('bufferSubData') |
- /** |
- * Buffers the specified subset of data. |
- * |
- * The [bufferSubData] method is provided for WebGL API compatibility reasons, but |
- * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByteData] |
- * depending on your purposes. |
- */ |
- @DomName('WebGLRenderingContext.bufferSubData') |
+ @DomName('WebGLRenderingContext.BLEND_SRC_ALPHA') |
@DocsEditable() |
- void bufferSubByteData(int target, int offset, ByteBuffer data) native; |
+ static const int BLEND_SRC_ALPHA = 0x80CB; |
- /** |
- * Buffers the specified subset of data. |
- * |
- * The [bufferSubData] method is provided for WebGL API compatibility reasons, but |
- * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByteData] |
- * depending on your purposes. |
- */ |
- @DomName('WebGLRenderingContext.bufferSubData') |
+ @DomName('WebGLRenderingContext.BLEND_SRC_RGB') |
@DocsEditable() |
- void bufferSubData(int target, int offset, data) native; |
+ static const int BLEND_SRC_RGB = 0x80C9; |
- @JSName('bufferSubData') |
- /** |
- * Buffers the specified subset of data. |
- * |
- * The [bufferSubData] method is provided for WebGL API compatibility reasons, but |
- * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByteData] |
- * depending on your purposes. |
- */ |
- @DomName('WebGLRenderingContext.bufferSubData') |
+ @DomName('WebGLRenderingContext.BLUE_BITS') |
@DocsEditable() |
- void bufferSubDataTyped(int target, int offset, TypedData data) native; |
+ static const int BLUE_BITS = 0x0D54; |
- @DomName('WebGLRenderingContext.checkFramebufferStatus') |
+ @DomName('WebGLRenderingContext.BOOL') |
@DocsEditable() |
- int checkFramebufferStatus(int target) native; |
+ static const int BOOL = 0x8B56; |
- @DomName('WebGLRenderingContext.clear') |
+ @DomName('WebGLRenderingContext.BOOL_VEC2') |
@DocsEditable() |
- void clear(int mask) native; |
+ static const int BOOL_VEC2 = 0x8B57; |
- @DomName('WebGLRenderingContext.clearColor') |
+ @DomName('WebGLRenderingContext.BOOL_VEC3') |
@DocsEditable() |
- void clearColor(num red, num green, num blue, num alpha) native; |
+ static const int BOOL_VEC3 = 0x8B58; |
- @DomName('WebGLRenderingContext.clearDepth') |
+ @DomName('WebGLRenderingContext.BOOL_VEC4') |
@DocsEditable() |
- void clearDepth(num depth) native; |
+ static const int BOOL_VEC4 = 0x8B59; |
- @DomName('WebGLRenderingContext.clearStencil') |
+ @DomName('WebGLRenderingContext.BROWSER_DEFAULT_WEBGL') |
@DocsEditable() |
- void clearStencil(int s) native; |
+ static const int BROWSER_DEFAULT_WEBGL = 0x9244; |
- @DomName('WebGLRenderingContext.colorMask') |
+ @DomName('WebGLRenderingContext.BUFFER_SIZE') |
@DocsEditable() |
- void colorMask(bool red, bool green, bool blue, bool alpha) native; |
+ static const int BUFFER_SIZE = 0x8764; |
- @DomName('WebGLRenderingContext.compileShader') |
+ @DomName('WebGLRenderingContext.BUFFER_USAGE') |
@DocsEditable() |
- void compileShader(Shader shader) native; |
+ static const int BUFFER_USAGE = 0x8765; |
- @DomName('WebGLRenderingContext.compressedTexImage2D') |
+ @DomName('WebGLRenderingContext.BYTE') |
@DocsEditable() |
- void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, TypedData data) native; |
+ static const int BYTE = 0x1400; |
- @DomName('WebGLRenderingContext.compressedTexSubImage2D') |
+ @DomName('WebGLRenderingContext.CCW') |
@DocsEditable() |
- void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, TypedData data) native; |
+ static const int CCW = 0x0901; |
- @DomName('WebGLRenderingContext.copyTexImage2D') |
+ @DomName('WebGLRenderingContext.CLAMP_TO_EDGE') |
@DocsEditable() |
- void copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border) native; |
+ static const int CLAMP_TO_EDGE = 0x812F; |
- @DomName('WebGLRenderingContext.copyTexSubImage2D') |
+ @DomName('WebGLRenderingContext.COLOR_ATTACHMENT0') |
@DocsEditable() |
- void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native; |
+ static const int COLOR_ATTACHMENT0 = 0x8CE0; |
- @DomName('WebGLRenderingContext.createBuffer') |
+ @DomName('WebGLRenderingContext.COLOR_BUFFER_BIT') |
@DocsEditable() |
- Buffer createBuffer() native; |
+ static const int COLOR_BUFFER_BIT = 0x00004000; |
- @DomName('WebGLRenderingContext.createFramebuffer') |
+ @DomName('WebGLRenderingContext.COLOR_CLEAR_VALUE') |
@DocsEditable() |
- Framebuffer createFramebuffer() native; |
+ static const int COLOR_CLEAR_VALUE = 0x0C22; |
- @DomName('WebGLRenderingContext.createProgram') |
+ @DomName('WebGLRenderingContext.COLOR_WRITEMASK') |
@DocsEditable() |
- Program createProgram() native; |
+ static const int COLOR_WRITEMASK = 0x0C23; |
- @DomName('WebGLRenderingContext.createRenderbuffer') |
+ @DomName('WebGLRenderingContext.COMPILE_STATUS') |
@DocsEditable() |
- Renderbuffer createRenderbuffer() native; |
+ static const int COMPILE_STATUS = 0x8B81; |
- @DomName('WebGLRenderingContext.createShader') |
+ @DomName('WebGLRenderingContext.COMPRESSED_TEXTURE_FORMATS') |
@DocsEditable() |
- Shader createShader(int type) native; |
+ static const int COMPRESSED_TEXTURE_FORMATS = 0x86A3; |
- @DomName('WebGLRenderingContext.createTexture') |
+ @DomName('WebGLRenderingContext.CONSTANT_ALPHA') |
@DocsEditable() |
- Texture createTexture() native; |
+ static const int CONSTANT_ALPHA = 0x8003; |
- @DomName('WebGLRenderingContext.cullFace') |
+ @DomName('WebGLRenderingContext.CONSTANT_COLOR') |
@DocsEditable() |
- void cullFace(int mode) native; |
+ static const int CONSTANT_COLOR = 0x8001; |
- @DomName('WebGLRenderingContext.deleteBuffer') |
+ @DomName('WebGLRenderingContext.CONTEXT_LOST_WEBGL') |
@DocsEditable() |
- void deleteBuffer(Buffer buffer) native; |
+ static const int CONTEXT_LOST_WEBGL = 0x9242; |
- @DomName('WebGLRenderingContext.deleteFramebuffer') |
+ @DomName('WebGLRenderingContext.CULL_FACE') |
@DocsEditable() |
- void deleteFramebuffer(Framebuffer framebuffer) native; |
+ static const int CULL_FACE = 0x0B44; |
- @DomName('WebGLRenderingContext.deleteProgram') |
+ @DomName('WebGLRenderingContext.CULL_FACE_MODE') |
@DocsEditable() |
- void deleteProgram(Program program) native; |
+ static const int CULL_FACE_MODE = 0x0B45; |
- @DomName('WebGLRenderingContext.deleteRenderbuffer') |
+ @DomName('WebGLRenderingContext.CURRENT_PROGRAM') |
@DocsEditable() |
- void deleteRenderbuffer(Renderbuffer renderbuffer) native; |
+ static const int CURRENT_PROGRAM = 0x8B8D; |
- @DomName('WebGLRenderingContext.deleteShader') |
+ @DomName('WebGLRenderingContext.CURRENT_VERTEX_ATTRIB') |
@DocsEditable() |
- void deleteShader(Shader shader) native; |
+ static const int CURRENT_VERTEX_ATTRIB = 0x8626; |
- @DomName('WebGLRenderingContext.deleteTexture') |
+ @DomName('WebGLRenderingContext.CW') |
@DocsEditable() |
- void deleteTexture(Texture texture) native; |
+ static const int CW = 0x0900; |
- @DomName('WebGLRenderingContext.depthFunc') |
+ @DomName('WebGLRenderingContext.DECR') |
@DocsEditable() |
- void depthFunc(int func) native; |
+ static const int DECR = 0x1E03; |
- @DomName('WebGLRenderingContext.depthMask') |
+ @DomName('WebGLRenderingContext.DECR_WRAP') |
@DocsEditable() |
- void depthMask(bool flag) native; |
+ static const int DECR_WRAP = 0x8508; |
- @DomName('WebGLRenderingContext.depthRange') |
+ @DomName('WebGLRenderingContext.DELETE_STATUS') |
@DocsEditable() |
- void depthRange(num zNear, num zFar) native; |
+ static const int DELETE_STATUS = 0x8B80; |
- @DomName('WebGLRenderingContext.detachShader') |
+ @DomName('WebGLRenderingContext.DEPTH_ATTACHMENT') |
@DocsEditable() |
- void detachShader(Program program, Shader shader) native; |
+ static const int DEPTH_ATTACHMENT = 0x8D00; |
- @DomName('WebGLRenderingContext.disable') |
+ @DomName('WebGLRenderingContext.DEPTH_BITS') |
@DocsEditable() |
- void disable(int cap) native; |
+ static const int DEPTH_BITS = 0x0D56; |
- @DomName('WebGLRenderingContext.disableVertexAttribArray') |
+ @DomName('WebGLRenderingContext.DEPTH_BUFFER_BIT') |
@DocsEditable() |
- void disableVertexAttribArray(int index) native; |
+ static const int DEPTH_BUFFER_BIT = 0x00000100; |
- @DomName('WebGLRenderingContext.drawArrays') |
+ @DomName('WebGLRenderingContext.DEPTH_CLEAR_VALUE') |
@DocsEditable() |
- void drawArrays(int mode, int first, int count) native; |
+ static const int DEPTH_CLEAR_VALUE = 0x0B73; |
- @DomName('WebGLRenderingContext.drawElements') |
+ @DomName('WebGLRenderingContext.DEPTH_COMPONENT') |
@DocsEditable() |
- void drawElements(int mode, int count, int type, int offset) native; |
+ static const int DEPTH_COMPONENT = 0x1902; |
- @DomName('WebGLRenderingContext.enable') |
+ @DomName('WebGLRenderingContext.DEPTH_COMPONENT16') |
@DocsEditable() |
- void enable(int cap) native; |
+ static const int DEPTH_COMPONENT16 = 0x81A5; |
- @DomName('WebGLRenderingContext.enableVertexAttribArray') |
+ @DomName('WebGLRenderingContext.DEPTH_FUNC') |
@DocsEditable() |
- void enableVertexAttribArray(int index) native; |
+ static const int DEPTH_FUNC = 0x0B74; |
- @DomName('WebGLRenderingContext.finish') |
+ @DomName('WebGLRenderingContext.DEPTH_RANGE') |
@DocsEditable() |
- void finish() native; |
+ static const int DEPTH_RANGE = 0x0B70; |
- @DomName('WebGLRenderingContext.flush') |
+ @DomName('WebGLRenderingContext.DEPTH_STENCIL') |
@DocsEditable() |
- void flush() native; |
+ static const int DEPTH_STENCIL = 0x84F9; |
- @DomName('WebGLRenderingContext.framebufferRenderbuffer') |
+ @DomName('WebGLRenderingContext.DEPTH_STENCIL_ATTACHMENT') |
@DocsEditable() |
- void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, Renderbuffer renderbuffer) native; |
+ static const int DEPTH_STENCIL_ATTACHMENT = 0x821A; |
- @DomName('WebGLRenderingContext.framebufferTexture2D') |
+ @DomName('WebGLRenderingContext.DEPTH_TEST') |
@DocsEditable() |
- void framebufferTexture2D(int target, int attachment, int textarget, Texture texture, int level) native; |
+ static const int DEPTH_TEST = 0x0B71; |
- @DomName('WebGLRenderingContext.frontFace') |
+ @DomName('WebGLRenderingContext.DEPTH_WRITEMASK') |
@DocsEditable() |
- void frontFace(int mode) native; |
+ static const int DEPTH_WRITEMASK = 0x0B72; |
- @DomName('WebGLRenderingContext.generateMipmap') |
+ @DomName('WebGLRenderingContext.DITHER') |
@DocsEditable() |
- void generateMipmap(int target) native; |
+ static const int DITHER = 0x0BD0; |
- @DomName('WebGLRenderingContext.getActiveAttrib') |
+ @DomName('WebGLRenderingContext.DONT_CARE') |
@DocsEditable() |
- ActiveInfo getActiveAttrib(Program program, int index) native; |
+ static const int DONT_CARE = 0x1100; |
- @DomName('WebGLRenderingContext.getActiveUniform') |
+ @DomName('WebGLRenderingContext.DST_ALPHA') |
@DocsEditable() |
- ActiveInfo getActiveUniform(Program program, int index) native; |
+ static const int DST_ALPHA = 0x0304; |
- @DomName('WebGLRenderingContext.getAttachedShaders') |
+ @DomName('WebGLRenderingContext.DST_COLOR') |
@DocsEditable() |
- void getAttachedShaders(Program program) native; |
+ static const int DST_COLOR = 0x0306; |
- @DomName('WebGLRenderingContext.getAttribLocation') |
+ @DomName('WebGLRenderingContext.DYNAMIC_DRAW') |
@DocsEditable() |
- int getAttribLocation(Program program, String name) native; |
+ static const int DYNAMIC_DRAW = 0x88E8; |
- @DomName('WebGLRenderingContext.getBufferParameter') |
+ @DomName('WebGLRenderingContext.ELEMENT_ARRAY_BUFFER') |
@DocsEditable() |
- @Creates('int|Null') |
- @Returns('int|Null') |
- Object getBufferParameter(int target, int pname) native; |
+ static const int ELEMENT_ARRAY_BUFFER = 0x8893; |
- @DomName('WebGLRenderingContext.getContextAttributes') |
+ @DomName('WebGLRenderingContext.ELEMENT_ARRAY_BUFFER_BINDING') |
@DocsEditable() |
- @Creates('ContextAttributes|=Object') |
- ContextAttributes getContextAttributes() { |
- return convertNativeToDart_ContextAttributes(_getContextAttributes_1()); |
- } |
- @JSName('getContextAttributes') |
- @DomName('WebGLRenderingContext.getContextAttributes') |
+ static const int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; |
+ |
+ @DomName('WebGLRenderingContext.EQUAL') |
@DocsEditable() |
- @Creates('ContextAttributes|=Object') |
- _getContextAttributes_1() native; |
+ static const int EQUAL = 0x0202; |
- @DomName('WebGLRenderingContext.getError') |
+ @DomName('WebGLRenderingContext.FASTEST') |
@DocsEditable() |
- int getError() native; |
+ static const int FASTEST = 0x1101; |
- @DomName('WebGLRenderingContext.getExtension') |
+ @DomName('WebGLRenderingContext.FLOAT') |
@DocsEditable() |
- Object getExtension(String name) native; |
+ static const int FLOAT = 0x1406; |
- @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter') |
+ @DomName('WebGLRenderingContext.FLOAT_MAT2') |
@DocsEditable() |
- @Creates('int|Renderbuffer|Texture|Null') |
- @Returns('int|Renderbuffer|Texture|Null') |
- Object getFramebufferAttachmentParameter(int target, int attachment, int pname) native; |
+ static const int FLOAT_MAT2 = 0x8B5A; |
- @DomName('WebGLRenderingContext.getParameter') |
+ @DomName('WebGLRenderingContext.FLOAT_MAT3') |
@DocsEditable() |
- @Creates('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List|NativeUint32List|Framebuffer|Renderbuffer|Texture') |
- @Returns('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List|NativeUint32List|Framebuffer|Renderbuffer|Texture') |
- Object getParameter(int pname) native; |
+ static const int FLOAT_MAT3 = 0x8B5B; |
- @DomName('WebGLRenderingContext.getProgramInfoLog') |
+ @DomName('WebGLRenderingContext.FLOAT_MAT4') |
@DocsEditable() |
- String getProgramInfoLog(Program program) native; |
+ static const int FLOAT_MAT4 = 0x8B5C; |
- @DomName('WebGLRenderingContext.getProgramParameter') |
+ @DomName('WebGLRenderingContext.FLOAT_VEC2') |
@DocsEditable() |
- @Creates('int|bool|Null') |
- @Returns('int|bool|Null') |
- Object getProgramParameter(Program program, int pname) native; |
+ static const int FLOAT_VEC2 = 0x8B50; |
- @DomName('WebGLRenderingContext.getRenderbufferParameter') |
+ @DomName('WebGLRenderingContext.FLOAT_VEC3') |
@DocsEditable() |
- @Creates('int|Null') |
- @Returns('int|Null') |
- Object getRenderbufferParameter(int target, int pname) native; |
+ static const int FLOAT_VEC3 = 0x8B51; |
- @DomName('WebGLRenderingContext.getShaderInfoLog') |
+ @DomName('WebGLRenderingContext.FLOAT_VEC4') |
@DocsEditable() |
- String getShaderInfoLog(Shader shader) native; |
+ static const int FLOAT_VEC4 = 0x8B52; |
- @DomName('WebGLRenderingContext.getShaderParameter') |
+ @DomName('WebGLRenderingContext.FRAGMENT_SHADER') |
@DocsEditable() |
- @Creates('int|bool|Null') |
- @Returns('int|bool|Null') |
- Object getShaderParameter(Shader shader, int pname) native; |
+ static const int FRAGMENT_SHADER = 0x8B30; |
- @DomName('WebGLRenderingContext.getShaderPrecisionFormat') |
+ @DomName('WebGLRenderingContext.FRAMEBUFFER') |
@DocsEditable() |
- ShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisiontype) native; |
+ static const int FRAMEBUFFER = 0x8D40; |
- @DomName('WebGLRenderingContext.getShaderSource') |
+ @DomName('WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME') |
@DocsEditable() |
- String getShaderSource(Shader shader) native; |
+ static const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; |
- @DomName('WebGLRenderingContext.getSupportedExtensions') |
+ @DomName('WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE') |
@DocsEditable() |
- List<String> getSupportedExtensions() native; |
+ static const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; |
- @DomName('WebGLRenderingContext.getTexParameter') |
+ @DomName('WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE') |
@DocsEditable() |
- @Creates('int|Null') |
- @Returns('int|Null') |
- Object getTexParameter(int target, int pname) native; |
+ static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; |
- @DomName('WebGLRenderingContext.getUniform') |
+ @DomName('WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL') |
@DocsEditable() |
- @Creates('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List|NativeUint32List') |
- @Returns('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List|NativeUint32List') |
- Object getUniform(Program program, UniformLocation location) native; |
+ static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; |
- @DomName('WebGLRenderingContext.getUniformLocation') |
+ @DomName('WebGLRenderingContext.FRAMEBUFFER_BINDING') |
@DocsEditable() |
- UniformLocation getUniformLocation(Program program, String name) native; |
+ static const int FRAMEBUFFER_BINDING = 0x8CA6; |
- @DomName('WebGLRenderingContext.getVertexAttrib') |
+ @DomName('WebGLRenderingContext.FRAMEBUFFER_COMPLETE') |
@DocsEditable() |
- @Creates('Null|num|bool|NativeFloat32List|Buffer') |
- @Returns('Null|num|bool|NativeFloat32List|Buffer') |
- Object getVertexAttrib(int index, int pname) native; |
+ static const int FRAMEBUFFER_COMPLETE = 0x8CD5; |
- @DomName('WebGLRenderingContext.getVertexAttribOffset') |
+ @DomName('WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_ATTACHMENT') |
@DocsEditable() |
- int getVertexAttribOffset(int index, int pname) native; |
+ static const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; |
- @DomName('WebGLRenderingContext.hint') |
+ @DomName('WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_DIMENSIONS') |
@DocsEditable() |
- void hint(int target, int mode) native; |
+ static const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9; |
- @DomName('WebGLRenderingContext.isBuffer') |
+ @DomName('WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT') |
@DocsEditable() |
- bool isBuffer(Buffer buffer) native; |
+ static const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; |
- @DomName('WebGLRenderingContext.isContextLost') |
+ @DomName('WebGLRenderingContext.FRAMEBUFFER_UNSUPPORTED') |
@DocsEditable() |
- bool isContextLost() native; |
+ static const int FRAMEBUFFER_UNSUPPORTED = 0x8CDD; |
- @DomName('WebGLRenderingContext.isEnabled') |
+ @DomName('WebGLRenderingContext.FRONT') |
@DocsEditable() |
- bool isEnabled(int cap) native; |
+ static const int FRONT = 0x0404; |
- @DomName('WebGLRenderingContext.isFramebuffer') |
+ @DomName('WebGLRenderingContext.FRONT_AND_BACK') |
@DocsEditable() |
- bool isFramebuffer(Framebuffer framebuffer) native; |
+ static const int FRONT_AND_BACK = 0x0408; |
- @DomName('WebGLRenderingContext.isProgram') |
+ @DomName('WebGLRenderingContext.FRONT_FACE') |
@DocsEditable() |
- bool isProgram(Program program) native; |
+ static const int FRONT_FACE = 0x0B46; |
- @DomName('WebGLRenderingContext.isRenderbuffer') |
+ @DomName('WebGLRenderingContext.FUNC_ADD') |
@DocsEditable() |
- bool isRenderbuffer(Renderbuffer renderbuffer) native; |
+ static const int FUNC_ADD = 0x8006; |
- @DomName('WebGLRenderingContext.isShader') |
+ @DomName('WebGLRenderingContext.FUNC_REVERSE_SUBTRACT') |
@DocsEditable() |
- bool isShader(Shader shader) native; |
+ static const int FUNC_REVERSE_SUBTRACT = 0x800B; |
- @DomName('WebGLRenderingContext.isTexture') |
+ @DomName('WebGLRenderingContext.FUNC_SUBTRACT') |
@DocsEditable() |
- bool isTexture(Texture texture) native; |
+ static const int FUNC_SUBTRACT = 0x800A; |
- @DomName('WebGLRenderingContext.lineWidth') |
+ @DomName('WebGLRenderingContext.GENERATE_MIPMAP_HINT') |
@DocsEditable() |
- void lineWidth(num width) native; |
+ static const int GENERATE_MIPMAP_HINT = 0x8192; |
- @DomName('WebGLRenderingContext.linkProgram') |
+ @DomName('WebGLRenderingContext.GEQUAL') |
@DocsEditable() |
- void linkProgram(Program program) native; |
+ static const int GEQUAL = 0x0206; |
- @DomName('WebGLRenderingContext.pixelStorei') |
+ @DomName('WebGLRenderingContext.GREATER') |
@DocsEditable() |
- void pixelStorei(int pname, int param) native; |
+ static const int GREATER = 0x0204; |
- @DomName('WebGLRenderingContext.polygonOffset') |
+ @DomName('WebGLRenderingContext.GREEN_BITS') |
@DocsEditable() |
- void polygonOffset(num factor, num units) native; |
+ static const int GREEN_BITS = 0x0D53; |
- @DomName('WebGLRenderingContext.readPixels') |
+ @DomName('WebGLRenderingContext.HIGH_FLOAT') |
@DocsEditable() |
- void readPixels(int x, int y, int width, int height, int format, int type, TypedData pixels) native; |
+ static const int HIGH_FLOAT = 0x8DF2; |
- @DomName('WebGLRenderingContext.renderbufferStorage') |
+ @DomName('WebGLRenderingContext.HIGH_INT') |
@DocsEditable() |
- void renderbufferStorage(int target, int internalformat, int width, int height) native; |
+ static const int HIGH_INT = 0x8DF5; |
- @DomName('WebGLRenderingContext.sampleCoverage') |
+ @DomName('WebGLRenderingContext.IMPLEMENTATION_COLOR_READ_FORMAT') |
@DocsEditable() |
- void sampleCoverage(num value, bool invert) native; |
+ @Experimental() // untriaged |
+ static const int IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B; |
- @DomName('WebGLRenderingContext.scissor') |
+ @DomName('WebGLRenderingContext.IMPLEMENTATION_COLOR_READ_TYPE') |
@DocsEditable() |
- void scissor(int x, int y, int width, int height) native; |
+ @Experimental() // untriaged |
+ static const int IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A; |
- @DomName('WebGLRenderingContext.shaderSource') |
+ @DomName('WebGLRenderingContext.INCR') |
@DocsEditable() |
- void shaderSource(Shader shader, String string) native; |
+ static const int INCR = 0x1E02; |
- @DomName('WebGLRenderingContext.stencilFunc') |
+ @DomName('WebGLRenderingContext.INCR_WRAP') |
@DocsEditable() |
- void stencilFunc(int func, int ref, int mask) native; |
+ static const int INCR_WRAP = 0x8507; |
- @DomName('WebGLRenderingContext.stencilFuncSeparate') |
+ @DomName('WebGLRenderingContext.INT') |
@DocsEditable() |
- void stencilFuncSeparate(int face, int func, int ref, int mask) native; |
+ static const int INT = 0x1404; |
- @DomName('WebGLRenderingContext.stencilMask') |
+ @DomName('WebGLRenderingContext.INT_VEC2') |
@DocsEditable() |
- void stencilMask(int mask) native; |
+ static const int INT_VEC2 = 0x8B53; |
- @DomName('WebGLRenderingContext.stencilMaskSeparate') |
+ @DomName('WebGLRenderingContext.INT_VEC3') |
@DocsEditable() |
- void stencilMaskSeparate(int face, int mask) native; |
+ static const int INT_VEC3 = 0x8B54; |
- @DomName('WebGLRenderingContext.stencilOp') |
+ @DomName('WebGLRenderingContext.INT_VEC4') |
@DocsEditable() |
- void stencilOp(int fail, int zfail, int zpass) native; |
+ static const int INT_VEC4 = 0x8B55; |
- @DomName('WebGLRenderingContext.stencilOpSeparate') |
+ @DomName('WebGLRenderingContext.INVALID_ENUM') |
@DocsEditable() |
- void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
+ static const int INVALID_ENUM = 0x0500; |
- /** |
- * Updates the currently bound texture to [data]. |
- * |
- * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
- * (or for more specificity, the more specialized [texImage2DImageData], |
- * [texImage2DCanvas], [texImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texImage2D') |
+ @DomName('WebGLRenderingContext.INVALID_FRAMEBUFFER_OPERATION') |
@DocsEditable() |
- 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]) { |
- if (pixels != null && type != null && format != null && (border_OR_canvas_OR_image_OR_pixels_OR_video is int)) { |
- _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); |
- return; |
- } |
- if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == null && pixels == null) { |
- var pixels_1 = convertDartToNative_ImageData(border_OR_canvas_OR_image_OR_pixels_OR_video); |
- _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_type, pixels_1); |
- return; |
- } |
- if ((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, border_OR_canvas_OR_image_OR_pixels_OR_video); |
- return; |
- } |
- if ((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, border_OR_canvas_OR_image_OR_pixels_OR_video); |
- return; |
- } |
- if ((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, border_OR_canvas_OR_image_OR_pixels_OR_video); |
- return; |
- } |
- throw new ArgumentError("Incorrect number or type of arguments"); |
- } |
- @JSName('texImage2D') |
- /** |
- * Updates the currently bound texture to [data]. |
- * |
- * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
- * (or for more specificity, the more specialized [texImage2DImageData], |
- * [texImage2DCanvas], [texImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texImage2D') |
+ static const int INVALID_FRAMEBUFFER_OPERATION = 0x0506; |
+ |
+ @DomName('WebGLRenderingContext.INVALID_OPERATION') |
@DocsEditable() |
- void _texImage2D_1(target, level, internalformat, width, height, int border, format, type, TypedData pixels) native; |
- @JSName('texImage2D') |
- /** |
- * Updates the currently bound texture to [data]. |
- * |
- * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
- * (or for more specificity, the more specialized [texImage2DImageData], |
- * [texImage2DCanvas], [texImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texImage2D') |
+ static const int INVALID_OPERATION = 0x0502; |
+ |
+ @DomName('WebGLRenderingContext.INVALID_VALUE') |
@DocsEditable() |
- void _texImage2D_2(target, level, internalformat, format, type, pixels) native; |
- @JSName('texImage2D') |
- /** |
- * Updates the currently bound texture to [data]. |
- * |
- * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
- * (or for more specificity, the more specialized [texImage2DImageData], |
- * [texImage2DCanvas], [texImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texImage2D') |
+ static const int INVALID_VALUE = 0x0501; |
+ |
+ @DomName('WebGLRenderingContext.INVERT') |
@DocsEditable() |
- void _texImage2D_3(target, level, internalformat, format, type, ImageElement image) native; |
- @JSName('texImage2D') |
- /** |
- * Updates the currently bound texture to [data]. |
- * |
- * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
- * (or for more specificity, the more specialized [texImage2DImageData], |
- * [texImage2DCanvas], [texImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texImage2D') |
+ static const int INVERT = 0x150A; |
+ |
+ @DomName('WebGLRenderingContext.KEEP') |
@DocsEditable() |
- void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native; |
- @JSName('texImage2D') |
- /** |
- * Updates the currently bound texture to [data]. |
- * |
- * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
- * (or for more specificity, the more specialized [texImage2DImageData], |
- * [texImage2DCanvas], [texImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texImage2D') |
+ static const int KEEP = 0x1E00; |
+ |
+ @DomName('WebGLRenderingContext.LEQUAL') |
@DocsEditable() |
- void _texImage2D_5(target, level, internalformat, format, type, VideoElement video) native; |
+ static const int LEQUAL = 0x0203; |
- @JSName('texImage2D') |
- /** |
- * Updates the currently bound texture to [data]. |
- * |
- * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
- * (or for more specificity, the more specialized [texImage2DImageData], |
- * [texImage2DCanvas], [texImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texImage2D') |
+ @DomName('WebGLRenderingContext.LESS') |
@DocsEditable() |
- void texImage2DCanvas(int target, int level, int internalformat, int format, int type, CanvasElement canvas) native; |
+ static const int LESS = 0x0201; |
- @JSName('texImage2D') |
- /** |
- * Updates the currently bound texture to [data]. |
- * |
- * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
- * (or for more specificity, the more specialized [texImage2DImageData], |
- * [texImage2DCanvas], [texImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texImage2D') |
+ @DomName('WebGLRenderingContext.LINEAR') |
@DocsEditable() |
- void texImage2DImage(int target, int level, int internalformat, int format, int type, ImageElement image) native; |
+ static const int LINEAR = 0x2601; |
- /** |
- * Updates the currently bound texture to [data]. |
- * |
- * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
- * (or for more specificity, the more specialized [texImage2DImageData], |
- * [texImage2DCanvas], [texImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texImage2D') |
- @DocsEditable() |
- void texImage2DImageData(int target, int level, int internalformat, int format, int type, ImageData pixels) { |
- var pixels_1 = convertDartToNative_ImageData(pixels); |
- _texImage2DImageData_1(target, level, internalformat, format, type, pixels_1); |
- return; |
- } |
- @JSName('texImage2D') |
- /** |
- * Updates the currently bound texture to [data]. |
- * |
- * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
- * (or for more specificity, the more specialized [texImage2DImageData], |
- * [texImage2DCanvas], [texImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texImage2D') |
+ @DomName('WebGLRenderingContext.LINEAR_MIPMAP_LINEAR') |
@DocsEditable() |
- void _texImage2DImageData_1(target, level, internalformat, format, type, pixels) native; |
+ static const int LINEAR_MIPMAP_LINEAR = 0x2703; |
- @JSName('texImage2D') |
- /** |
- * Updates the currently bound texture to [data]. |
- * |
- * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
- * (or for more specificity, the more specialized [texImage2DImageData], |
- * [texImage2DCanvas], [texImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texImage2D') |
+ @DomName('WebGLRenderingContext.LINEAR_MIPMAP_NEAREST') |
@DocsEditable() |
- void texImage2DVideo(int target, int level, int internalformat, int format, int type, VideoElement video) native; |
+ static const int LINEAR_MIPMAP_NEAREST = 0x2701; |
- @DomName('WebGLRenderingContext.texParameterf') |
+ @DomName('WebGLRenderingContext.LINES') |
@DocsEditable() |
- void texParameterf(int target, int pname, num param) native; |
+ static const int LINES = 0x0001; |
- @DomName('WebGLRenderingContext.texParameteri') |
+ @DomName('WebGLRenderingContext.LINE_LOOP') |
@DocsEditable() |
- void texParameteri(int target, int pname, int param) native; |
+ static const int LINE_LOOP = 0x0002; |
- /** |
- * Updates a sub-rectangle of the currently bound texture to [data]. |
- * |
- * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
- * (or for more specificity, the more specialized [texSubImage2DImageData], |
- * [texSubImage2DCanvas], [texSubImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DomName('WebGLRenderingContext.LINE_STRIP') |
@DocsEditable() |
- 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]) { |
- if (pixels != null && type != null && (canvas_OR_format_OR_image_OR_pixels_OR_video is int)) { |
- _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); |
- return; |
- } |
- if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == null) { |
- var pixels_1 = convertDartToNative_ImageData(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 ((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, canvas_OR_format_OR_image_OR_pixels_OR_video); |
- return; |
- } |
- if ((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, canvas_OR_format_OR_image_OR_pixels_OR_video); |
- return; |
- } |
- if ((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, canvas_OR_format_OR_image_OR_pixels_OR_video); |
- return; |
- } |
- throw new ArgumentError("Incorrect number or type of arguments"); |
- } |
- @JSName('texSubImage2D') |
- /** |
- * Updates a sub-rectangle of the currently bound texture to [data]. |
- * |
- * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
- * (or for more specificity, the more specialized [texSubImage2DImageData], |
- * [texSubImage2DCanvas], [texSubImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texSubImage2D') |
+ static const int LINE_STRIP = 0x0003; |
+ |
+ @DomName('WebGLRenderingContext.LINE_WIDTH') |
@DocsEditable() |
- void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int format, type, TypedData pixels) native; |
- @JSName('texSubImage2D') |
- /** |
- * Updates a sub-rectangle of the currently bound texture to [data]. |
- * |
- * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
- * (or for more specificity, the more specialized [texSubImage2DImageData], |
- * [texSubImage2DCanvas], [texSubImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texSubImage2D') |
+ static const int LINE_WIDTH = 0x0B21; |
+ |
+ @DomName('WebGLRenderingContext.LINK_STATUS') |
@DocsEditable() |
- void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) native; |
- @JSName('texSubImage2D') |
- /** |
- * Updates a sub-rectangle of the currently bound texture to [data]. |
- * |
- * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
- * (or for more specificity, the more specialized [texSubImage2DImageData], |
- * [texSubImage2DCanvas], [texSubImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texSubImage2D') |
+ static const int LINK_STATUS = 0x8B82; |
+ |
+ @DomName('WebGLRenderingContext.LOW_FLOAT') |
@DocsEditable() |
- void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElement image) native; |
- @JSName('texSubImage2D') |
- /** |
- * Updates a sub-rectangle of the currently bound texture to [data]. |
- * |
- * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
- * (or for more specificity, the more specialized [texSubImage2DImageData], |
- * [texSubImage2DCanvas], [texSubImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texSubImage2D') |
+ static const int LOW_FLOAT = 0x8DF0; |
+ |
+ @DomName('WebGLRenderingContext.LOW_INT') |
@DocsEditable() |
- void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasElement canvas) native; |
- @JSName('texSubImage2D') |
- /** |
- * Updates a sub-rectangle of the currently bound texture to [data]. |
- * |
- * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
- * (or for more specificity, the more specialized [texSubImage2DImageData], |
- * [texSubImage2DCanvas], [texSubImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texSubImage2D') |
+ static const int LOW_INT = 0x8DF3; |
+ |
+ @DomName('WebGLRenderingContext.LUMINANCE') |
@DocsEditable() |
- void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElement video) native; |
+ static const int LUMINANCE = 0x1909; |
- @JSName('texSubImage2D') |
- /** |
- * Updates a sub-rectangle of the currently bound texture to [data]. |
- * |
- * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
- * (or for more specificity, the more specialized [texSubImage2DImageData], |
- * [texSubImage2DCanvas], [texSubImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DomName('WebGLRenderingContext.LUMINANCE_ALPHA') |
@DocsEditable() |
- void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int format, int type, CanvasElement canvas) native; |
+ static const int LUMINANCE_ALPHA = 0x190A; |
- @JSName('texSubImage2D') |
- /** |
- * Updates a sub-rectangle of the currently bound texture to [data]. |
- * |
- * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
- * (or for more specificity, the more specialized [texSubImage2DImageData], |
- * [texSubImage2DCanvas], [texSubImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DomName('WebGLRenderingContext.MAX_COMBINED_TEXTURE_IMAGE_UNITS') |
@DocsEditable() |
- void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int format, int type, ImageElement image) native; |
+ static const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; |
- /** |
- * Updates a sub-rectangle of the currently bound texture to [data]. |
- * |
- * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
- * (or for more specificity, the more specialized [texSubImage2DImageData], |
- * [texSubImage2DCanvas], [texSubImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DomName('WebGLRenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE') |
@DocsEditable() |
- void texSubImage2DImageData(int target, int level, int xoffset, int yoffset, int format, int type, ImageData pixels) { |
- var pixels_1 = convertDartToNative_ImageData(pixels); |
- _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pixels_1); |
- return; |
- } |
- @JSName('texSubImage2D') |
- /** |
- * Updates a sub-rectangle of the currently bound texture to [data]. |
- * |
- * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
- * (or for more specificity, the more specialized [texSubImage2DImageData], |
- * [texSubImage2DCanvas], [texSubImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texSubImage2D') |
+ static const int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; |
+ |
+ @DomName('WebGLRenderingContext.MAX_FRAGMENT_UNIFORM_VECTORS') |
@DocsEditable() |
- void _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pixels) native; |
+ static const int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; |
- @JSName('texSubImage2D') |
- /** |
- * Updates a sub-rectangle of the currently bound texture to [data]. |
- * |
- * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
- * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
- * (or for more specificity, the more specialized [texSubImage2DImageData], |
- * [texSubImage2DCanvas], [texSubImage2DVideo]). |
- */ |
- @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DomName('WebGLRenderingContext.MAX_RENDERBUFFER_SIZE') |
@DocsEditable() |
- void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int format, int type, VideoElement video) native; |
+ static const int MAX_RENDERBUFFER_SIZE = 0x84E8; |
- @DomName('WebGLRenderingContext.uniform1f') |
+ @DomName('WebGLRenderingContext.MAX_TEXTURE_IMAGE_UNITS') |
@DocsEditable() |
- void uniform1f(UniformLocation location, num x) native; |
+ static const int MAX_TEXTURE_IMAGE_UNITS = 0x8872; |
- @DomName('WebGLRenderingContext.uniform1fv') |
+ @DomName('WebGLRenderingContext.MAX_TEXTURE_SIZE') |
@DocsEditable() |
- void uniform1fv(UniformLocation location, Float32List v) native; |
+ static const int MAX_TEXTURE_SIZE = 0x0D33; |
- @DomName('WebGLRenderingContext.uniform1i') |
+ @DomName('WebGLRenderingContext.MAX_VARYING_VECTORS') |
@DocsEditable() |
- void uniform1i(UniformLocation location, int x) native; |
+ static const int MAX_VARYING_VECTORS = 0x8DFC; |
- @DomName('WebGLRenderingContext.uniform1iv') |
+ @DomName('WebGLRenderingContext.MAX_VERTEX_ATTRIBS') |
@DocsEditable() |
- void uniform1iv(UniformLocation location, Int32List v) native; |
+ static const int MAX_VERTEX_ATTRIBS = 0x8869; |
- @DomName('WebGLRenderingContext.uniform2f') |
+ @DomName('WebGLRenderingContext.MAX_VERTEX_TEXTURE_IMAGE_UNITS') |
@DocsEditable() |
- void uniform2f(UniformLocation location, num x, num y) native; |
+ static const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; |
- @DomName('WebGLRenderingContext.uniform2fv') |
+ @DomName('WebGLRenderingContext.MAX_VERTEX_UNIFORM_VECTORS') |
@DocsEditable() |
- void uniform2fv(UniformLocation location, Float32List v) native; |
+ static const int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; |
- @DomName('WebGLRenderingContext.uniform2i') |
+ @DomName('WebGLRenderingContext.MAX_VIEWPORT_DIMS') |
@DocsEditable() |
- void uniform2i(UniformLocation location, int x, int y) native; |
+ static const int MAX_VIEWPORT_DIMS = 0x0D3A; |
- @DomName('WebGLRenderingContext.uniform2iv') |
+ @DomName('WebGLRenderingContext.MEDIUM_FLOAT') |
@DocsEditable() |
- void uniform2iv(UniformLocation location, Int32List v) native; |
+ static const int MEDIUM_FLOAT = 0x8DF1; |
- @DomName('WebGLRenderingContext.uniform3f') |
+ @DomName('WebGLRenderingContext.MEDIUM_INT') |
@DocsEditable() |
- void uniform3f(UniformLocation location, num x, num y, num z) native; |
+ static const int MEDIUM_INT = 0x8DF4; |
- @DomName('WebGLRenderingContext.uniform3fv') |
+ @DomName('WebGLRenderingContext.MIRRORED_REPEAT') |
@DocsEditable() |
- void uniform3fv(UniformLocation location, Float32List v) native; |
+ static const int MIRRORED_REPEAT = 0x8370; |
- @DomName('WebGLRenderingContext.uniform3i') |
+ @DomName('WebGLRenderingContext.NEAREST') |
@DocsEditable() |
- void uniform3i(UniformLocation location, int x, int y, int z) native; |
+ static const int NEAREST = 0x2600; |
- @DomName('WebGLRenderingContext.uniform3iv') |
+ @DomName('WebGLRenderingContext.NEAREST_MIPMAP_LINEAR') |
@DocsEditable() |
- void uniform3iv(UniformLocation location, Int32List v) native; |
+ static const int NEAREST_MIPMAP_LINEAR = 0x2702; |
- @DomName('WebGLRenderingContext.uniform4f') |
+ @DomName('WebGLRenderingContext.NEAREST_MIPMAP_NEAREST') |
@DocsEditable() |
- void uniform4f(UniformLocation location, num x, num y, num z, num w) native; |
+ static const int NEAREST_MIPMAP_NEAREST = 0x2700; |
- @DomName('WebGLRenderingContext.uniform4fv') |
+ @DomName('WebGLRenderingContext.NEVER') |
@DocsEditable() |
- void uniform4fv(UniformLocation location, Float32List v) native; |
+ static const int NEVER = 0x0200; |
- @DomName('WebGLRenderingContext.uniform4i') |
+ @DomName('WebGLRenderingContext.NICEST') |
@DocsEditable() |
- void uniform4i(UniformLocation location, int x, int y, int z, int w) native; |
+ static const int NICEST = 0x1102; |
- @DomName('WebGLRenderingContext.uniform4iv') |
+ @DomName('WebGLRenderingContext.NONE') |
@DocsEditable() |
- void uniform4iv(UniformLocation location, Int32List v) native; |
+ static const int NONE = 0; |
- @DomName('WebGLRenderingContext.uniformMatrix2fv') |
+ @DomName('WebGLRenderingContext.NOTEQUAL') |
@DocsEditable() |
- void uniformMatrix2fv(UniformLocation location, bool transpose, Float32List array) native; |
+ static const int NOTEQUAL = 0x0205; |
- @DomName('WebGLRenderingContext.uniformMatrix3fv') |
+ @DomName('WebGLRenderingContext.NO_ERROR') |
@DocsEditable() |
- void uniformMatrix3fv(UniformLocation location, bool transpose, Float32List array) native; |
+ static const int NO_ERROR = 0; |
- @DomName('WebGLRenderingContext.uniformMatrix4fv') |
+ @DomName('WebGLRenderingContext.ONE') |
@DocsEditable() |
- void uniformMatrix4fv(UniformLocation location, bool transpose, Float32List array) native; |
+ static const int ONE = 1; |
- @DomName('WebGLRenderingContext.useProgram') |
+ @DomName('WebGLRenderingContext.ONE_MINUS_CONSTANT_ALPHA') |
@DocsEditable() |
- void useProgram(Program program) native; |
+ static const int ONE_MINUS_CONSTANT_ALPHA = 0x8004; |
- @DomName('WebGLRenderingContext.validateProgram') |
+ @DomName('WebGLRenderingContext.ONE_MINUS_CONSTANT_COLOR') |
@DocsEditable() |
- void validateProgram(Program program) native; |
+ static const int ONE_MINUS_CONSTANT_COLOR = 0x8002; |
- @DomName('WebGLRenderingContext.vertexAttrib1f') |
+ @DomName('WebGLRenderingContext.ONE_MINUS_DST_ALPHA') |
@DocsEditable() |
- void vertexAttrib1f(int indx, num x) native; |
+ static const int ONE_MINUS_DST_ALPHA = 0x0305; |
- @DomName('WebGLRenderingContext.vertexAttrib1fv') |
+ @DomName('WebGLRenderingContext.ONE_MINUS_DST_COLOR') |
@DocsEditable() |
- void vertexAttrib1fv(int indx, Float32List values) native; |
+ static const int ONE_MINUS_DST_COLOR = 0x0307; |
- @DomName('WebGLRenderingContext.vertexAttrib2f') |
+ @DomName('WebGLRenderingContext.ONE_MINUS_SRC_ALPHA') |
@DocsEditable() |
- void vertexAttrib2f(int indx, num x, num y) native; |
+ static const int ONE_MINUS_SRC_ALPHA = 0x0303; |
- @DomName('WebGLRenderingContext.vertexAttrib2fv') |
+ @DomName('WebGLRenderingContext.ONE_MINUS_SRC_COLOR') |
@DocsEditable() |
- void vertexAttrib2fv(int indx, Float32List values) native; |
+ static const int ONE_MINUS_SRC_COLOR = 0x0301; |
- @DomName('WebGLRenderingContext.vertexAttrib3f') |
+ @DomName('WebGLRenderingContext.OUT_OF_MEMORY') |
@DocsEditable() |
- void vertexAttrib3f(int indx, num x, num y, num z) native; |
+ static const int OUT_OF_MEMORY = 0x0505; |
- @DomName('WebGLRenderingContext.vertexAttrib3fv') |
+ @DomName('WebGLRenderingContext.PACK_ALIGNMENT') |
@DocsEditable() |
- void vertexAttrib3fv(int indx, Float32List values) native; |
+ static const int PACK_ALIGNMENT = 0x0D05; |
- @DomName('WebGLRenderingContext.vertexAttrib4f') |
+ @DomName('WebGLRenderingContext.POINTS') |
@DocsEditable() |
- void vertexAttrib4f(int indx, num x, num y, num z, num w) native; |
+ static const int POINTS = 0x0000; |
- @DomName('WebGLRenderingContext.vertexAttrib4fv') |
+ @DomName('WebGLRenderingContext.POLYGON_OFFSET_FACTOR') |
@DocsEditable() |
- void vertexAttrib4fv(int indx, Float32List values) native; |
+ static const int POLYGON_OFFSET_FACTOR = 0x8038; |
- @DomName('WebGLRenderingContext.vertexAttribPointer') |
+ @DomName('WebGLRenderingContext.POLYGON_OFFSET_FILL') |
@DocsEditable() |
- void vertexAttribPointer(int indx, int size, int type, bool normalized, int stride, int offset) native; |
+ static const int POLYGON_OFFSET_FILL = 0x8037; |
- @DomName('WebGLRenderingContext.viewport') |
+ @DomName('WebGLRenderingContext.POLYGON_OFFSET_UNITS') |
@DocsEditable() |
- void viewport(int x, int y, int width, int height) native; |
- |
+ static const int POLYGON_OFFSET_UNITS = 0x2A00; |
- /** |
- * Sets the currently bound texture to [data]. |
- * |
- * [data] can be either an [ImageElement], a |
- * [CanvasElement], a [VideoElement], or an [ImageData] object. |
- * |
- * To use [texImage2d] with a TypedData object, use [texImage2dTyped]. |
- * |
- */ |
- @JSName('texImage2D') |
- void texImage2DUntyped(int targetTexture, int levelOfDetail, |
- int internalFormat, int format, int type, data) native; |
+ @DomName('WebGLRenderingContext.RED_BITS') |
+ @DocsEditable() |
+ static const int RED_BITS = 0x0D52; |
- /** |
- * Sets the currently bound texture to [data]. |
- */ |
- @JSName('texImage2D') |
- void texImage2DTyped(int targetTexture, int levelOfDetail, |
- int internalFormat, int width, int height, int border, int format, |
- int type, TypedData data) native; |
+ @DomName('WebGLRenderingContext.RENDERBUFFER') |
+ @DocsEditable() |
+ static const int RENDERBUFFER = 0x8D41; |
- /** |
- * Updates a sub-rectangle of the currently bound texture to [data]. |
- * |
- * [data] can be either an [ImageElement], a |
- * [CanvasElement], a [VideoElement], or an [ImageData] object. |
- * |
- * To use [texSubImage2d] with a TypedData object, use [texSubImage2dTyped]. |
- * |
- */ |
- @JSName('texSubImage2D') |
- void texSubImage2DUntyped(int targetTexture, int levelOfDetail, |
- int xOffset, int yOffset, int format, int type, data) native; |
+ @DomName('WebGLRenderingContext.RENDERBUFFER_ALPHA_SIZE') |
+ @DocsEditable() |
+ static const int RENDERBUFFER_ALPHA_SIZE = 0x8D53; |
- /** |
- * Updates a sub-rectangle of the currently bound texture to [data]. |
- */ |
- @JSName('texSubImage2D') |
- void texSubImage2DTyped(int targetTexture, int levelOfDetail, |
- int xOffset, int yOffset, int width, int height, int border, int format, |
- int type, TypedData data) native; |
-} |
-// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
-// for details. All rights reserved. Use of this source code is governed by a |
-// BSD-style license that can be found in the LICENSE file. |
+ @DomName('WebGLRenderingContext.RENDERBUFFER_BINDING') |
+ @DocsEditable() |
+ static const int RENDERBUFFER_BINDING = 0x8CA7; |
+ @DomName('WebGLRenderingContext.RENDERBUFFER_BLUE_SIZE') |
+ @DocsEditable() |
+ static const int RENDERBUFFER_BLUE_SIZE = 0x8D52; |
-@DocsEditable() |
-@DomName('WebGLRenderingContextBase') |
-@Experimental() // untriaged |
-abstract class RenderingContextBase extends Interceptor { |
- // To suppress missing implicit constructor warnings. |
- factory RenderingContextBase._() { throw new UnsupportedError("Not supported"); } |
+ @DomName('WebGLRenderingContext.RENDERBUFFER_DEPTH_SIZE') |
+ @DocsEditable() |
+ static const int RENDERBUFFER_DEPTH_SIZE = 0x8D54; |
- @DomName('WebGLRenderingContextBase.ACTIVE_ATTRIBUTES') |
+ @DomName('WebGLRenderingContext.RENDERBUFFER_GREEN_SIZE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ACTIVE_ATTRIBUTES = 0x8B89; |
+ static const int RENDERBUFFER_GREEN_SIZE = 0x8D51; |
- @DomName('WebGLRenderingContextBase.ACTIVE_TEXTURE') |
+ @DomName('WebGLRenderingContext.RENDERBUFFER_HEIGHT') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ACTIVE_TEXTURE = 0x84E0; |
+ static const int RENDERBUFFER_HEIGHT = 0x8D43; |
- @DomName('WebGLRenderingContextBase.ACTIVE_UNIFORMS') |
+ @DomName('WebGLRenderingContext.RENDERBUFFER_INTERNAL_FORMAT') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ACTIVE_UNIFORMS = 0x8B86; |
+ static const int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; |
- @DomName('WebGLRenderingContextBase.ALIASED_LINE_WIDTH_RANGE') |
+ @DomName('WebGLRenderingContext.RENDERBUFFER_RED_SIZE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ALIASED_LINE_WIDTH_RANGE = 0x846E; |
+ static const int RENDERBUFFER_RED_SIZE = 0x8D50; |
- @DomName('WebGLRenderingContextBase.ALIASED_POINT_SIZE_RANGE') |
+ @DomName('WebGLRenderingContext.RENDERBUFFER_STENCIL_SIZE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ALIASED_POINT_SIZE_RANGE = 0x846D; |
+ static const int RENDERBUFFER_STENCIL_SIZE = 0x8D55; |
- @DomName('WebGLRenderingContextBase.ALPHA') |
+ @DomName('WebGLRenderingContext.RENDERBUFFER_WIDTH') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ALPHA = 0x1906; |
+ static const int RENDERBUFFER_WIDTH = 0x8D42; |
- @DomName('WebGLRenderingContextBase.ALPHA_BITS') |
+ @DomName('WebGLRenderingContext.RENDERER') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ALPHA_BITS = 0x0D55; |
+ static const int RENDERER = 0x1F01; |
- @DomName('WebGLRenderingContextBase.ALWAYS') |
+ @DomName('WebGLRenderingContext.REPEAT') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ALWAYS = 0x0207; |
+ static const int REPEAT = 0x2901; |
- @DomName('WebGLRenderingContextBase.ARRAY_BUFFER') |
+ @DomName('WebGLRenderingContext.REPLACE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ARRAY_BUFFER = 0x8892; |
+ static const int REPLACE = 0x1E01; |
- @DomName('WebGLRenderingContextBase.ARRAY_BUFFER_BINDING') |
+ @DomName('WebGLRenderingContext.RGB') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ARRAY_BUFFER_BINDING = 0x8894; |
+ static const int RGB = 0x1907; |
- @DomName('WebGLRenderingContextBase.ATTACHED_SHADERS') |
+ @DomName('WebGLRenderingContext.RGB565') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ATTACHED_SHADERS = 0x8B85; |
+ static const int RGB565 = 0x8D62; |
- @DomName('WebGLRenderingContextBase.BACK') |
+ @DomName('WebGLRenderingContext.RGB5_A1') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BACK = 0x0405; |
+ static const int RGB5_A1 = 0x8057; |
- @DomName('WebGLRenderingContextBase.BLEND') |
+ @DomName('WebGLRenderingContext.RGBA') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BLEND = 0x0BE2; |
+ static const int RGBA = 0x1908; |
- @DomName('WebGLRenderingContextBase.BLEND_COLOR') |
+ @DomName('WebGLRenderingContext.RGBA4') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BLEND_COLOR = 0x8005; |
+ static const int RGBA4 = 0x8056; |
- @DomName('WebGLRenderingContextBase.BLEND_DST_ALPHA') |
+ @DomName('WebGLRenderingContext.SAMPLER_2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BLEND_DST_ALPHA = 0x80CA; |
+ static const int SAMPLER_2D = 0x8B5E; |
- @DomName('WebGLRenderingContextBase.BLEND_DST_RGB') |
+ @DomName('WebGLRenderingContext.SAMPLER_CUBE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BLEND_DST_RGB = 0x80C8; |
+ static const int SAMPLER_CUBE = 0x8B60; |
- @DomName('WebGLRenderingContextBase.BLEND_EQUATION') |
+ @DomName('WebGLRenderingContext.SAMPLES') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BLEND_EQUATION = 0x8009; |
+ static const int SAMPLES = 0x80A9; |
- @DomName('WebGLRenderingContextBase.BLEND_EQUATION_ALPHA') |
+ @DomName('WebGLRenderingContext.SAMPLE_ALPHA_TO_COVERAGE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BLEND_EQUATION_ALPHA = 0x883D; |
+ static const int SAMPLE_ALPHA_TO_COVERAGE = 0x809E; |
- @DomName('WebGLRenderingContextBase.BLEND_EQUATION_RGB') |
+ @DomName('WebGLRenderingContext.SAMPLE_BUFFERS') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BLEND_EQUATION_RGB = 0x8009; |
+ static const int SAMPLE_BUFFERS = 0x80A8; |
- @DomName('WebGLRenderingContextBase.BLEND_SRC_ALPHA') |
+ @DomName('WebGLRenderingContext.SAMPLE_COVERAGE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BLEND_SRC_ALPHA = 0x80CB; |
+ static const int SAMPLE_COVERAGE = 0x80A0; |
- @DomName('WebGLRenderingContextBase.BLEND_SRC_RGB') |
+ @DomName('WebGLRenderingContext.SAMPLE_COVERAGE_INVERT') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BLEND_SRC_RGB = 0x80C9; |
+ static const int SAMPLE_COVERAGE_INVERT = 0x80AB; |
- @DomName('WebGLRenderingContextBase.BLUE_BITS') |
+ @DomName('WebGLRenderingContext.SAMPLE_COVERAGE_VALUE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BLUE_BITS = 0x0D54; |
+ static const int SAMPLE_COVERAGE_VALUE = 0x80AA; |
- @DomName('WebGLRenderingContextBase.BOOL') |
+ @DomName('WebGLRenderingContext.SCISSOR_BOX') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BOOL = 0x8B56; |
+ static const int SCISSOR_BOX = 0x0C10; |
- @DomName('WebGLRenderingContextBase.BOOL_VEC2') |
+ @DomName('WebGLRenderingContext.SCISSOR_TEST') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BOOL_VEC2 = 0x8B57; |
+ static const int SCISSOR_TEST = 0x0C11; |
- @DomName('WebGLRenderingContextBase.BOOL_VEC3') |
+ @DomName('WebGLRenderingContext.SHADER_TYPE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BOOL_VEC3 = 0x8B58; |
+ static const int SHADER_TYPE = 0x8B4F; |
- @DomName('WebGLRenderingContextBase.BOOL_VEC4') |
+ @DomName('WebGLRenderingContext.SHADING_LANGUAGE_VERSION') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BOOL_VEC4 = 0x8B59; |
+ static const int SHADING_LANGUAGE_VERSION = 0x8B8C; |
- @DomName('WebGLRenderingContextBase.BROWSER_DEFAULT_WEBGL') |
+ @DomName('WebGLRenderingContext.SHORT') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BROWSER_DEFAULT_WEBGL = 0x9244; |
+ static const int SHORT = 0x1402; |
- @DomName('WebGLRenderingContextBase.BUFFER_SIZE') |
+ @DomName('WebGLRenderingContext.SRC_ALPHA') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BUFFER_SIZE = 0x8764; |
+ static const int SRC_ALPHA = 0x0302; |
- @DomName('WebGLRenderingContextBase.BUFFER_USAGE') |
+ @DomName('WebGLRenderingContext.SRC_ALPHA_SATURATE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BUFFER_USAGE = 0x8765; |
+ static const int SRC_ALPHA_SATURATE = 0x0308; |
- @DomName('WebGLRenderingContextBase.BYTE') |
+ @DomName('WebGLRenderingContext.SRC_COLOR') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int BYTE = 0x1400; |
+ static const int SRC_COLOR = 0x0300; |
- @DomName('WebGLRenderingContextBase.CCW') |
+ @DomName('WebGLRenderingContext.STATIC_DRAW') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int CCW = 0x0901; |
+ static const int STATIC_DRAW = 0x88E4; |
- @DomName('WebGLRenderingContextBase.CLAMP_TO_EDGE') |
+ @DomName('WebGLRenderingContext.STENCIL_ATTACHMENT') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int CLAMP_TO_EDGE = 0x812F; |
+ static const int STENCIL_ATTACHMENT = 0x8D20; |
- @DomName('WebGLRenderingContextBase.COLOR_ATTACHMENT0') |
+ @DomName('WebGLRenderingContext.STENCIL_BACK_FAIL') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int COLOR_ATTACHMENT0 = 0x8CE0; |
+ static const int STENCIL_BACK_FAIL = 0x8801; |
- @DomName('WebGLRenderingContextBase.COLOR_BUFFER_BIT') |
+ @DomName('WebGLRenderingContext.STENCIL_BACK_FUNC') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int COLOR_BUFFER_BIT = 0x00004000; |
+ static const int STENCIL_BACK_FUNC = 0x8800; |
- @DomName('WebGLRenderingContextBase.COLOR_CLEAR_VALUE') |
+ @DomName('WebGLRenderingContext.STENCIL_BACK_PASS_DEPTH_FAIL') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int COLOR_CLEAR_VALUE = 0x0C22; |
+ static const int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; |
- @DomName('WebGLRenderingContextBase.COLOR_WRITEMASK') |
+ @DomName('WebGLRenderingContext.STENCIL_BACK_PASS_DEPTH_PASS') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int COLOR_WRITEMASK = 0x0C23; |
+ static const int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; |
- @DomName('WebGLRenderingContextBase.COMPILE_STATUS') |
+ @DomName('WebGLRenderingContext.STENCIL_BACK_REF') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int COMPILE_STATUS = 0x8B81; |
+ static const int STENCIL_BACK_REF = 0x8CA3; |
- @DomName('WebGLRenderingContextBase.COMPRESSED_TEXTURE_FORMATS') |
+ @DomName('WebGLRenderingContext.STENCIL_BACK_VALUE_MASK') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int COMPRESSED_TEXTURE_FORMATS = 0x86A3; |
+ static const int STENCIL_BACK_VALUE_MASK = 0x8CA4; |
- @DomName('WebGLRenderingContextBase.CONSTANT_ALPHA') |
+ @DomName('WebGLRenderingContext.STENCIL_BACK_WRITEMASK') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int CONSTANT_ALPHA = 0x8003; |
+ static const int STENCIL_BACK_WRITEMASK = 0x8CA5; |
- @DomName('WebGLRenderingContextBase.CONSTANT_COLOR') |
+ @DomName('WebGLRenderingContext.STENCIL_BITS') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int CONSTANT_COLOR = 0x8001; |
+ static const int STENCIL_BITS = 0x0D57; |
- @DomName('WebGLRenderingContextBase.CONTEXT_LOST_WEBGL') |
+ @DomName('WebGLRenderingContext.STENCIL_BUFFER_BIT') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int CONTEXT_LOST_WEBGL = 0x9242; |
+ static const int STENCIL_BUFFER_BIT = 0x00000400; |
- @DomName('WebGLRenderingContextBase.CULL_FACE') |
+ @DomName('WebGLRenderingContext.STENCIL_CLEAR_VALUE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int CULL_FACE = 0x0B44; |
+ static const int STENCIL_CLEAR_VALUE = 0x0B91; |
- @DomName('WebGLRenderingContextBase.CULL_FACE_MODE') |
+ @DomName('WebGLRenderingContext.STENCIL_FAIL') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int CULL_FACE_MODE = 0x0B45; |
+ static const int STENCIL_FAIL = 0x0B94; |
- @DomName('WebGLRenderingContextBase.CURRENT_PROGRAM') |
+ @DomName('WebGLRenderingContext.STENCIL_FUNC') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int CURRENT_PROGRAM = 0x8B8D; |
+ static const int STENCIL_FUNC = 0x0B92; |
- @DomName('WebGLRenderingContextBase.CURRENT_VERTEX_ATTRIB') |
+ @DomName('WebGLRenderingContext.STENCIL_INDEX') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int CURRENT_VERTEX_ATTRIB = 0x8626; |
+ static const int STENCIL_INDEX = 0x1901; |
- @DomName('WebGLRenderingContextBase.CW') |
+ @DomName('WebGLRenderingContext.STENCIL_INDEX8') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int CW = 0x0900; |
+ static const int STENCIL_INDEX8 = 0x8D48; |
- @DomName('WebGLRenderingContextBase.DECR') |
+ @DomName('WebGLRenderingContext.STENCIL_PASS_DEPTH_FAIL') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DECR = 0x1E03; |
+ static const int STENCIL_PASS_DEPTH_FAIL = 0x0B95; |
- @DomName('WebGLRenderingContextBase.DECR_WRAP') |
+ @DomName('WebGLRenderingContext.STENCIL_PASS_DEPTH_PASS') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DECR_WRAP = 0x8508; |
+ static const int STENCIL_PASS_DEPTH_PASS = 0x0B96; |
- @DomName('WebGLRenderingContextBase.DELETE_STATUS') |
+ @DomName('WebGLRenderingContext.STENCIL_REF') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DELETE_STATUS = 0x8B80; |
+ static const int STENCIL_REF = 0x0B97; |
- @DomName('WebGLRenderingContextBase.DEPTH_ATTACHMENT') |
+ @DomName('WebGLRenderingContext.STENCIL_TEST') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DEPTH_ATTACHMENT = 0x8D00; |
+ static const int STENCIL_TEST = 0x0B90; |
- @DomName('WebGLRenderingContextBase.DEPTH_BITS') |
+ @DomName('WebGLRenderingContext.STENCIL_VALUE_MASK') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DEPTH_BITS = 0x0D56; |
+ static const int STENCIL_VALUE_MASK = 0x0B93; |
- @DomName('WebGLRenderingContextBase.DEPTH_BUFFER_BIT') |
+ @DomName('WebGLRenderingContext.STENCIL_WRITEMASK') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DEPTH_BUFFER_BIT = 0x00000100; |
+ static const int STENCIL_WRITEMASK = 0x0B98; |
- @DomName('WebGLRenderingContextBase.DEPTH_CLEAR_VALUE') |
+ @DomName('WebGLRenderingContext.STREAM_DRAW') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DEPTH_CLEAR_VALUE = 0x0B73; |
+ static const int STREAM_DRAW = 0x88E0; |
- @DomName('WebGLRenderingContextBase.DEPTH_COMPONENT') |
+ @DomName('WebGLRenderingContext.SUBPIXEL_BITS') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DEPTH_COMPONENT = 0x1902; |
+ static const int SUBPIXEL_BITS = 0x0D50; |
- @DomName('WebGLRenderingContextBase.DEPTH_COMPONENT16') |
+ @DomName('WebGLRenderingContext.TEXTURE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DEPTH_COMPONENT16 = 0x81A5; |
+ static const int TEXTURE = 0x1702; |
- @DomName('WebGLRenderingContextBase.DEPTH_FUNC') |
+ @DomName('WebGLRenderingContext.TEXTURE0') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DEPTH_FUNC = 0x0B74; |
+ static const int TEXTURE0 = 0x84C0; |
- @DomName('WebGLRenderingContextBase.DEPTH_RANGE') |
+ @DomName('WebGLRenderingContext.TEXTURE1') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DEPTH_RANGE = 0x0B70; |
+ static const int TEXTURE1 = 0x84C1; |
- @DomName('WebGLRenderingContextBase.DEPTH_STENCIL') |
+ @DomName('WebGLRenderingContext.TEXTURE10') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DEPTH_STENCIL = 0x84F9; |
+ static const int TEXTURE10 = 0x84CA; |
- @DomName('WebGLRenderingContextBase.DEPTH_STENCIL_ATTACHMENT') |
+ @DomName('WebGLRenderingContext.TEXTURE11') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DEPTH_STENCIL_ATTACHMENT = 0x821A; |
+ static const int TEXTURE11 = 0x84CB; |
- @DomName('WebGLRenderingContextBase.DEPTH_TEST') |
+ @DomName('WebGLRenderingContext.TEXTURE12') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DEPTH_TEST = 0x0B71; |
+ static const int TEXTURE12 = 0x84CC; |
- @DomName('WebGLRenderingContextBase.DEPTH_WRITEMASK') |
+ @DomName('WebGLRenderingContext.TEXTURE13') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DEPTH_WRITEMASK = 0x0B72; |
+ static const int TEXTURE13 = 0x84CD; |
- @DomName('WebGLRenderingContextBase.DITHER') |
+ @DomName('WebGLRenderingContext.TEXTURE14') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DITHER = 0x0BD0; |
+ static const int TEXTURE14 = 0x84CE; |
- @DomName('WebGLRenderingContextBase.DONT_CARE') |
+ @DomName('WebGLRenderingContext.TEXTURE15') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DONT_CARE = 0x1100; |
+ static const int TEXTURE15 = 0x84CF; |
- @DomName('WebGLRenderingContextBase.DST_ALPHA') |
+ @DomName('WebGLRenderingContext.TEXTURE16') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DST_ALPHA = 0x0304; |
+ static const int TEXTURE16 = 0x84D0; |
- @DomName('WebGLRenderingContextBase.DST_COLOR') |
+ @DomName('WebGLRenderingContext.TEXTURE17') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DST_COLOR = 0x0306; |
+ static const int TEXTURE17 = 0x84D1; |
- @DomName('WebGLRenderingContextBase.DYNAMIC_DRAW') |
+ @DomName('WebGLRenderingContext.TEXTURE18') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int DYNAMIC_DRAW = 0x88E8; |
+ static const int TEXTURE18 = 0x84D2; |
- @DomName('WebGLRenderingContextBase.ELEMENT_ARRAY_BUFFER') |
+ @DomName('WebGLRenderingContext.TEXTURE19') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ELEMENT_ARRAY_BUFFER = 0x8893; |
+ static const int TEXTURE19 = 0x84D3; |
- @DomName('WebGLRenderingContextBase.ELEMENT_ARRAY_BUFFER_BINDING') |
+ @DomName('WebGLRenderingContext.TEXTURE2') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; |
+ static const int TEXTURE2 = 0x84C2; |
- @DomName('WebGLRenderingContextBase.EQUAL') |
+ @DomName('WebGLRenderingContext.TEXTURE20') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int EQUAL = 0x0202; |
+ static const int TEXTURE20 = 0x84D4; |
- @DomName('WebGLRenderingContextBase.FASTEST') |
+ @DomName('WebGLRenderingContext.TEXTURE21') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FASTEST = 0x1101; |
+ static const int TEXTURE21 = 0x84D5; |
- @DomName('WebGLRenderingContextBase.FLOAT') |
+ @DomName('WebGLRenderingContext.TEXTURE22') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FLOAT = 0x1406; |
+ static const int TEXTURE22 = 0x84D6; |
- @DomName('WebGLRenderingContextBase.FLOAT_MAT2') |
+ @DomName('WebGLRenderingContext.TEXTURE23') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FLOAT_MAT2 = 0x8B5A; |
+ static const int TEXTURE23 = 0x84D7; |
- @DomName('WebGLRenderingContextBase.FLOAT_MAT3') |
+ @DomName('WebGLRenderingContext.TEXTURE24') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FLOAT_MAT3 = 0x8B5B; |
+ static const int TEXTURE24 = 0x84D8; |
- @DomName('WebGLRenderingContextBase.FLOAT_MAT4') |
+ @DomName('WebGLRenderingContext.TEXTURE25') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FLOAT_MAT4 = 0x8B5C; |
+ static const int TEXTURE25 = 0x84D9; |
- @DomName('WebGLRenderingContextBase.FLOAT_VEC2') |
+ @DomName('WebGLRenderingContext.TEXTURE26') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FLOAT_VEC2 = 0x8B50; |
+ static const int TEXTURE26 = 0x84DA; |
- @DomName('WebGLRenderingContextBase.FLOAT_VEC3') |
+ @DomName('WebGLRenderingContext.TEXTURE27') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FLOAT_VEC3 = 0x8B51; |
+ static const int TEXTURE27 = 0x84DB; |
- @DomName('WebGLRenderingContextBase.FLOAT_VEC4') |
+ @DomName('WebGLRenderingContext.TEXTURE28') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FLOAT_VEC4 = 0x8B52; |
+ static const int TEXTURE28 = 0x84DC; |
- @DomName('WebGLRenderingContextBase.FRAGMENT_SHADER') |
+ @DomName('WebGLRenderingContext.TEXTURE29') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRAGMENT_SHADER = 0x8B30; |
+ static const int TEXTURE29 = 0x84DD; |
- @DomName('WebGLRenderingContextBase.FRAMEBUFFER') |
+ @DomName('WebGLRenderingContext.TEXTURE3') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRAMEBUFFER = 0x8D40; |
+ static const int TEXTURE3 = 0x84C3; |
- @DomName('WebGLRenderingContextBase.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME') |
+ @DomName('WebGLRenderingContext.TEXTURE30') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; |
+ static const int TEXTURE30 = 0x84DE; |
- @DomName('WebGLRenderingContextBase.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE') |
+ @DomName('WebGLRenderingContext.TEXTURE31') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; |
+ static const int TEXTURE31 = 0x84DF; |
- @DomName('WebGLRenderingContextBase.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE') |
+ @DomName('WebGLRenderingContext.TEXTURE4') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; |
+ static const int TEXTURE4 = 0x84C4; |
- @DomName('WebGLRenderingContextBase.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL') |
+ @DomName('WebGLRenderingContext.TEXTURE5') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; |
+ static const int TEXTURE5 = 0x84C5; |
- @DomName('WebGLRenderingContextBase.FRAMEBUFFER_BINDING') |
+ @DomName('WebGLRenderingContext.TEXTURE6') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRAMEBUFFER_BINDING = 0x8CA6; |
+ static const int TEXTURE6 = 0x84C6; |
- @DomName('WebGLRenderingContextBase.FRAMEBUFFER_COMPLETE') |
+ @DomName('WebGLRenderingContext.TEXTURE7') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRAMEBUFFER_COMPLETE = 0x8CD5; |
+ static const int TEXTURE7 = 0x84C7; |
- @DomName('WebGLRenderingContextBase.FRAMEBUFFER_INCOMPLETE_ATTACHMENT') |
+ @DomName('WebGLRenderingContext.TEXTURE8') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; |
+ static const int TEXTURE8 = 0x84C8; |
- @DomName('WebGLRenderingContextBase.FRAMEBUFFER_INCOMPLETE_DIMENSIONS') |
+ @DomName('WebGLRenderingContext.TEXTURE9') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9; |
+ static const int TEXTURE9 = 0x84C9; |
- @DomName('WebGLRenderingContextBase.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT') |
+ @DomName('WebGLRenderingContext.TEXTURE_2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; |
+ static const int TEXTURE_2D = 0x0DE1; |
- @DomName('WebGLRenderingContextBase.FRAMEBUFFER_UNSUPPORTED') |
+ @DomName('WebGLRenderingContext.TEXTURE_BINDING_2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRAMEBUFFER_UNSUPPORTED = 0x8CDD; |
+ static const int TEXTURE_BINDING_2D = 0x8069; |
- @DomName('WebGLRenderingContextBase.FRONT') |
+ @DomName('WebGLRenderingContext.TEXTURE_BINDING_CUBE_MAP') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRONT = 0x0404; |
+ static const int TEXTURE_BINDING_CUBE_MAP = 0x8514; |
- @DomName('WebGLRenderingContextBase.FRONT_AND_BACK') |
+ @DomName('WebGLRenderingContext.TEXTURE_CUBE_MAP') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRONT_AND_BACK = 0x0408; |
+ static const int TEXTURE_CUBE_MAP = 0x8513; |
- @DomName('WebGLRenderingContextBase.FRONT_FACE') |
+ @DomName('WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FRONT_FACE = 0x0B46; |
+ static const int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; |
- @DomName('WebGLRenderingContextBase.FUNC_ADD') |
+ @DomName('WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FUNC_ADD = 0x8006; |
+ static const int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; |
- @DomName('WebGLRenderingContextBase.FUNC_REVERSE_SUBTRACT') |
+ @DomName('WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FUNC_REVERSE_SUBTRACT = 0x800B; |
+ static const int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; |
- @DomName('WebGLRenderingContextBase.FUNC_SUBTRACT') |
+ @DomName('WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_X') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int FUNC_SUBTRACT = 0x800A; |
+ static const int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; |
- @DomName('WebGLRenderingContextBase.GENERATE_MIPMAP_HINT') |
+ @DomName('WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int GENERATE_MIPMAP_HINT = 0x8192; |
+ static const int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; |
- @DomName('WebGLRenderingContextBase.GEQUAL') |
+ @DomName('WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int GEQUAL = 0x0206; |
+ static const int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; |
- @DomName('WebGLRenderingContextBase.GREATER') |
+ @DomName('WebGLRenderingContext.TEXTURE_MAG_FILTER') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int GREATER = 0x0204; |
+ static const int TEXTURE_MAG_FILTER = 0x2800; |
- @DomName('WebGLRenderingContextBase.GREEN_BITS') |
+ @DomName('WebGLRenderingContext.TEXTURE_MIN_FILTER') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int GREEN_BITS = 0x0D53; |
+ static const int TEXTURE_MIN_FILTER = 0x2801; |
- @DomName('WebGLRenderingContextBase.HIGH_FLOAT') |
+ @DomName('WebGLRenderingContext.TEXTURE_WRAP_S') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int HIGH_FLOAT = 0x8DF2; |
+ static const int TEXTURE_WRAP_S = 0x2802; |
- @DomName('WebGLRenderingContextBase.HIGH_INT') |
+ @DomName('WebGLRenderingContext.TEXTURE_WRAP_T') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int HIGH_INT = 0x8DF5; |
+ static const int TEXTURE_WRAP_T = 0x2803; |
- @DomName('WebGLRenderingContextBase.IMPLEMENTATION_COLOR_READ_FORMAT') |
+ @DomName('WebGLRenderingContext.TRIANGLES') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B; |
+ static const int TRIANGLES = 0x0004; |
- @DomName('WebGLRenderingContextBase.IMPLEMENTATION_COLOR_READ_TYPE') |
+ @DomName('WebGLRenderingContext.TRIANGLE_FAN') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A; |
+ static const int TRIANGLE_FAN = 0x0006; |
- @DomName('WebGLRenderingContextBase.INCR') |
+ @DomName('WebGLRenderingContext.TRIANGLE_STRIP') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int INCR = 0x1E02; |
+ static const int TRIANGLE_STRIP = 0x0005; |
- @DomName('WebGLRenderingContextBase.INCR_WRAP') |
+ @DomName('WebGLRenderingContext.UNPACK_ALIGNMENT') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int INCR_WRAP = 0x8507; |
+ static const int UNPACK_ALIGNMENT = 0x0CF5; |
- @DomName('WebGLRenderingContextBase.INT') |
+ @DomName('WebGLRenderingContext.UNPACK_COLORSPACE_CONVERSION_WEBGL') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int INT = 0x1404; |
+ static const int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; |
- @DomName('WebGLRenderingContextBase.INT_VEC2') |
+ @DomName('WebGLRenderingContext.UNPACK_FLIP_Y_WEBGL') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int INT_VEC2 = 0x8B53; |
+ static const int UNPACK_FLIP_Y_WEBGL = 0x9240; |
- @DomName('WebGLRenderingContextBase.INT_VEC3') |
+ @DomName('WebGLRenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int INT_VEC3 = 0x8B54; |
+ static const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; |
- @DomName('WebGLRenderingContextBase.INT_VEC4') |
+ @DomName('WebGLRenderingContext.UNSIGNED_BYTE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int INT_VEC4 = 0x8B55; |
+ static const int UNSIGNED_BYTE = 0x1401; |
- @DomName('WebGLRenderingContextBase.INVALID_ENUM') |
+ @DomName('WebGLRenderingContext.UNSIGNED_INT') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int INVALID_ENUM = 0x0500; |
+ static const int UNSIGNED_INT = 0x1405; |
- @DomName('WebGLRenderingContextBase.INVALID_FRAMEBUFFER_OPERATION') |
+ @DomName('WebGLRenderingContext.UNSIGNED_SHORT') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int INVALID_FRAMEBUFFER_OPERATION = 0x0506; |
+ static const int UNSIGNED_SHORT = 0x1403; |
- @DomName('WebGLRenderingContextBase.INVALID_OPERATION') |
+ @DomName('WebGLRenderingContext.UNSIGNED_SHORT_4_4_4_4') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int INVALID_OPERATION = 0x0502; |
+ static const int UNSIGNED_SHORT_4_4_4_4 = 0x8033; |
- @DomName('WebGLRenderingContextBase.INVALID_VALUE') |
+ @DomName('WebGLRenderingContext.UNSIGNED_SHORT_5_5_5_1') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int INVALID_VALUE = 0x0501; |
+ static const int UNSIGNED_SHORT_5_5_5_1 = 0x8034; |
- @DomName('WebGLRenderingContextBase.INVERT') |
+ @DomName('WebGLRenderingContext.UNSIGNED_SHORT_5_6_5') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int INVERT = 0x150A; |
+ static const int UNSIGNED_SHORT_5_6_5 = 0x8363; |
- @DomName('WebGLRenderingContextBase.KEEP') |
+ @DomName('WebGLRenderingContext.VALIDATE_STATUS') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int KEEP = 0x1E00; |
+ static const int VALIDATE_STATUS = 0x8B83; |
- @DomName('WebGLRenderingContextBase.LEQUAL') |
+ @DomName('WebGLRenderingContext.VENDOR') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int LEQUAL = 0x0203; |
+ static const int VENDOR = 0x1F00; |
- @DomName('WebGLRenderingContextBase.LESS') |
+ @DomName('WebGLRenderingContext.VERSION') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int LESS = 0x0201; |
+ static const int VERSION = 0x1F02; |
- @DomName('WebGLRenderingContextBase.LINEAR') |
+ @DomName('WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int LINEAR = 0x2601; |
+ static const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; |
- @DomName('WebGLRenderingContextBase.LINEAR_MIPMAP_LINEAR') |
+ @DomName('WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_ENABLED') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int LINEAR_MIPMAP_LINEAR = 0x2703; |
+ static const int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; |
- @DomName('WebGLRenderingContextBase.LINEAR_MIPMAP_NEAREST') |
+ @DomName('WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_NORMALIZED') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int LINEAR_MIPMAP_NEAREST = 0x2701; |
+ static const int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; |
- @DomName('WebGLRenderingContextBase.LINES') |
+ @DomName('WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_POINTER') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int LINES = 0x0001; |
+ static const int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; |
- @DomName('WebGLRenderingContextBase.LINE_LOOP') |
+ @DomName('WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_SIZE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int LINE_LOOP = 0x0002; |
+ static const int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; |
- @DomName('WebGLRenderingContextBase.LINE_STRIP') |
+ @DomName('WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_STRIDE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int LINE_STRIP = 0x0003; |
+ static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; |
- @DomName('WebGLRenderingContextBase.LINE_WIDTH') |
+ @DomName('WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_TYPE') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int LINE_WIDTH = 0x0B21; |
+ static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; |
- @DomName('WebGLRenderingContextBase.LINK_STATUS') |
+ @DomName('WebGLRenderingContext.VERTEX_SHADER') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int LINK_STATUS = 0x8B82; |
+ static const int VERTEX_SHADER = 0x8B31; |
- @DomName('WebGLRenderingContextBase.LOW_FLOAT') |
+ @DomName('WebGLRenderingContext.VIEWPORT') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int LOW_FLOAT = 0x8DF0; |
+ static const int VIEWPORT = 0x0BA2; |
- @DomName('WebGLRenderingContextBase.LOW_INT') |
+ @DomName('WebGLRenderingContext.ZERO') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int LOW_INT = 0x8DF3; |
+ static const int ZERO = 0; |
- @DomName('WebGLRenderingContextBase.LUMINANCE') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int LUMINANCE = 0x1909; |
+ // From WebGLRenderingContextBase |
- @DomName('WebGLRenderingContextBase.LUMINANCE_ALPHA') |
+ @DomName('WebGLRenderingContext.canvas') |
@DocsEditable() |
@Experimental() // untriaged |
- static const int LUMINANCE_ALPHA = 0x190A; |
+ final CanvasElement canvas; |
- @DomName('WebGLRenderingContextBase.MAX_COMBINED_TEXTURE_IMAGE_UNITS') |
+ @DomName('WebGLRenderingContext.drawingBufferHeight') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; |
+ final int drawingBufferHeight; |
- @DomName('WebGLRenderingContextBase.MAX_CUBE_MAP_TEXTURE_SIZE') |
+ @DomName('WebGLRenderingContext.drawingBufferWidth') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; |
+ final int drawingBufferWidth; |
- @DomName('WebGLRenderingContextBase.MAX_FRAGMENT_UNIFORM_VECTORS') |
+ @DomName('WebGLRenderingContext.activeTexture') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; |
+ void activeTexture(int texture) native; |
- @DomName('WebGLRenderingContextBase.MAX_RENDERBUFFER_SIZE') |
+ @DomName('WebGLRenderingContext.attachShader') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int MAX_RENDERBUFFER_SIZE = 0x84E8; |
+ void attachShader(Program program, Shader shader) native; |
- @DomName('WebGLRenderingContextBase.MAX_TEXTURE_IMAGE_UNITS') |
+ @DomName('WebGLRenderingContext.bindAttribLocation') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int MAX_TEXTURE_IMAGE_UNITS = 0x8872; |
+ void bindAttribLocation(Program program, int index, String name) native; |
- @DomName('WebGLRenderingContextBase.MAX_TEXTURE_SIZE') |
+ @DomName('WebGLRenderingContext.bindBuffer') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int MAX_TEXTURE_SIZE = 0x0D33; |
+ void bindBuffer(int target, Buffer buffer) native; |
- @DomName('WebGLRenderingContextBase.MAX_VARYING_VECTORS') |
+ @DomName('WebGLRenderingContext.bindFramebuffer') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int MAX_VARYING_VECTORS = 0x8DFC; |
+ void bindFramebuffer(int target, Framebuffer framebuffer) native; |
- @DomName('WebGLRenderingContextBase.MAX_VERTEX_ATTRIBS') |
+ @DomName('WebGLRenderingContext.bindRenderbuffer') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int MAX_VERTEX_ATTRIBS = 0x8869; |
+ void bindRenderbuffer(int target, Renderbuffer renderbuffer) native; |
- @DomName('WebGLRenderingContextBase.MAX_VERTEX_TEXTURE_IMAGE_UNITS') |
+ @DomName('WebGLRenderingContext.bindTexture') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; |
+ void bindTexture(int target, Texture texture) native; |
- @DomName('WebGLRenderingContextBase.MAX_VERTEX_UNIFORM_VECTORS') |
+ @DomName('WebGLRenderingContext.blendColor') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; |
+ void blendColor(num red, num green, num blue, num alpha) native; |
- @DomName('WebGLRenderingContextBase.MAX_VIEWPORT_DIMS') |
+ @DomName('WebGLRenderingContext.blendEquation') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int MAX_VIEWPORT_DIMS = 0x0D3A; |
+ void blendEquation(int mode) native; |
- @DomName('WebGLRenderingContextBase.MEDIUM_FLOAT') |
+ @DomName('WebGLRenderingContext.blendEquationSeparate') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int MEDIUM_FLOAT = 0x8DF1; |
+ void blendEquationSeparate(int modeRGB, int modeAlpha) native; |
- @DomName('WebGLRenderingContextBase.MEDIUM_INT') |
+ @DomName('WebGLRenderingContext.blendFunc') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int MEDIUM_INT = 0x8DF4; |
+ void blendFunc(int sfactor, int dfactor) native; |
- @DomName('WebGLRenderingContextBase.MIRRORED_REPEAT') |
+ @DomName('WebGLRenderingContext.blendFuncSeparate') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int MIRRORED_REPEAT = 0x8370; |
+ void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) native; |
- @DomName('WebGLRenderingContextBase.NEAREST') |
+ @JSName('bufferData') |
+ /** |
+ * Buffers the specified data. |
+ * |
+ * The [bufferData] method is provided for WebGL API compatibility reasons, but |
+ * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] |
+ * depending on your purposes. |
+ */ |
+ @DomName('WebGLRenderingContext.bufferData') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int NEAREST = 0x2600; |
+ void bufferByteData(int target, ByteBuffer data, int usage) native; |
- @DomName('WebGLRenderingContextBase.NEAREST_MIPMAP_LINEAR') |
+ /** |
+ * Buffers the specified data. |
+ * |
+ * The [bufferData] method is provided for WebGL API compatibility reasons, but |
+ * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] |
+ * depending on your purposes. |
+ */ |
+ @DomName('WebGLRenderingContext.bufferData') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int NEAREST_MIPMAP_LINEAR = 0x2702; |
+ void bufferData(int target, data_OR_size, int usage) native; |
- @DomName('WebGLRenderingContextBase.NEAREST_MIPMAP_NEAREST') |
+ @JSName('bufferData') |
+ /** |
+ * Buffers the specified data. |
+ * |
+ * The [bufferData] method is provided for WebGL API compatibility reasons, but |
+ * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] |
+ * depending on your purposes. |
+ */ |
+ @DomName('WebGLRenderingContext.bufferData') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int NEAREST_MIPMAP_NEAREST = 0x2700; |
+ void bufferDataTyped(int target, TypedData data, int usage) native; |
- @DomName('WebGLRenderingContextBase.NEVER') |
+ @JSName('bufferSubData') |
+ /** |
+ * Buffers the specified subset of data. |
+ * |
+ * The [bufferSubData] method is provided for WebGL API compatibility reasons, but |
+ * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByteData] |
+ * depending on your purposes. |
+ */ |
+ @DomName('WebGLRenderingContext.bufferSubData') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int NEVER = 0x0200; |
+ void bufferSubByteData(int target, int offset, ByteBuffer data) native; |
- @DomName('WebGLRenderingContextBase.NICEST') |
+ /** |
+ * Buffers the specified subset of data. |
+ * |
+ * The [bufferSubData] method is provided for WebGL API compatibility reasons, but |
+ * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByteData] |
+ * depending on your purposes. |
+ */ |
+ @DomName('WebGLRenderingContext.bufferSubData') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int NICEST = 0x1102; |
+ void bufferSubData(int target, int offset, data) native; |
- @DomName('WebGLRenderingContextBase.NONE') |
+ @JSName('bufferSubData') |
+ /** |
+ * Buffers the specified subset of data. |
+ * |
+ * The [bufferSubData] method is provided for WebGL API compatibility reasons, but |
+ * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByteData] |
+ * depending on your purposes. |
+ */ |
+ @DomName('WebGLRenderingContext.bufferSubData') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int NONE = 0; |
+ void bufferSubDataTyped(int target, int offset, TypedData data) native; |
- @DomName('WebGLRenderingContextBase.NOTEQUAL') |
+ @DomName('WebGLRenderingContext.checkFramebufferStatus') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int NOTEQUAL = 0x0205; |
+ int checkFramebufferStatus(int target) native; |
- @DomName('WebGLRenderingContextBase.NO_ERROR') |
+ @DomName('WebGLRenderingContext.clear') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int NO_ERROR = 0; |
+ void clear(int mask) native; |
- @DomName('WebGLRenderingContextBase.ONE') |
+ @DomName('WebGLRenderingContext.clearColor') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ONE = 1; |
+ void clearColor(num red, num green, num blue, num alpha) native; |
- @DomName('WebGLRenderingContextBase.ONE_MINUS_CONSTANT_ALPHA') |
+ @DomName('WebGLRenderingContext.clearDepth') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ONE_MINUS_CONSTANT_ALPHA = 0x8004; |
+ void clearDepth(num depth) native; |
- @DomName('WebGLRenderingContextBase.ONE_MINUS_CONSTANT_COLOR') |
+ @DomName('WebGLRenderingContext.clearStencil') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ONE_MINUS_CONSTANT_COLOR = 0x8002; |
+ void clearStencil(int s) native; |
- @DomName('WebGLRenderingContextBase.ONE_MINUS_DST_ALPHA') |
+ @DomName('WebGLRenderingContext.colorMask') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ONE_MINUS_DST_ALPHA = 0x0305; |
+ void colorMask(bool red, bool green, bool blue, bool alpha) native; |
- @DomName('WebGLRenderingContextBase.ONE_MINUS_DST_COLOR') |
+ @DomName('WebGLRenderingContext.compileShader') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ONE_MINUS_DST_COLOR = 0x0307; |
+ void compileShader(Shader shader) native; |
- @DomName('WebGLRenderingContextBase.ONE_MINUS_SRC_ALPHA') |
+ @DomName('WebGLRenderingContext.compressedTexImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ONE_MINUS_SRC_ALPHA = 0x0303; |
+ void compressedTexImage2D(int target, int level, int internalformat, int width, int height, int border, TypedData data) native; |
- @DomName('WebGLRenderingContextBase.ONE_MINUS_SRC_COLOR') |
+ @DomName('WebGLRenderingContext.compressedTexSubImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ONE_MINUS_SRC_COLOR = 0x0301; |
+ void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, TypedData data) native; |
- @DomName('WebGLRenderingContextBase.OUT_OF_MEMORY') |
+ @DomName('WebGLRenderingContext.copyTexImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int OUT_OF_MEMORY = 0x0505; |
+ void copyTexImage2D(int target, int level, int internalformat, int x, int y, int width, int height, int border) native; |
- @DomName('WebGLRenderingContextBase.PACK_ALIGNMENT') |
+ @DomName('WebGLRenderingContext.copyTexSubImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int PACK_ALIGNMENT = 0x0D05; |
+ void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native; |
- @DomName('WebGLRenderingContextBase.POINTS') |
+ @DomName('WebGLRenderingContext.createBuffer') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int POINTS = 0x0000; |
+ Buffer createBuffer() native; |
- @DomName('WebGLRenderingContextBase.POLYGON_OFFSET_FACTOR') |
+ @DomName('WebGLRenderingContext.createFramebuffer') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int POLYGON_OFFSET_FACTOR = 0x8038; |
+ Framebuffer createFramebuffer() native; |
- @DomName('WebGLRenderingContextBase.POLYGON_OFFSET_FILL') |
+ @DomName('WebGLRenderingContext.createProgram') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int POLYGON_OFFSET_FILL = 0x8037; |
+ Program createProgram() native; |
- @DomName('WebGLRenderingContextBase.POLYGON_OFFSET_UNITS') |
+ @DomName('WebGLRenderingContext.createRenderbuffer') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int POLYGON_OFFSET_UNITS = 0x2A00; |
+ Renderbuffer createRenderbuffer() native; |
- @DomName('WebGLRenderingContextBase.RED_BITS') |
+ @DomName('WebGLRenderingContext.createShader') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RED_BITS = 0x0D52; |
+ Shader createShader(int type) native; |
- @DomName('WebGLRenderingContextBase.RENDERBUFFER') |
+ @DomName('WebGLRenderingContext.createTexture') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RENDERBUFFER = 0x8D41; |
+ Texture createTexture() native; |
- @DomName('WebGLRenderingContextBase.RENDERBUFFER_ALPHA_SIZE') |
+ @DomName('WebGLRenderingContext.cullFace') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RENDERBUFFER_ALPHA_SIZE = 0x8D53; |
+ void cullFace(int mode) native; |
- @DomName('WebGLRenderingContextBase.RENDERBUFFER_BINDING') |
+ @DomName('WebGLRenderingContext.deleteBuffer') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RENDERBUFFER_BINDING = 0x8CA7; |
+ void deleteBuffer(Buffer buffer) native; |
- @DomName('WebGLRenderingContextBase.RENDERBUFFER_BLUE_SIZE') |
+ @DomName('WebGLRenderingContext.deleteFramebuffer') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RENDERBUFFER_BLUE_SIZE = 0x8D52; |
+ void deleteFramebuffer(Framebuffer framebuffer) native; |
- @DomName('WebGLRenderingContextBase.RENDERBUFFER_DEPTH_SIZE') |
+ @DomName('WebGLRenderingContext.deleteProgram') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RENDERBUFFER_DEPTH_SIZE = 0x8D54; |
+ void deleteProgram(Program program) native; |
- @DomName('WebGLRenderingContextBase.RENDERBUFFER_GREEN_SIZE') |
+ @DomName('WebGLRenderingContext.deleteRenderbuffer') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RENDERBUFFER_GREEN_SIZE = 0x8D51; |
+ void deleteRenderbuffer(Renderbuffer renderbuffer) native; |
- @DomName('WebGLRenderingContextBase.RENDERBUFFER_HEIGHT') |
+ @DomName('WebGLRenderingContext.deleteShader') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RENDERBUFFER_HEIGHT = 0x8D43; |
+ void deleteShader(Shader shader) native; |
- @DomName('WebGLRenderingContextBase.RENDERBUFFER_INTERNAL_FORMAT') |
+ @DomName('WebGLRenderingContext.deleteTexture') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; |
+ void deleteTexture(Texture texture) native; |
- @DomName('WebGLRenderingContextBase.RENDERBUFFER_RED_SIZE') |
+ @DomName('WebGLRenderingContext.depthFunc') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RENDERBUFFER_RED_SIZE = 0x8D50; |
+ void depthFunc(int func) native; |
- @DomName('WebGLRenderingContextBase.RENDERBUFFER_STENCIL_SIZE') |
+ @DomName('WebGLRenderingContext.depthMask') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RENDERBUFFER_STENCIL_SIZE = 0x8D55; |
+ void depthMask(bool flag) native; |
- @DomName('WebGLRenderingContextBase.RENDERBUFFER_WIDTH') |
+ @DomName('WebGLRenderingContext.depthRange') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RENDERBUFFER_WIDTH = 0x8D42; |
+ void depthRange(num zNear, num zFar) native; |
- @DomName('WebGLRenderingContextBase.RENDERER') |
+ @DomName('WebGLRenderingContext.detachShader') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RENDERER = 0x1F01; |
+ void detachShader(Program program, Shader shader) native; |
- @DomName('WebGLRenderingContextBase.REPEAT') |
+ @DomName('WebGLRenderingContext.disable') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int REPEAT = 0x2901; |
+ void disable(int cap) native; |
- @DomName('WebGLRenderingContextBase.REPLACE') |
+ @DomName('WebGLRenderingContext.disableVertexAttribArray') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int REPLACE = 0x1E01; |
+ void disableVertexAttribArray(int index) native; |
- @DomName('WebGLRenderingContextBase.RGB') |
+ @DomName('WebGLRenderingContext.drawArrays') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RGB = 0x1907; |
+ void drawArrays(int mode, int first, int count) native; |
- @DomName('WebGLRenderingContextBase.RGB565') |
+ @DomName('WebGLRenderingContext.drawElements') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RGB565 = 0x8D62; |
+ void drawElements(int mode, int count, int type, int offset) native; |
- @DomName('WebGLRenderingContextBase.RGB5_A1') |
+ @DomName('WebGLRenderingContext.enable') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RGB5_A1 = 0x8057; |
+ void enable(int cap) native; |
- @DomName('WebGLRenderingContextBase.RGBA') |
+ @DomName('WebGLRenderingContext.enableVertexAttribArray') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int RGBA = 0x1908; |
+ void enableVertexAttribArray(int index) native; |
- @DomName('WebGLRenderingContextBase.RGBA4') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int RGBA4 = 0x8056; |
- |
- @DomName('WebGLRenderingContextBase.SAMPLER_2D') |
+ @DomName('WebGLRenderingContext.finish') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SAMPLER_2D = 0x8B5E; |
+ void finish() native; |
- @DomName('WebGLRenderingContextBase.SAMPLER_CUBE') |
+ @DomName('WebGLRenderingContext.flush') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SAMPLER_CUBE = 0x8B60; |
+ void flush() native; |
- @DomName('WebGLRenderingContextBase.SAMPLES') |
+ @DomName('WebGLRenderingContext.framebufferRenderbuffer') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SAMPLES = 0x80A9; |
+ void framebufferRenderbuffer(int target, int attachment, int renderbuffertarget, Renderbuffer renderbuffer) native; |
- @DomName('WebGLRenderingContextBase.SAMPLE_ALPHA_TO_COVERAGE') |
+ @DomName('WebGLRenderingContext.framebufferTexture2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SAMPLE_ALPHA_TO_COVERAGE = 0x809E; |
+ void framebufferTexture2D(int target, int attachment, int textarget, Texture texture, int level) native; |
- @DomName('WebGLRenderingContextBase.SAMPLE_BUFFERS') |
+ @DomName('WebGLRenderingContext.frontFace') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SAMPLE_BUFFERS = 0x80A8; |
+ void frontFace(int mode) native; |
- @DomName('WebGLRenderingContextBase.SAMPLE_COVERAGE') |
+ @DomName('WebGLRenderingContext.generateMipmap') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SAMPLE_COVERAGE = 0x80A0; |
+ void generateMipmap(int target) native; |
- @DomName('WebGLRenderingContextBase.SAMPLE_COVERAGE_INVERT') |
+ @DomName('WebGLRenderingContext.getActiveAttrib') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SAMPLE_COVERAGE_INVERT = 0x80AB; |
+ ActiveInfo getActiveAttrib(Program program, int index) native; |
- @DomName('WebGLRenderingContextBase.SAMPLE_COVERAGE_VALUE') |
+ @DomName('WebGLRenderingContext.getActiveUniform') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SAMPLE_COVERAGE_VALUE = 0x80AA; |
+ ActiveInfo getActiveUniform(Program program, int index) native; |
- @DomName('WebGLRenderingContextBase.SCISSOR_BOX') |
+ @DomName('WebGLRenderingContext.getAttachedShaders') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SCISSOR_BOX = 0x0C10; |
+ void getAttachedShaders(Program program) native; |
- @DomName('WebGLRenderingContextBase.SCISSOR_TEST') |
+ @DomName('WebGLRenderingContext.getAttribLocation') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SCISSOR_TEST = 0x0C11; |
+ int getAttribLocation(Program program, String name) native; |
- @DomName('WebGLRenderingContextBase.SHADER_TYPE') |
+ @DomName('WebGLRenderingContext.getBufferParameter') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SHADER_TYPE = 0x8B4F; |
+ @Creates('int|Null') |
+ @Returns('int|Null') |
+ Object getBufferParameter(int target, int pname) native; |
- @DomName('WebGLRenderingContextBase.SHADING_LANGUAGE_VERSION') |
+ @DomName('WebGLRenderingContext.getContextAttributes') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SHADING_LANGUAGE_VERSION = 0x8B8C; |
- |
- @DomName('WebGLRenderingContextBase.SHORT') |
+ @Creates('ContextAttributes|=Object') |
+ ContextAttributes getContextAttributes() { |
+ return convertNativeToDart_ContextAttributes(_getContextAttributes_1()); |
+ } |
+ @JSName('getContextAttributes') |
+ @DomName('WebGLRenderingContext.getContextAttributes') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SHORT = 0x1402; |
+ @Creates('ContextAttributes|=Object') |
+ _getContextAttributes_1() native; |
- @DomName('WebGLRenderingContextBase.SRC_ALPHA') |
+ @DomName('WebGLRenderingContext.getError') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SRC_ALPHA = 0x0302; |
+ int getError() native; |
- @DomName('WebGLRenderingContextBase.SRC_ALPHA_SATURATE') |
+ @DomName('WebGLRenderingContext.getExtension') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SRC_ALPHA_SATURATE = 0x0308; |
+ Object getExtension(String name) native; |
- @DomName('WebGLRenderingContextBase.SRC_COLOR') |
+ @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SRC_COLOR = 0x0300; |
+ @Creates('int|Renderbuffer|Texture|Null') |
+ @Returns('int|Renderbuffer|Texture|Null') |
+ Object getFramebufferAttachmentParameter(int target, int attachment, int pname) native; |
- @DomName('WebGLRenderingContextBase.STATIC_DRAW') |
+ @DomName('WebGLRenderingContext.getParameter') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STATIC_DRAW = 0x88E4; |
+ @Creates('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List|NativeUint32List|Framebuffer|Renderbuffer|Texture') |
+ @Returns('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List|NativeUint32List|Framebuffer|Renderbuffer|Texture') |
+ Object getParameter(int pname) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_ATTACHMENT') |
+ @DomName('WebGLRenderingContext.getProgramInfoLog') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_ATTACHMENT = 0x8D20; |
+ String getProgramInfoLog(Program program) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_BACK_FAIL') |
+ @DomName('WebGLRenderingContext.getProgramParameter') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_BACK_FAIL = 0x8801; |
+ @Creates('int|bool|Null') |
+ @Returns('int|bool|Null') |
+ Object getProgramParameter(Program program, int pname) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_BACK_FUNC') |
+ @DomName('WebGLRenderingContext.getRenderbufferParameter') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_BACK_FUNC = 0x8800; |
+ @Creates('int|Null') |
+ @Returns('int|Null') |
+ Object getRenderbufferParameter(int target, int pname) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_BACK_PASS_DEPTH_FAIL') |
+ @DomName('WebGLRenderingContext.getShaderInfoLog') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; |
+ String getShaderInfoLog(Shader shader) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_BACK_PASS_DEPTH_PASS') |
+ @DomName('WebGLRenderingContext.getShaderParameter') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; |
+ @Creates('int|bool|Null') |
+ @Returns('int|bool|Null') |
+ Object getShaderParameter(Shader shader, int pname) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_BACK_REF') |
+ @DomName('WebGLRenderingContext.getShaderPrecisionFormat') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_BACK_REF = 0x8CA3; |
+ ShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisiontype) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_BACK_VALUE_MASK') |
+ @DomName('WebGLRenderingContext.getShaderSource') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_BACK_VALUE_MASK = 0x8CA4; |
+ String getShaderSource(Shader shader) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_BACK_WRITEMASK') |
+ @DomName('WebGLRenderingContext.getSupportedExtensions') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_BACK_WRITEMASK = 0x8CA5; |
+ List<String> getSupportedExtensions() native; |
- @DomName('WebGLRenderingContextBase.STENCIL_BITS') |
+ @DomName('WebGLRenderingContext.getTexParameter') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_BITS = 0x0D57; |
+ @Creates('int|Null') |
+ @Returns('int|Null') |
+ Object getTexParameter(int target, int pname) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_BUFFER_BIT') |
+ @DomName('WebGLRenderingContext.getUniform') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_BUFFER_BIT = 0x00000400; |
+ @Creates('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List|NativeUint32List') |
+ @Returns('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List|NativeUint32List') |
+ Object getUniform(Program program, UniformLocation location) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_CLEAR_VALUE') |
+ @DomName('WebGLRenderingContext.getUniformLocation') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_CLEAR_VALUE = 0x0B91; |
+ UniformLocation getUniformLocation(Program program, String name) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_FAIL') |
+ @DomName('WebGLRenderingContext.getVertexAttrib') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_FAIL = 0x0B94; |
+ @Creates('Null|num|bool|NativeFloat32List|Buffer') |
+ @Returns('Null|num|bool|NativeFloat32List|Buffer') |
+ Object getVertexAttrib(int index, int pname) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_FUNC') |
+ @DomName('WebGLRenderingContext.getVertexAttribOffset') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_FUNC = 0x0B92; |
+ int getVertexAttribOffset(int index, int pname) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_INDEX') |
+ @DomName('WebGLRenderingContext.hint') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_INDEX = 0x1901; |
+ void hint(int target, int mode) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_INDEX8') |
+ @DomName('WebGLRenderingContext.isBuffer') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_INDEX8 = 0x8D48; |
+ bool isBuffer(Buffer buffer) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_PASS_DEPTH_FAIL') |
+ @DomName('WebGLRenderingContext.isContextLost') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_PASS_DEPTH_FAIL = 0x0B95; |
+ bool isContextLost() native; |
- @DomName('WebGLRenderingContextBase.STENCIL_PASS_DEPTH_PASS') |
+ @DomName('WebGLRenderingContext.isEnabled') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_PASS_DEPTH_PASS = 0x0B96; |
+ bool isEnabled(int cap) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_REF') |
+ @DomName('WebGLRenderingContext.isFramebuffer') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_REF = 0x0B97; |
+ bool isFramebuffer(Framebuffer framebuffer) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_TEST') |
+ @DomName('WebGLRenderingContext.isProgram') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_TEST = 0x0B90; |
+ bool isProgram(Program program) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_VALUE_MASK') |
+ @DomName('WebGLRenderingContext.isRenderbuffer') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_VALUE_MASK = 0x0B93; |
+ bool isRenderbuffer(Renderbuffer renderbuffer) native; |
- @DomName('WebGLRenderingContextBase.STENCIL_WRITEMASK') |
+ @DomName('WebGLRenderingContext.isShader') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STENCIL_WRITEMASK = 0x0B98; |
+ bool isShader(Shader shader) native; |
- @DomName('WebGLRenderingContextBase.STREAM_DRAW') |
+ @DomName('WebGLRenderingContext.isTexture') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int STREAM_DRAW = 0x88E0; |
+ bool isTexture(Texture texture) native; |
- @DomName('WebGLRenderingContextBase.SUBPIXEL_BITS') |
+ @DomName('WebGLRenderingContext.lineWidth') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int SUBPIXEL_BITS = 0x0D50; |
+ void lineWidth(num width) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE') |
+ @DomName('WebGLRenderingContext.linkProgram') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE = 0x1702; |
+ void linkProgram(Program program) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE0') |
+ @DomName('WebGLRenderingContext.pixelStorei') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE0 = 0x84C0; |
+ void pixelStorei(int pname, int param) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE1') |
+ @DomName('WebGLRenderingContext.polygonOffset') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE1 = 0x84C1; |
+ void polygonOffset(num factor, num units) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE10') |
+ @DomName('WebGLRenderingContext.readPixels') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE10 = 0x84CA; |
+ void readPixels(int x, int y, int width, int height, int format, int type, TypedData pixels) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE11') |
+ @DomName('WebGLRenderingContext.renderbufferStorage') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE11 = 0x84CB; |
+ void renderbufferStorage(int target, int internalformat, int width, int height) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE12') |
+ @DomName('WebGLRenderingContext.sampleCoverage') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE12 = 0x84CC; |
+ void sampleCoverage(num value, bool invert) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE13') |
+ @DomName('WebGLRenderingContext.scissor') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE13 = 0x84CD; |
+ void scissor(int x, int y, int width, int height) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE14') |
+ @DomName('WebGLRenderingContext.shaderSource') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE14 = 0x84CE; |
+ void shaderSource(Shader shader, String string) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE15') |
+ @DomName('WebGLRenderingContext.stencilFunc') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE15 = 0x84CF; |
+ void stencilFunc(int func, int ref, int mask) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE16') |
+ @DomName('WebGLRenderingContext.stencilFuncSeparate') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE16 = 0x84D0; |
+ void stencilFuncSeparate(int face, int func, int ref, int mask) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE17') |
+ @DomName('WebGLRenderingContext.stencilMask') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE17 = 0x84D1; |
+ void stencilMask(int mask) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE18') |
+ @DomName('WebGLRenderingContext.stencilMaskSeparate') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE18 = 0x84D2; |
+ void stencilMaskSeparate(int face, int mask) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE19') |
+ @DomName('WebGLRenderingContext.stencilOp') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE19 = 0x84D3; |
+ void stencilOp(int fail, int zfail, int zpass) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE2') |
+ @DomName('WebGLRenderingContext.stencilOpSeparate') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE2 = 0x84C2; |
+ void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
- @DomName('WebGLRenderingContextBase.TEXTURE20') |
+ /** |
+ * Updates the currently bound texture to [data]. |
+ * |
+ * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
+ * (or for more specificity, the more specialized [texImage2DImageData], |
+ * [texImage2DCanvas], [texImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE20 = 0x84D4; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE21') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE21 = 0x84D5; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE22') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE22 = 0x84D6; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE23') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE23 = 0x84D7; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE24') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE24 = 0x84D8; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE25') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE25 = 0x84D9; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE26') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE26 = 0x84DA; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE27') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE27 = 0x84DB; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE28') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE28 = 0x84DC; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE29') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE29 = 0x84DD; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE3') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE3 = 0x84C3; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE30') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE30 = 0x84DE; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE31') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE31 = 0x84DF; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE4') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE4 = 0x84C4; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE5') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE5 = 0x84C5; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE6') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE6 = 0x84C6; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE7') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE7 = 0x84C7; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE8') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE8 = 0x84C8; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE9') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE9 = 0x84C9; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE_2D') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE_2D = 0x0DE1; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE_BINDING_2D') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE_BINDING_2D = 0x8069; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE_BINDING_CUBE_MAP') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE_BINDING_CUBE_MAP = 0x8514; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE_CUBE_MAP') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE_CUBE_MAP = 0x8513; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE_CUBE_MAP_NEGATIVE_X') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE_CUBE_MAP_NEGATIVE_Y') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE_CUBE_MAP_NEGATIVE_Z') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE_CUBE_MAP_POSITIVE_X') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE_CUBE_MAP_POSITIVE_Y') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE_CUBE_MAP_POSITIVE_Z') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE_MAG_FILTER') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE_MAG_FILTER = 0x2800; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE_MIN_FILTER') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE_MIN_FILTER = 0x2801; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE_WRAP_S') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE_WRAP_S = 0x2802; |
- |
- @DomName('WebGLRenderingContextBase.TEXTURE_WRAP_T') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TEXTURE_WRAP_T = 0x2803; |
- |
- @DomName('WebGLRenderingContextBase.TRIANGLES') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TRIANGLES = 0x0004; |
- |
- @DomName('WebGLRenderingContextBase.TRIANGLE_FAN') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TRIANGLE_FAN = 0x0006; |
- |
- @DomName('WebGLRenderingContextBase.TRIANGLE_STRIP') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int TRIANGLE_STRIP = 0x0005; |
- |
- @DomName('WebGLRenderingContextBase.UNPACK_ALIGNMENT') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int UNPACK_ALIGNMENT = 0x0CF5; |
- |
- @DomName('WebGLRenderingContextBase.UNPACK_COLORSPACE_CONVERSION_WEBGL') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; |
- |
- @DomName('WebGLRenderingContextBase.UNPACK_FLIP_Y_WEBGL') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int UNPACK_FLIP_Y_WEBGL = 0x9240; |
- |
- @DomName('WebGLRenderingContextBase.UNPACK_PREMULTIPLY_ALPHA_WEBGL') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; |
- |
- @DomName('WebGLRenderingContextBase.UNSIGNED_BYTE') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int UNSIGNED_BYTE = 0x1401; |
- |
- @DomName('WebGLRenderingContextBase.UNSIGNED_INT') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int UNSIGNED_INT = 0x1405; |
- |
- @DomName('WebGLRenderingContextBase.UNSIGNED_SHORT') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int UNSIGNED_SHORT = 0x1403; |
- |
- @DomName('WebGLRenderingContextBase.UNSIGNED_SHORT_4_4_4_4') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int UNSIGNED_SHORT_4_4_4_4 = 0x8033; |
- |
- @DomName('WebGLRenderingContextBase.UNSIGNED_SHORT_5_5_5_1') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int UNSIGNED_SHORT_5_5_5_1 = 0x8034; |
- |
- @DomName('WebGLRenderingContextBase.UNSIGNED_SHORT_5_6_5') |
- @DocsEditable() |
- @Experimental() // untriaged |
- static const int UNSIGNED_SHORT_5_6_5 = 0x8363; |
- |
- @DomName('WebGLRenderingContextBase.VALIDATE_STATUS') |
+ 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]) { |
+ if (pixels != null && type != null && format != null && (border_OR_canvas_OR_image_OR_pixels_OR_video is int)) { |
+ _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); |
+ return; |
+ } |
+ if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == null && pixels == null) { |
+ var pixels_1 = convertDartToNative_ImageData(border_OR_canvas_OR_image_OR_pixels_OR_video); |
+ _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_type, pixels_1); |
+ return; |
+ } |
+ if ((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, border_OR_canvas_OR_image_OR_pixels_OR_video); |
+ return; |
+ } |
+ if ((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, border_OR_canvas_OR_image_OR_pixels_OR_video); |
+ return; |
+ } |
+ if ((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, border_OR_canvas_OR_image_OR_pixels_OR_video); |
+ return; |
+ } |
+ throw new ArgumentError("Incorrect number or type of arguments"); |
+ } |
+ @JSName('texImage2D') |
+ /** |
+ * Updates the currently bound texture to [data]. |
+ * |
+ * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
+ * (or for more specificity, the more specialized [texImage2DImageData], |
+ * [texImage2DCanvas], [texImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int VALIDATE_STATUS = 0x8B83; |
- |
- @DomName('WebGLRenderingContextBase.VENDOR') |
+ void _texImage2D_1(target, level, internalformat, width, height, int border, format, type, TypedData pixels) native; |
+ @JSName('texImage2D') |
+ /** |
+ * Updates the currently bound texture to [data]. |
+ * |
+ * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
+ * (or for more specificity, the more specialized [texImage2DImageData], |
+ * [texImage2DCanvas], [texImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int VENDOR = 0x1F00; |
- |
- @DomName('WebGLRenderingContextBase.VERSION') |
+ void _texImage2D_2(target, level, internalformat, format, type, pixels) native; |
+ @JSName('texImage2D') |
+ /** |
+ * Updates the currently bound texture to [data]. |
+ * |
+ * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
+ * (or for more specificity, the more specialized [texImage2DImageData], |
+ * [texImage2DCanvas], [texImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int VERSION = 0x1F02; |
- |
- @DomName('WebGLRenderingContextBase.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING') |
+ void _texImage2D_3(target, level, internalformat, format, type, ImageElement image) native; |
+ @JSName('texImage2D') |
+ /** |
+ * Updates the currently bound texture to [data]. |
+ * |
+ * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
+ * (or for more specificity, the more specialized [texImage2DImageData], |
+ * [texImage2DCanvas], [texImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; |
- |
- @DomName('WebGLRenderingContextBase.VERTEX_ATTRIB_ARRAY_ENABLED') |
+ void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native; |
+ @JSName('texImage2D') |
+ /** |
+ * Updates the currently bound texture to [data]. |
+ * |
+ * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
+ * (or for more specificity, the more specialized [texImage2DImageData], |
+ * [texImage2DCanvas], [texImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; |
+ void _texImage2D_5(target, level, internalformat, format, type, VideoElement video) native; |
- @DomName('WebGLRenderingContextBase.VERTEX_ATTRIB_ARRAY_NORMALIZED') |
+ @JSName('texImage2D') |
+ /** |
+ * Updates the currently bound texture to [data]. |
+ * |
+ * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
+ * (or for more specificity, the more specialized [texImage2DImageData], |
+ * [texImage2DCanvas], [texImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; |
+ void texImage2DCanvas(int target, int level, int internalformat, int format, int type, CanvasElement canvas) native; |
- @DomName('WebGLRenderingContextBase.VERTEX_ATTRIB_ARRAY_POINTER') |
+ @JSName('texImage2D') |
+ /** |
+ * Updates the currently bound texture to [data]. |
+ * |
+ * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
+ * (or for more specificity, the more specialized [texImage2DImageData], |
+ * [texImage2DCanvas], [texImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; |
+ void texImage2DImage(int target, int level, int internalformat, int format, int type, ImageElement image) native; |
- @DomName('WebGLRenderingContextBase.VERTEX_ATTRIB_ARRAY_SIZE') |
+ /** |
+ * Updates the currently bound texture to [data]. |
+ * |
+ * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
+ * (or for more specificity, the more specialized [texImage2DImageData], |
+ * [texImage2DCanvas], [texImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; |
- |
- @DomName('WebGLRenderingContextBase.VERTEX_ATTRIB_ARRAY_STRIDE') |
+ void texImage2DImageData(int target, int level, int internalformat, int format, int type, ImageData pixels) { |
+ var pixels_1 = convertDartToNative_ImageData(pixels); |
+ _texImage2DImageData_1(target, level, internalformat, format, type, pixels_1); |
+ return; |
+ } |
+ @JSName('texImage2D') |
+ /** |
+ * Updates the currently bound texture to [data]. |
+ * |
+ * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
+ * (or for more specificity, the more specialized [texImage2DImageData], |
+ * [texImage2DCanvas], [texImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; |
+ void _texImage2DImageData_1(target, level, internalformat, format, type, pixels) native; |
- @DomName('WebGLRenderingContextBase.VERTEX_ATTRIB_ARRAY_TYPE') |
+ @JSName('texImage2D') |
+ /** |
+ * Updates the currently bound texture to [data]. |
+ * |
+ * The [texImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
+ * (or for more specificity, the more specialized [texImage2DImageData], |
+ * [texImage2DCanvas], [texImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; |
+ void texImage2DVideo(int target, int level, int internalformat, int format, int type, VideoElement video) native; |
- @DomName('WebGLRenderingContextBase.VERTEX_SHADER') |
+ @DomName('WebGLRenderingContext.texParameterf') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int VERTEX_SHADER = 0x8B31; |
+ void texParameterf(int target, int pname, num param) native; |
- @DomName('WebGLRenderingContextBase.VIEWPORT') |
+ @DomName('WebGLRenderingContext.texParameteri') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int VIEWPORT = 0x0BA2; |
+ void texParameteri(int target, int pname, int param) native; |
- @DomName('WebGLRenderingContextBase.ZERO') |
+ /** |
+ * Updates a sub-rectangle of the currently bound texture to [data]. |
+ * |
+ * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
+ * (or for more specificity, the more specialized [texSubImage2DImageData], |
+ * [texSubImage2DCanvas], [texSubImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texSubImage2D') |
@DocsEditable() |
- @Experimental() // untriaged |
- static const int ZERO = 0; |
- |
- final CanvasElement canvas; |
- |
- final int drawingBufferHeight; |
- |
- final int drawingBufferWidth; |
- |
- void 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 bufferByteData(int target, ByteBuffer data, int usage); |
- |
- void bufferData(int target, data_OR_size, int usage); |
- |
- void bufferDataTyped(int target, TypedData data, int usage); |
- |
- void bufferSubByteData(int target, int offset, ByteBuffer data); |
- |
- void bufferSubData(int target, int offset, data); |
- |
- void bufferSubDataTyped(int target, int offset, TypedData data); |
- |
- int checkFramebufferStatus(int target); |
- |
- void 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); |
- |
- Buffer createBuffer(); |
- |
- Framebuffer createFramebuffer(); |
- |
- Program createProgram(); |
- |
- Renderbuffer createRenderbuffer(); |
- |
- Shader createShader(int type); |
- |
- Texture createTexture(); |
- |
- void 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); |
- |
- ActiveInfo getActiveAttrib(Program program, int index); |
- |
- ActiveInfo getActiveUniform(Program program, int index); |
- |
- void getAttachedShaders(Program program); |
- |
- int getAttribLocation(Program program, String name); |
- |
- Object getBufferParameter(int target, int pname); |
- |
- ContextAttributes getContextAttributes(); |
- |
- int getError(); |
- |
- Object getExtension(String name); |
- |
- Object getFramebufferAttachmentParameter(int target, int attachment, int pname); |
- |
- Object getParameter(int pname); |
- |
- String getProgramInfoLog(Program program); |
- |
- Object getProgramParameter(Program program, int pname); |
- |
- Object getRenderbufferParameter(int target, int pname); |
- |
- String getShaderInfoLog(Shader shader); |
- |
- Object getShaderParameter(Shader shader, int pname); |
- |
- ShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisiontype); |
- |
- String getShaderSource(Shader shader); |
- |
- List<String> getSupportedExtensions(); |
- |
- Object getTexParameter(int target, int pname); |
- |
- Object getUniform(Program program, UniformLocation location); |
- |
- UniformLocation getUniformLocation(Program program, String name); |
- |
- Object getVertexAttrib(int index, int pname); |
- |
- int getVertexAttribOffset(int index, int pname); |
- |
- void hint(int target, int mode); |
- |
- bool 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); |
- |
- void lineWidth(num width); |
- |
- void linkProgram(Program program); |
- |
- void 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 texImage2DCanvas(int target, int level, int internalformat, int format, int type, CanvasElement canvas); |
- |
- void texImage2DImage(int target, int level, int internalformat, int format, int type, ImageElement image); |
+ 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]) { |
+ if (pixels != null && type != null && (canvas_OR_format_OR_image_OR_pixels_OR_video is int)) { |
+ _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); |
+ return; |
+ } |
+ if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == null) { |
+ var pixels_1 = convertDartToNative_ImageData(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 ((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, canvas_OR_format_OR_image_OR_pixels_OR_video); |
+ return; |
+ } |
+ if ((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, canvas_OR_format_OR_image_OR_pixels_OR_video); |
+ return; |
+ } |
+ if ((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, canvas_OR_format_OR_image_OR_pixels_OR_video); |
+ return; |
+ } |
+ throw new ArgumentError("Incorrect number or type of arguments"); |
+ } |
+ @JSName('texSubImage2D') |
+ /** |
+ * Updates a sub-rectangle of the currently bound texture to [data]. |
+ * |
+ * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
+ * (or for more specificity, the more specialized [texSubImage2DImageData], |
+ * [texSubImage2DCanvas], [texSubImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DocsEditable() |
+ void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int format, type, TypedData pixels) native; |
+ @JSName('texSubImage2D') |
+ /** |
+ * Updates a sub-rectangle of the currently bound texture to [data]. |
+ * |
+ * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
+ * (or for more specificity, the more specialized [texSubImage2DImageData], |
+ * [texSubImage2DCanvas], [texSubImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DocsEditable() |
+ void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) native; |
+ @JSName('texSubImage2D') |
+ /** |
+ * Updates a sub-rectangle of the currently bound texture to [data]. |
+ * |
+ * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
+ * (or for more specificity, the more specialized [texSubImage2DImageData], |
+ * [texSubImage2DCanvas], [texSubImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DocsEditable() |
+ void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElement image) native; |
+ @JSName('texSubImage2D') |
+ /** |
+ * Updates a sub-rectangle of the currently bound texture to [data]. |
+ * |
+ * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
+ * (or for more specificity, the more specialized [texSubImage2DImageData], |
+ * [texSubImage2DCanvas], [texSubImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DocsEditable() |
+ void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasElement canvas) native; |
+ @JSName('texSubImage2D') |
+ /** |
+ * Updates a sub-rectangle of the currently bound texture to [data]. |
+ * |
+ * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
+ * (or for more specificity, the more specialized [texSubImage2DImageData], |
+ * [texSubImage2DCanvas], [texSubImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DocsEditable() |
+ void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElement video) native; |
- void texImage2DImageData(int target, int level, int internalformat, int format, int type, ImageData pixels); |
+ @JSName('texSubImage2D') |
+ /** |
+ * Updates a sub-rectangle of the currently bound texture to [data]. |
+ * |
+ * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
+ * (or for more specificity, the more specialized [texSubImage2DImageData], |
+ * [texSubImage2DCanvas], [texSubImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DocsEditable() |
+ void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int format, int type, CanvasElement canvas) native; |
- void texImage2DVideo(int target, int level, int internalformat, int format, int type, VideoElement video); |
+ @JSName('texSubImage2D') |
+ /** |
+ * Updates a sub-rectangle of the currently bound texture to [data]. |
+ * |
+ * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
+ * (or for more specificity, the more specialized [texSubImage2DImageData], |
+ * [texSubImage2DCanvas], [texSubImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DocsEditable() |
+ void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int format, int type, ImageElement image) native; |
- void texParameterf(int target, int pname, num param); |
+ /** |
+ * Updates a sub-rectangle of the currently bound texture to [data]. |
+ * |
+ * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
+ * (or for more specificity, the more specialized [texSubImage2DImageData], |
+ * [texSubImage2DCanvas], [texSubImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DocsEditable() |
+ void texSubImage2DImageData(int target, int level, int xoffset, int yoffset, int format, int type, ImageData pixels) { |
+ var pixels_1 = convertDartToNative_ImageData(pixels); |
+ _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pixels_1); |
+ return; |
+ } |
+ @JSName('texSubImage2D') |
+ /** |
+ * Updates a sub-rectangle of the currently bound texture to [data]. |
+ * |
+ * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
+ * (or for more specificity, the more specialized [texSubImage2DImageData], |
+ * [texSubImage2DCanvas], [texSubImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DocsEditable() |
+ void _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pixels) native; |
- void texParameteri(int target, int pname, int param); |
+ @JSName('texSubImage2D') |
+ /** |
+ * Updates a sub-rectangle of the currently bound texture to [data]. |
+ * |
+ * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it |
+ * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2DTyped] |
+ * (or for more specificity, the more specialized [texSubImage2DImageData], |
+ * [texSubImage2DCanvas], [texSubImage2DVideo]). |
+ */ |
+ @DomName('WebGLRenderingContext.texSubImage2D') |
+ @DocsEditable() |
+ void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int format, int type, VideoElement video) native; |
- 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]); |
+ @DomName('WebGLRenderingContext.uniform1f') |
+ @DocsEditable() |
+ void uniform1f(UniformLocation location, num x) native; |
- void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int format, int type, CanvasElement canvas); |
+ @DomName('WebGLRenderingContext.uniform1fv') |
+ @DocsEditable() |
+ void uniform1fv(UniformLocation location, Float32List v) native; |
- void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int format, int type, ImageElement image); |
+ @DomName('WebGLRenderingContext.uniform1i') |
+ @DocsEditable() |
+ void uniform1i(UniformLocation location, int x) native; |
- void texSubImage2DImageData(int target, int level, int xoffset, int yoffset, int format, int type, ImageData pixels); |
+ @DomName('WebGLRenderingContext.uniform1iv') |
+ @DocsEditable() |
+ void uniform1iv(UniformLocation location, Int32List v) native; |
- void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int format, int type, VideoElement video); |
+ @DomName('WebGLRenderingContext.uniform2f') |
+ @DocsEditable() |
+ void uniform2f(UniformLocation location, num x, num y) native; |
- void uniform1f(UniformLocation location, num x); |
+ @DomName('WebGLRenderingContext.uniform2fv') |
+ @DocsEditable() |
+ void uniform2fv(UniformLocation location, Float32List v) native; |
- void uniform1fv(UniformLocation location, Float32List v); |
+ @DomName('WebGLRenderingContext.uniform2i') |
+ @DocsEditable() |
+ void uniform2i(UniformLocation location, int x, int y) native; |
- void uniform1i(UniformLocation location, int x); |
+ @DomName('WebGLRenderingContext.uniform2iv') |
+ @DocsEditable() |
+ void uniform2iv(UniformLocation location, Int32List v) native; |
- void uniform1iv(UniformLocation location, Int32List v); |
+ @DomName('WebGLRenderingContext.uniform3f') |
+ @DocsEditable() |
+ void uniform3f(UniformLocation location, num x, num y, num z) native; |
- void uniform2f(UniformLocation location, num x, num y); |
+ @DomName('WebGLRenderingContext.uniform3fv') |
+ @DocsEditable() |
+ void uniform3fv(UniformLocation location, Float32List v) native; |
- void uniform2fv(UniformLocation location, Float32List v); |
+ @DomName('WebGLRenderingContext.uniform3i') |
+ @DocsEditable() |
+ void uniform3i(UniformLocation location, int x, int y, int z) native; |
- void uniform2i(UniformLocation location, int x, int y); |
+ @DomName('WebGLRenderingContext.uniform3iv') |
+ @DocsEditable() |
+ void uniform3iv(UniformLocation location, Int32List v) native; |
- void uniform2iv(UniformLocation location, Int32List v); |
+ @DomName('WebGLRenderingContext.uniform4f') |
+ @DocsEditable() |
+ void uniform4f(UniformLocation location, num x, num y, num z, num w) native; |
- void uniform3f(UniformLocation location, num x, num y, num z); |
+ @DomName('WebGLRenderingContext.uniform4fv') |
+ @DocsEditable() |
+ void uniform4fv(UniformLocation location, Float32List v) native; |
- void uniform3fv(UniformLocation location, Float32List v); |
+ @DomName('WebGLRenderingContext.uniform4i') |
+ @DocsEditable() |
+ void uniform4i(UniformLocation location, int x, int y, int z, int w) native; |
- void uniform3i(UniformLocation location, int x, int y, int z); |
+ @DomName('WebGLRenderingContext.uniform4iv') |
+ @DocsEditable() |
+ void uniform4iv(UniformLocation location, Int32List v) native; |
- void uniform3iv(UniformLocation location, Int32List v); |
+ @DomName('WebGLRenderingContext.uniformMatrix2fv') |
+ @DocsEditable() |
+ void uniformMatrix2fv(UniformLocation location, bool transpose, Float32List array) native; |
- void uniform4f(UniformLocation location, num x, num y, num z, num w); |
+ @DomName('WebGLRenderingContext.uniformMatrix3fv') |
+ @DocsEditable() |
+ void uniformMatrix3fv(UniformLocation location, bool transpose, Float32List array) native; |
- void uniform4fv(UniformLocation location, Float32List v); |
+ @DomName('WebGLRenderingContext.uniformMatrix4fv') |
+ @DocsEditable() |
+ void uniformMatrix4fv(UniformLocation location, bool transpose, Float32List array) native; |
- void uniform4i(UniformLocation location, int x, int y, int z, int w); |
+ @DomName('WebGLRenderingContext.useProgram') |
+ @DocsEditable() |
+ void useProgram(Program program) native; |
- void uniform4iv(UniformLocation location, Int32List v); |
+ @DomName('WebGLRenderingContext.validateProgram') |
+ @DocsEditable() |
+ void validateProgram(Program program) native; |
- void uniformMatrix2fv(UniformLocation location, bool transpose, Float32List array); |
+ @DomName('WebGLRenderingContext.vertexAttrib1f') |
+ @DocsEditable() |
+ void vertexAttrib1f(int indx, num x) native; |
- void uniformMatrix3fv(UniformLocation location, bool transpose, Float32List array); |
+ @DomName('WebGLRenderingContext.vertexAttrib1fv') |
+ @DocsEditable() |
+ void vertexAttrib1fv(int indx, Float32List values) native; |
- void uniformMatrix4fv(UniformLocation location, bool transpose, Float32List array); |
+ @DomName('WebGLRenderingContext.vertexAttrib2f') |
+ @DocsEditable() |
+ void vertexAttrib2f(int indx, num x, num y) native; |
- void useProgram(Program program); |
+ @DomName('WebGLRenderingContext.vertexAttrib2fv') |
+ @DocsEditable() |
+ void vertexAttrib2fv(int indx, Float32List values) native; |
- void validateProgram(Program program); |
+ @DomName('WebGLRenderingContext.vertexAttrib3f') |
+ @DocsEditable() |
+ void vertexAttrib3f(int indx, num x, num y, num z) native; |
- void vertexAttrib1f(int indx, num x); |
+ @DomName('WebGLRenderingContext.vertexAttrib3fv') |
+ @DocsEditable() |
+ void vertexAttrib3fv(int indx, Float32List values) native; |
- void vertexAttrib1fv(int indx, Float32List values); |
+ @DomName('WebGLRenderingContext.vertexAttrib4f') |
+ @DocsEditable() |
+ void vertexAttrib4f(int indx, num x, num y, num z, num w) native; |
- void vertexAttrib2f(int indx, num x, num y); |
+ @DomName('WebGLRenderingContext.vertexAttrib4fv') |
+ @DocsEditable() |
+ void vertexAttrib4fv(int indx, Float32List values) native; |
- void vertexAttrib2fv(int indx, Float32List values); |
+ @DomName('WebGLRenderingContext.vertexAttribPointer') |
+ @DocsEditable() |
+ void vertexAttribPointer(int indx, int size, int type, bool normalized, int stride, int offset) native; |
- void vertexAttrib3f(int indx, num x, num y, num z); |
+ @DomName('WebGLRenderingContext.viewport') |
+ @DocsEditable() |
+ void viewport(int x, int y, int width, int height) native; |
- void vertexAttrib3fv(int indx, Float32List values); |
- void vertexAttrib4f(int indx, num x, num y, num z, num w); |
+ /** |
+ * Sets the currently bound texture to [data]. |
+ * |
+ * [data] can be either an [ImageElement], a |
+ * [CanvasElement], a [VideoElement], or an [ImageData] object. |
+ * |
+ * To use [texImage2d] with a TypedData object, use [texImage2dTyped]. |
+ * |
+ */ |
+ @JSName('texImage2D') |
+ void texImage2DUntyped(int targetTexture, int levelOfDetail, |
+ int internalFormat, int format, int type, data) native; |
- void vertexAttrib4fv(int indx, Float32List values); |
+ /** |
+ * Sets the currently bound texture to [data]. |
+ */ |
+ @JSName('texImage2D') |
+ void texImage2DTyped(int targetTexture, int levelOfDetail, |
+ int internalFormat, int width, int height, int border, int format, |
+ int type, TypedData data) native; |
- void vertexAttribPointer(int indx, int size, int type, bool normalized, int stride, int offset); |
+ /** |
+ * Updates a sub-rectangle of the currently bound texture to [data]. |
+ * |
+ * [data] can be either an [ImageElement], a |
+ * [CanvasElement], a [VideoElement], or an [ImageData] object. |
+ * |
+ * To use [texSubImage2d] with a TypedData object, use [texSubImage2dTyped]. |
+ * |
+ */ |
+ @JSName('texSubImage2D') |
+ void texSubImage2DUntyped(int targetTexture, int levelOfDetail, |
+ int xOffset, int yOffset, int format, int type, data) native; |
- void viewport(int x, int y, int width, int height); |
+ /** |
+ * Updates a sub-rectangle of the currently bound texture to [data]. |
+ */ |
+ @JSName('texSubImage2D') |
+ void texSubImage2DTyped(int targetTexture, int levelOfDetail, |
+ int xOffset, int yOffset, int width, int height, int border, int format, |
+ int type, TypedData data) native; |
} |
// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
// for details. All rights reserved. Use of this source code is governed by a |
@@ -3948,3 +3339,15 @@ class VertexArrayObject extends Interceptor { |
// To suppress missing implicit constructor warnings. |
factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); } |
} |
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
+// for details. All rights reserved. Use of this source code is governed by a |
+// BSD-style license that can be found in the LICENSE file. |
+ |
+ |
+@DocsEditable() |
+@DomName('WebGLRenderingContextBase') |
+@Experimental() // untriaged |
+abstract class _WebGLRenderingContextBase extends Interceptor { |
+ // To suppress missing implicit constructor warnings. |
+ factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not supported"); } |
+} |