OLD | NEW |
(Empty) | |
| 1 /** |
| 2 * 3D programming in the browser. |
| 3 */ |
| 4 library dart.dom.web_gl; |
| 5 |
| 6 import 'dart:collection'; |
| 7 import 'dart:_internal'; |
| 8 import 'dart:html'; |
| 9 import 'dart:html_common'; |
| 10 import 'dart:_native_typed_data'; |
| 11 import 'dart:typed_data'; |
| 12 import 'dart:_js_helper' show Creates, JSName, Native, Returns, convertDartClosu
reToJS; |
| 13 import 'dart:_foreign_helper' show JS; |
| 14 import 'dart:_interceptors' show Interceptor, JSExtendableArray; |
| 15 // DO NOT EDIT - unless you are editing documentation as per: |
| 16 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation |
| 17 // Auto-generated dart:web_gl library. |
| 18 |
| 19 |
| 20 |
| 21 |
| 22 |
| 23 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 24 // for details. All rights reserved. Use of this source code is governed by a |
| 25 // BSD-style license that can be found in the LICENSE file. |
| 26 |
| 27 |
| 28 const int ACTIVE_ATTRIBUTES = RenderingContext.ACTIVE_ATTRIBUTES; |
| 29 const int ACTIVE_TEXTURE = RenderingContext.ACTIVE_TEXTURE; |
| 30 const int ACTIVE_UNIFORMS = RenderingContext.ACTIVE_UNIFORMS; |
| 31 const int ALIASED_LINE_WIDTH_RANGE = RenderingContext.ALIASED_LINE_WIDTH_RANGE; |
| 32 const int ALIASED_POINT_SIZE_RANGE = RenderingContext.ALIASED_POINT_SIZE_RANGE; |
| 33 const int ALPHA = RenderingContext.ALPHA; |
| 34 const int ALPHA_BITS = RenderingContext.ALPHA_BITS; |
| 35 const int ALWAYS = RenderingContext.ALWAYS; |
| 36 const int ARRAY_BUFFER = RenderingContext.ARRAY_BUFFER; |
| 37 const int ARRAY_BUFFER_BINDING = RenderingContext.ARRAY_BUFFER_BINDING; |
| 38 const int ATTACHED_SHADERS = RenderingContext.ATTACHED_SHADERS; |
| 39 const int BACK = RenderingContext.BACK; |
| 40 const int BLEND = RenderingContext.BLEND; |
| 41 const int BLEND_COLOR = RenderingContext.BLEND_COLOR; |
| 42 const int BLEND_DST_ALPHA = RenderingContext.BLEND_DST_ALPHA; |
| 43 const int BLEND_DST_RGB = RenderingContext.BLEND_DST_RGB; |
| 44 const int BLEND_EQUATION = RenderingContext.BLEND_EQUATION; |
| 45 const int BLEND_EQUATION_ALPHA = RenderingContext.BLEND_EQUATION_ALPHA; |
| 46 const int BLEND_EQUATION_RGB = RenderingContext.BLEND_EQUATION_RGB; |
| 47 const int BLEND_SRC_ALPHA = RenderingContext.BLEND_SRC_ALPHA; |
| 48 const int BLEND_SRC_RGB = RenderingContext.BLEND_SRC_RGB; |
| 49 const int BLUE_BITS = RenderingContext.BLUE_BITS; |
| 50 const int BOOL = RenderingContext.BOOL; |
| 51 const int BOOL_VEC2 = RenderingContext.BOOL_VEC2; |
| 52 const int BOOL_VEC3 = RenderingContext.BOOL_VEC3; |
| 53 const int BOOL_VEC4 = RenderingContext.BOOL_VEC4; |
| 54 const int BROWSER_DEFAULT_WEBGL = RenderingContext.BROWSER_DEFAULT_WEBGL; |
| 55 const int BUFFER_SIZE = RenderingContext.BUFFER_SIZE; |
| 56 const int BUFFER_USAGE = RenderingContext.BUFFER_USAGE; |
| 57 const int BYTE = RenderingContext.BYTE; |
| 58 const int CCW = RenderingContext.CCW; |
| 59 const int CLAMP_TO_EDGE = RenderingContext.CLAMP_TO_EDGE; |
| 60 const int COLOR_ATTACHMENT0 = RenderingContext.COLOR_ATTACHMENT0; |
| 61 const int COLOR_BUFFER_BIT = RenderingContext.COLOR_BUFFER_BIT; |
| 62 const int COLOR_CLEAR_VALUE = RenderingContext.COLOR_CLEAR_VALUE; |
| 63 const int COLOR_WRITEMASK = RenderingContext.COLOR_WRITEMASK; |
| 64 const int COMPILE_STATUS = RenderingContext.COMPILE_STATUS; |
| 65 const int COMPRESSED_TEXTURE_FORMATS = RenderingContext.COMPRESSED_TEXTURE_FORMA
TS; |
| 66 const int CONSTANT_ALPHA = RenderingContext.CONSTANT_ALPHA; |
| 67 const int CONSTANT_COLOR = RenderingContext.CONSTANT_COLOR; |
| 68 const int CONTEXT_LOST_WEBGL = RenderingContext.CONTEXT_LOST_WEBGL; |
| 69 const int CULL_FACE = RenderingContext.CULL_FACE; |
| 70 const int CULL_FACE_MODE = RenderingContext.CULL_FACE_MODE; |
| 71 const int CURRENT_PROGRAM = RenderingContext.CURRENT_PROGRAM; |
| 72 const int CURRENT_VERTEX_ATTRIB = RenderingContext.CURRENT_VERTEX_ATTRIB; |
| 73 const int CW = RenderingContext.CW; |
| 74 const int DECR = RenderingContext.DECR; |
| 75 const int DECR_WRAP = RenderingContext.DECR_WRAP; |
| 76 const int DELETE_STATUS = RenderingContext.DELETE_STATUS; |
| 77 const int DEPTH_ATTACHMENT = RenderingContext.DEPTH_ATTACHMENT; |
| 78 const int DEPTH_BITS = RenderingContext.DEPTH_BITS; |
| 79 const int DEPTH_BUFFER_BIT = RenderingContext.DEPTH_BUFFER_BIT; |
| 80 const int DEPTH_CLEAR_VALUE = RenderingContext.DEPTH_CLEAR_VALUE; |
| 81 const int DEPTH_COMPONENT = RenderingContext.DEPTH_COMPONENT; |
| 82 const int DEPTH_COMPONENT16 = RenderingContext.DEPTH_COMPONENT16; |
| 83 const int DEPTH_FUNC = RenderingContext.DEPTH_FUNC; |
| 84 const int DEPTH_RANGE = RenderingContext.DEPTH_RANGE; |
| 85 const int DEPTH_STENCIL = RenderingContext.DEPTH_STENCIL; |
| 86 const int DEPTH_STENCIL_ATTACHMENT = RenderingContext.DEPTH_STENCIL_ATTACHMENT; |
| 87 const int DEPTH_TEST = RenderingContext.DEPTH_TEST; |
| 88 const int DEPTH_WRITEMASK = RenderingContext.DEPTH_WRITEMASK; |
| 89 const int DITHER = RenderingContext.DITHER; |
| 90 const int DONT_CARE = RenderingContext.DONT_CARE; |
| 91 const int DST_ALPHA = RenderingContext.DST_ALPHA; |
| 92 const int DST_COLOR = RenderingContext.DST_COLOR; |
| 93 const int DYNAMIC_DRAW = RenderingContext.DYNAMIC_DRAW; |
| 94 const int ELEMENT_ARRAY_BUFFER = RenderingContext.ELEMENT_ARRAY_BUFFER; |
| 95 const int ELEMENT_ARRAY_BUFFER_BINDING = RenderingContext.ELEMENT_ARRAY_BUFFER_B
INDING; |
| 96 const int EQUAL = RenderingContext.EQUAL; |
| 97 const int FASTEST = RenderingContext.FASTEST; |
| 98 const int FLOAT = RenderingContext.FLOAT; |
| 99 const int FLOAT_MAT2 = RenderingContext.FLOAT_MAT2; |
| 100 const int FLOAT_MAT3 = RenderingContext.FLOAT_MAT3; |
| 101 const int FLOAT_MAT4 = RenderingContext.FLOAT_MAT4; |
| 102 const int FLOAT_VEC2 = RenderingContext.FLOAT_VEC2; |
| 103 const int FLOAT_VEC3 = RenderingContext.FLOAT_VEC3; |
| 104 const int FLOAT_VEC4 = RenderingContext.FLOAT_VEC4; |
| 105 const int FRAGMENT_SHADER = RenderingContext.FRAGMENT_SHADER; |
| 106 const int FRAMEBUFFER = RenderingContext.FRAMEBUFFER; |
| 107 const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = RenderingContext.FRAMEBUFFER_ATTA
CHMENT_OBJECT_NAME; |
| 108 const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = RenderingContext.FRAMEBUFFER_ATTA
CHMENT_OBJECT_TYPE; |
| 109 const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = RenderingContext.FRAMEB
UFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE; |
| 110 const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = RenderingContext.FRAMEBUFFER_AT
TACHMENT_TEXTURE_LEVEL; |
| 111 const int FRAMEBUFFER_BINDING = RenderingContext.FRAMEBUFFER_BINDING; |
| 112 const int FRAMEBUFFER_COMPLETE = RenderingContext.FRAMEBUFFER_COMPLETE; |
| 113 const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = RenderingContext.FRAMEBUFFER_INCOM
PLETE_ATTACHMENT; |
| 114 const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = RenderingContext.FRAMEBUFFER_INCOM
PLETE_DIMENSIONS; |
| 115 const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = RenderingContext.FRAMEBUFF
ER_INCOMPLETE_MISSING_ATTACHMENT; |
| 116 const int FRAMEBUFFER_UNSUPPORTED = RenderingContext.FRAMEBUFFER_UNSUPPORTED; |
| 117 const int FRONT = RenderingContext.FRONT; |
| 118 const int FRONT_AND_BACK = RenderingContext.FRONT_AND_BACK; |
| 119 const int FRONT_FACE = RenderingContext.FRONT_FACE; |
| 120 const int FUNC_ADD = RenderingContext.FUNC_ADD; |
| 121 const int FUNC_REVERSE_SUBTRACT = RenderingContext.FUNC_REVERSE_SUBTRACT; |
| 122 const int FUNC_SUBTRACT = RenderingContext.FUNC_SUBTRACT; |
| 123 const int GENERATE_MIPMAP_HINT = RenderingContext.GENERATE_MIPMAP_HINT; |
| 124 const int GEQUAL = RenderingContext.GEQUAL; |
| 125 const int GREATER = RenderingContext.GREATER; |
| 126 const int GREEN_BITS = RenderingContext.GREEN_BITS; |
| 127 const int HALF_FLOAT_OES = OesTextureHalfFloat.HALF_FLOAT_OES; |
| 128 const int HIGH_FLOAT = RenderingContext.HIGH_FLOAT; |
| 129 const int HIGH_INT = RenderingContext.HIGH_INT; |
| 130 const int INCR = RenderingContext.INCR; |
| 131 const int INCR_WRAP = RenderingContext.INCR_WRAP; |
| 132 const int INT = RenderingContext.INT; |
| 133 const int INT_VEC2 = RenderingContext.INT_VEC2; |
| 134 const int INT_VEC3 = RenderingContext.INT_VEC3; |
| 135 const int INT_VEC4 = RenderingContext.INT_VEC4; |
| 136 const int INVALID_ENUM = RenderingContext.INVALID_ENUM; |
| 137 const int INVALID_FRAMEBUFFER_OPERATION = RenderingContext.INVALID_FRAMEBUFFER_O
PERATION; |
| 138 const int INVALID_OPERATION = RenderingContext.INVALID_OPERATION; |
| 139 const int INVALID_VALUE = RenderingContext.INVALID_VALUE; |
| 140 const int INVERT = RenderingContext.INVERT; |
| 141 const int KEEP = RenderingContext.KEEP; |
| 142 const int LEQUAL = RenderingContext.LEQUAL; |
| 143 const int LESS = RenderingContext.LESS; |
| 144 const int LINEAR = RenderingContext.LINEAR; |
| 145 const int LINEAR_MIPMAP_LINEAR = RenderingContext.LINEAR_MIPMAP_LINEAR; |
| 146 const int LINEAR_MIPMAP_NEAREST = RenderingContext.LINEAR_MIPMAP_NEAREST; |
| 147 const int LINES = RenderingContext.LINES; |
| 148 const int LINE_LOOP = RenderingContext.LINE_LOOP; |
| 149 const int LINE_STRIP = RenderingContext.LINE_STRIP; |
| 150 const int LINE_WIDTH = RenderingContext.LINE_WIDTH; |
| 151 const int LINK_STATUS = RenderingContext.LINK_STATUS; |
| 152 const int LOW_FLOAT = RenderingContext.LOW_FLOAT; |
| 153 const int LOW_INT = RenderingContext.LOW_INT; |
| 154 const int LUMINANCE = RenderingContext.LUMINANCE; |
| 155 const int LUMINANCE_ALPHA = RenderingContext.LUMINANCE_ALPHA; |
| 156 const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_COMBINED_TEXTU
RE_IMAGE_UNITS; |
| 157 const int MAX_CUBE_MAP_TEXTURE_SIZE = RenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE
; |
| 158 const int MAX_FRAGMENT_UNIFORM_VECTORS = RenderingContext.MAX_FRAGMENT_UNIFORM_V
ECTORS; |
| 159 const int MAX_RENDERBUFFER_SIZE = RenderingContext.MAX_RENDERBUFFER_SIZE; |
| 160 const int MAX_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_TEXTURE_IMAGE_UNITS; |
| 161 const int MAX_TEXTURE_SIZE = RenderingContext.MAX_TEXTURE_SIZE; |
| 162 const int MAX_VARYING_VECTORS = RenderingContext.MAX_VARYING_VECTORS; |
| 163 const int MAX_VERTEX_ATTRIBS = RenderingContext.MAX_VERTEX_ATTRIBS; |
| 164 const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_VERTEX_TEXTURE_I
MAGE_UNITS; |
| 165 const int MAX_VERTEX_UNIFORM_VECTORS = RenderingContext.MAX_VERTEX_UNIFORM_VECTO
RS; |
| 166 const int MAX_VIEWPORT_DIMS = RenderingContext.MAX_VIEWPORT_DIMS; |
| 167 const int MEDIUM_FLOAT = RenderingContext.MEDIUM_FLOAT; |
| 168 const int MEDIUM_INT = RenderingContext.MEDIUM_INT; |
| 169 const int MIRRORED_REPEAT = RenderingContext.MIRRORED_REPEAT; |
| 170 const int NEAREST = RenderingContext.NEAREST; |
| 171 const int NEAREST_MIPMAP_LINEAR = RenderingContext.NEAREST_MIPMAP_LINEAR; |
| 172 const int NEAREST_MIPMAP_NEAREST = RenderingContext.NEAREST_MIPMAP_NEAREST; |
| 173 const int NEVER = RenderingContext.NEVER; |
| 174 const int NICEST = RenderingContext.NICEST; |
| 175 const int NONE = RenderingContext.NONE; |
| 176 const int NOTEQUAL = RenderingContext.NOTEQUAL; |
| 177 const int NO_ERROR = RenderingContext.NO_ERROR; |
| 178 const int ONE = RenderingContext.ONE; |
| 179 const int ONE_MINUS_CONSTANT_ALPHA = RenderingContext.ONE_MINUS_CONSTANT_ALPHA; |
| 180 const int ONE_MINUS_CONSTANT_COLOR = RenderingContext.ONE_MINUS_CONSTANT_COLOR; |
| 181 const int ONE_MINUS_DST_ALPHA = RenderingContext.ONE_MINUS_DST_ALPHA; |
| 182 const int ONE_MINUS_DST_COLOR = RenderingContext.ONE_MINUS_DST_COLOR; |
| 183 const int ONE_MINUS_SRC_ALPHA = RenderingContext.ONE_MINUS_SRC_ALPHA; |
| 184 const int ONE_MINUS_SRC_COLOR = RenderingContext.ONE_MINUS_SRC_COLOR; |
| 185 const int OUT_OF_MEMORY = RenderingContext.OUT_OF_MEMORY; |
| 186 const int PACK_ALIGNMENT = RenderingContext.PACK_ALIGNMENT; |
| 187 const int POINTS = RenderingContext.POINTS; |
| 188 const int POLYGON_OFFSET_FACTOR = RenderingContext.POLYGON_OFFSET_FACTOR; |
| 189 const int POLYGON_OFFSET_FILL = RenderingContext.POLYGON_OFFSET_FILL; |
| 190 const int POLYGON_OFFSET_UNITS = RenderingContext.POLYGON_OFFSET_UNITS; |
| 191 const int RED_BITS = RenderingContext.RED_BITS; |
| 192 const int RENDERBUFFER = RenderingContext.RENDERBUFFER; |
| 193 const int RENDERBUFFER_ALPHA_SIZE = RenderingContext.RENDERBUFFER_ALPHA_SIZE; |
| 194 const int RENDERBUFFER_BINDING = RenderingContext.RENDERBUFFER_BINDING; |
| 195 const int RENDERBUFFER_BLUE_SIZE = RenderingContext.RENDERBUFFER_BLUE_SIZE; |
| 196 const int RENDERBUFFER_DEPTH_SIZE = RenderingContext.RENDERBUFFER_DEPTH_SIZE; |
| 197 const int RENDERBUFFER_GREEN_SIZE = RenderingContext.RENDERBUFFER_GREEN_SIZE; |
| 198 const int RENDERBUFFER_HEIGHT = RenderingContext.RENDERBUFFER_HEIGHT; |
| 199 const int RENDERBUFFER_INTERNAL_FORMAT = RenderingContext.RENDERBUFFER_INTERNAL_
FORMAT; |
| 200 const int RENDERBUFFER_RED_SIZE = RenderingContext.RENDERBUFFER_RED_SIZE; |
| 201 const int RENDERBUFFER_STENCIL_SIZE = RenderingContext.RENDERBUFFER_STENCIL_SIZE
; |
| 202 const int RENDERBUFFER_WIDTH = RenderingContext.RENDERBUFFER_WIDTH; |
| 203 const int RENDERER = RenderingContext.RENDERER; |
| 204 const int REPEAT = RenderingContext.REPEAT; |
| 205 const int REPLACE = RenderingContext.REPLACE; |
| 206 const int RGB = RenderingContext.RGB; |
| 207 const int RGB565 = RenderingContext.RGB565; |
| 208 const int RGB5_A1 = RenderingContext.RGB5_A1; |
| 209 const int RGBA = RenderingContext.RGBA; |
| 210 const int RGBA4 = RenderingContext.RGBA4; |
| 211 const int SAMPLER_2D = RenderingContext.SAMPLER_2D; |
| 212 const int SAMPLER_CUBE = RenderingContext.SAMPLER_CUBE; |
| 213 const int SAMPLES = RenderingContext.SAMPLES; |
| 214 const int SAMPLE_ALPHA_TO_COVERAGE = RenderingContext.SAMPLE_ALPHA_TO_COVERAGE; |
| 215 const int SAMPLE_BUFFERS = RenderingContext.SAMPLE_BUFFERS; |
| 216 const int SAMPLE_COVERAGE = RenderingContext.SAMPLE_COVERAGE; |
| 217 const int SAMPLE_COVERAGE_INVERT = RenderingContext.SAMPLE_COVERAGE_INVERT; |
| 218 const int SAMPLE_COVERAGE_VALUE = RenderingContext.SAMPLE_COVERAGE_VALUE; |
| 219 const int SCISSOR_BOX = RenderingContext.SCISSOR_BOX; |
| 220 const int SCISSOR_TEST = RenderingContext.SCISSOR_TEST; |
| 221 const int SHADER_TYPE = RenderingContext.SHADER_TYPE; |
| 222 const int SHADING_LANGUAGE_VERSION = RenderingContext.SHADING_LANGUAGE_VERSION; |
| 223 const int SHORT = RenderingContext.SHORT; |
| 224 const int SRC_ALPHA = RenderingContext.SRC_ALPHA; |
| 225 const int SRC_ALPHA_SATURATE = RenderingContext.SRC_ALPHA_SATURATE; |
| 226 const int SRC_COLOR = RenderingContext.SRC_COLOR; |
| 227 const int STATIC_DRAW = RenderingContext.STATIC_DRAW; |
| 228 const int STENCIL_ATTACHMENT = RenderingContext.STENCIL_ATTACHMENT; |
| 229 const int STENCIL_BACK_FAIL = RenderingContext.STENCIL_BACK_FAIL; |
| 230 const int STENCIL_BACK_FUNC = RenderingContext.STENCIL_BACK_FUNC; |
| 231 const int STENCIL_BACK_PASS_DEPTH_FAIL = RenderingContext.STENCIL_BACK_PASS_DEPT
H_FAIL; |
| 232 const int STENCIL_BACK_PASS_DEPTH_PASS = RenderingContext.STENCIL_BACK_PASS_DEPT
H_PASS; |
| 233 const int STENCIL_BACK_REF = RenderingContext.STENCIL_BACK_REF; |
| 234 const int STENCIL_BACK_VALUE_MASK = RenderingContext.STENCIL_BACK_VALUE_MASK; |
| 235 const int STENCIL_BACK_WRITEMASK = RenderingContext.STENCIL_BACK_WRITEMASK; |
| 236 const int STENCIL_BITS = RenderingContext.STENCIL_BITS; |
| 237 const int STENCIL_BUFFER_BIT = RenderingContext.STENCIL_BUFFER_BIT; |
| 238 const int STENCIL_CLEAR_VALUE = RenderingContext.STENCIL_CLEAR_VALUE; |
| 239 const int STENCIL_FAIL = RenderingContext.STENCIL_FAIL; |
| 240 const int STENCIL_FUNC = RenderingContext.STENCIL_FUNC; |
| 241 const int STENCIL_INDEX = RenderingContext.STENCIL_INDEX; |
| 242 const int STENCIL_INDEX8 = RenderingContext.STENCIL_INDEX8; |
| 243 const int STENCIL_PASS_DEPTH_FAIL = RenderingContext.STENCIL_PASS_DEPTH_FAIL; |
| 244 const int STENCIL_PASS_DEPTH_PASS = RenderingContext.STENCIL_PASS_DEPTH_PASS; |
| 245 const int STENCIL_REF = RenderingContext.STENCIL_REF; |
| 246 const int STENCIL_TEST = RenderingContext.STENCIL_TEST; |
| 247 const int STENCIL_VALUE_MASK = RenderingContext.STENCIL_VALUE_MASK; |
| 248 const int STENCIL_WRITEMASK = RenderingContext.STENCIL_WRITEMASK; |
| 249 const int STREAM_DRAW = RenderingContext.STREAM_DRAW; |
| 250 const int SUBPIXEL_BITS = RenderingContext.SUBPIXEL_BITS; |
| 251 const int TEXTURE = RenderingContext.TEXTURE; |
| 252 const int TEXTURE0 = RenderingContext.TEXTURE0; |
| 253 const int TEXTURE1 = RenderingContext.TEXTURE1; |
| 254 const int TEXTURE10 = RenderingContext.TEXTURE10; |
| 255 const int TEXTURE11 = RenderingContext.TEXTURE11; |
| 256 const int TEXTURE12 = RenderingContext.TEXTURE12; |
| 257 const int TEXTURE13 = RenderingContext.TEXTURE13; |
| 258 const int TEXTURE14 = RenderingContext.TEXTURE14; |
| 259 const int TEXTURE15 = RenderingContext.TEXTURE15; |
| 260 const int TEXTURE16 = RenderingContext.TEXTURE16; |
| 261 const int TEXTURE17 = RenderingContext.TEXTURE17; |
| 262 const int TEXTURE18 = RenderingContext.TEXTURE18; |
| 263 const int TEXTURE19 = RenderingContext.TEXTURE19; |
| 264 const int TEXTURE2 = RenderingContext.TEXTURE2; |
| 265 const int TEXTURE20 = RenderingContext.TEXTURE20; |
| 266 const int TEXTURE21 = RenderingContext.TEXTURE21; |
| 267 const int TEXTURE22 = RenderingContext.TEXTURE22; |
| 268 const int TEXTURE23 = RenderingContext.TEXTURE23; |
| 269 const int TEXTURE24 = RenderingContext.TEXTURE24; |
| 270 const int TEXTURE25 = RenderingContext.TEXTURE25; |
| 271 const int TEXTURE26 = RenderingContext.TEXTURE26; |
| 272 const int TEXTURE27 = RenderingContext.TEXTURE27; |
| 273 const int TEXTURE28 = RenderingContext.TEXTURE28; |
| 274 const int TEXTURE29 = RenderingContext.TEXTURE29; |
| 275 const int TEXTURE3 = RenderingContext.TEXTURE3; |
| 276 const int TEXTURE30 = RenderingContext.TEXTURE30; |
| 277 const int TEXTURE31 = RenderingContext.TEXTURE31; |
| 278 const int TEXTURE4 = RenderingContext.TEXTURE4; |
| 279 const int TEXTURE5 = RenderingContext.TEXTURE5; |
| 280 const int TEXTURE6 = RenderingContext.TEXTURE6; |
| 281 const int TEXTURE7 = RenderingContext.TEXTURE7; |
| 282 const int TEXTURE8 = RenderingContext.TEXTURE8; |
| 283 const int TEXTURE9 = RenderingContext.TEXTURE9; |
| 284 const int TEXTURE_2D = RenderingContext.TEXTURE_2D; |
| 285 const int TEXTURE_BINDING_2D = RenderingContext.TEXTURE_BINDING_2D; |
| 286 const int TEXTURE_BINDING_CUBE_MAP = RenderingContext.TEXTURE_BINDING_CUBE_MAP; |
| 287 const int TEXTURE_CUBE_MAP = RenderingContext.TEXTURE_CUBE_MAP; |
| 288 const int TEXTURE_CUBE_MAP_NEGATIVE_X = RenderingContext.TEXTURE_CUBE_MAP_NEGATI
VE_X; |
| 289 const int TEXTURE_CUBE_MAP_NEGATIVE_Y = RenderingContext.TEXTURE_CUBE_MAP_NEGATI
VE_Y; |
| 290 const int TEXTURE_CUBE_MAP_NEGATIVE_Z = RenderingContext.TEXTURE_CUBE_MAP_NEGATI
VE_Z; |
| 291 const int TEXTURE_CUBE_MAP_POSITIVE_X = RenderingContext.TEXTURE_CUBE_MAP_POSITI
VE_X; |
| 292 const int TEXTURE_CUBE_MAP_POSITIVE_Y = RenderingContext.TEXTURE_CUBE_MAP_POSITI
VE_Y; |
| 293 const int TEXTURE_CUBE_MAP_POSITIVE_Z = RenderingContext.TEXTURE_CUBE_MAP_POSITI
VE_Z; |
| 294 const int TEXTURE_MAG_FILTER = RenderingContext.TEXTURE_MAG_FILTER; |
| 295 const int TEXTURE_MIN_FILTER = RenderingContext.TEXTURE_MIN_FILTER; |
| 296 const int TEXTURE_WRAP_S = RenderingContext.TEXTURE_WRAP_S; |
| 297 const int TEXTURE_WRAP_T = RenderingContext.TEXTURE_WRAP_T; |
| 298 const int TRIANGLES = RenderingContext.TRIANGLES; |
| 299 const int TRIANGLE_FAN = RenderingContext.TRIANGLE_FAN; |
| 300 const int TRIANGLE_STRIP = RenderingContext.TRIANGLE_STRIP; |
| 301 const int UNPACK_ALIGNMENT = RenderingContext.UNPACK_ALIGNMENT; |
| 302 const int UNPACK_COLORSPACE_CONVERSION_WEBGL = RenderingContext.UNPACK_COLORSPAC
E_CONVERSION_WEBGL; |
| 303 const int UNPACK_FLIP_Y_WEBGL = RenderingContext.UNPACK_FLIP_Y_WEBGL; |
| 304 const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = RenderingContext.UNPACK_PREMULTIPLY_A
LPHA_WEBGL; |
| 305 const int UNSIGNED_BYTE = RenderingContext.UNSIGNED_BYTE; |
| 306 const int UNSIGNED_INT = RenderingContext.UNSIGNED_INT; |
| 307 const int UNSIGNED_SHORT = RenderingContext.UNSIGNED_SHORT; |
| 308 const int UNSIGNED_SHORT_4_4_4_4 = RenderingContext.UNSIGNED_SHORT_4_4_4_4; |
| 309 const int UNSIGNED_SHORT_5_5_5_1 = RenderingContext.UNSIGNED_SHORT_5_5_5_1; |
| 310 const int UNSIGNED_SHORT_5_6_5 = RenderingContext.UNSIGNED_SHORT_5_6_5; |
| 311 const int VALIDATE_STATUS = RenderingContext.VALIDATE_STATUS; |
| 312 const int VENDOR = RenderingContext.VENDOR; |
| 313 const int VERSION = RenderingContext.VERSION; |
| 314 const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = RenderingContext.VERTEX_ATTRIB_AR
RAY_BUFFER_BINDING; |
| 315 const int VERTEX_ATTRIB_ARRAY_ENABLED = RenderingContext.VERTEX_ATTRIB_ARRAY_ENA
BLED; |
| 316 const int VERTEX_ATTRIB_ARRAY_NORMALIZED = RenderingContext.VERTEX_ATTRIB_ARRAY_
NORMALIZED; |
| 317 const int VERTEX_ATTRIB_ARRAY_POINTER = RenderingContext.VERTEX_ATTRIB_ARRAY_POI
NTER; |
| 318 const int VERTEX_ATTRIB_ARRAY_SIZE = RenderingContext.VERTEX_ATTRIB_ARRAY_SIZE; |
| 319 const int VERTEX_ATTRIB_ARRAY_STRIDE = RenderingContext.VERTEX_ATTRIB_ARRAY_STRI
DE; |
| 320 const int VERTEX_ATTRIB_ARRAY_TYPE = RenderingContext.VERTEX_ATTRIB_ARRAY_TYPE; |
| 321 const int VERTEX_SHADER = RenderingContext.VERTEX_SHADER; |
| 322 const int VIEWPORT = RenderingContext.VIEWPORT; |
| 323 const int ZERO = RenderingContext.ZERO; |
| 324 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 325 // for details. All rights reserved. Use of this source code is governed by a |
| 326 // BSD-style license that can be found in the LICENSE file. |
| 327 |
| 328 |
| 329 @DocsEditable() |
| 330 @DomName('WebGLActiveInfo') |
| 331 @Unstable() |
| 332 @Native("WebGLActiveInfo") |
| 333 class ActiveInfo extends Interceptor { |
| 334 // To suppress missing implicit constructor warnings. |
| 335 factory ActiveInfo._() { throw new UnsupportedError("Not supported"); } |
| 336 |
| 337 @DomName('WebGLActiveInfo.name') |
| 338 @DocsEditable() |
| 339 final String name; |
| 340 |
| 341 @DomName('WebGLActiveInfo.size') |
| 342 @DocsEditable() |
| 343 final int size; |
| 344 |
| 345 @DomName('WebGLActiveInfo.type') |
| 346 @DocsEditable() |
| 347 final int type; |
| 348 } |
| 349 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 350 // for details. All rights reserved. Use of this source code is governed by a |
| 351 // BSD-style license that can be found in the LICENSE file. |
| 352 |
| 353 |
| 354 @DocsEditable() |
| 355 @DomName('ANGLEInstancedArrays') |
| 356 @Experimental() // untriaged |
| 357 @Native("ANGLEInstancedArrays") |
| 358 class AngleInstancedArrays extends Interceptor { |
| 359 // To suppress missing implicit constructor warnings. |
| 360 factory AngleInstancedArrays._() { throw new UnsupportedError("Not supported")
; } |
| 361 |
| 362 @DomName('ANGLEInstancedArrays.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE') |
| 363 @DocsEditable() |
| 364 @Experimental() // untriaged |
| 365 static const int VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE; |
| 366 |
| 367 @JSName('drawArraysInstancedANGLE') |
| 368 @DomName('ANGLEInstancedArrays.drawArraysInstancedANGLE') |
| 369 @DocsEditable() |
| 370 @Experimental() // untriaged |
| 371 void drawArraysInstancedAngle(int mode, int first, int count, int primcount) n
ative; |
| 372 |
| 373 @JSName('drawElementsInstancedANGLE') |
| 374 @DomName('ANGLEInstancedArrays.drawElementsInstancedANGLE') |
| 375 @DocsEditable() |
| 376 @Experimental() // untriaged |
| 377 void drawElementsInstancedAngle(int mode, int count, int type, int offset, int
primcount) native; |
| 378 |
| 379 @JSName('vertexAttribDivisorANGLE') |
| 380 @DomName('ANGLEInstancedArrays.vertexAttribDivisorANGLE') |
| 381 @DocsEditable() |
| 382 @Experimental() // untriaged |
| 383 void vertexAttribDivisorAngle(int index, int divisor) native; |
| 384 } |
| 385 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 386 // for details. All rights reserved. Use of this source code is governed by a |
| 387 // BSD-style license that can be found in the LICENSE file. |
| 388 |
| 389 |
| 390 @DocsEditable() |
| 391 @DomName('WebGLBuffer') |
| 392 @Unstable() |
| 393 @Native("WebGLBuffer") |
| 394 class Buffer extends Interceptor { |
| 395 // To suppress missing implicit constructor warnings. |
| 396 factory Buffer._() { throw new UnsupportedError("Not supported"); } |
| 397 } |
| 398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 399 // for details. All rights reserved. Use of this source code is governed by a |
| 400 // BSD-style license that can be found in the LICENSE file. |
| 401 |
| 402 |
| 403 @DocsEditable() |
| 404 @DomName('WebGLCompressedTextureATC') |
| 405 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc
/ |
| 406 @Experimental() |
| 407 @Native("WebGLCompressedTextureATC") |
| 408 class CompressedTextureAtc extends Interceptor { |
| 409 // To suppress missing implicit constructor warnings. |
| 410 factory CompressedTextureAtc._() { throw new UnsupportedError("Not supported")
; } |
| 411 |
| 412 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL') |
| 413 @DocsEditable() |
| 414 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93; |
| 415 |
| 416 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEB
GL') |
| 417 @DocsEditable() |
| 418 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE; |
| 419 |
| 420 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL') |
| 421 @DocsEditable() |
| 422 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92; |
| 423 } |
| 424 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 425 // for details. All rights reserved. Use of this source code is governed by a |
| 426 // BSD-style license that can be found in the LICENSE file. |
| 427 |
| 428 |
| 429 @DocsEditable() |
| 430 @DomName('WebGLCompressedTextureETC1') |
| 431 @Experimental() // untriaged |
| 432 @Native("WebGLCompressedTextureETC1") |
| 433 class CompressedTextureETC1 extends Interceptor { |
| 434 // To suppress missing implicit constructor warnings. |
| 435 factory CompressedTextureETC1._() { throw new UnsupportedError("Not supported"
); } |
| 436 |
| 437 @DomName('WebGLCompressedTextureETC1.COMPRESSED_RGB_ETC1_WEBGL') |
| 438 @DocsEditable() |
| 439 @Experimental() // untriaged |
| 440 static const int COMPRESSED_RGB_ETC1_WEBGL = 0x8D64; |
| 441 } |
| 442 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 443 // for details. All rights reserved. Use of this source code is governed by a |
| 444 // BSD-style license that can be found in the LICENSE file. |
| 445 |
| 446 |
| 447 @DocsEditable() |
| 448 @DomName('WebGLCompressedTexturePVRTC') |
| 449 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr
tc/ |
| 450 @Experimental() // experimental |
| 451 @Native("WebGLCompressedTexturePVRTC") |
| 452 class CompressedTexturePvrtc extends Interceptor { |
| 453 // To suppress missing implicit constructor warnings. |
| 454 factory CompressedTexturePvrtc._() { throw new UnsupportedError("Not supported
"); } |
| 455 |
| 456 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG') |
| 457 @DocsEditable() |
| 458 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03; |
| 459 |
| 460 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG') |
| 461 @DocsEditable() |
| 462 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02; |
| 463 |
| 464 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG') |
| 465 @DocsEditable() |
| 466 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01; |
| 467 |
| 468 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG') |
| 469 @DocsEditable() |
| 470 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00; |
| 471 } |
| 472 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 473 // for details. All rights reserved. Use of this source code is governed by a |
| 474 // BSD-style license that can be found in the LICENSE file. |
| 475 |
| 476 |
| 477 @DocsEditable() |
| 478 @DomName('WebGLCompressedTextureS3TC') |
| 479 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t
c/ |
| 480 @Experimental() // experimental |
| 481 @Native("WebGLCompressedTextureS3TC") |
| 482 class CompressedTextureS3TC extends Interceptor { |
| 483 // To suppress missing implicit constructor warnings. |
| 484 factory CompressedTextureS3TC._() { throw new UnsupportedError("Not supported"
); } |
| 485 |
| 486 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT') |
| 487 @DocsEditable() |
| 488 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; |
| 489 |
| 490 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT') |
| 491 @DocsEditable() |
| 492 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; |
| 493 |
| 494 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT') |
| 495 @DocsEditable() |
| 496 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; |
| 497 |
| 498 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT') |
| 499 @DocsEditable() |
| 500 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; |
| 501 } |
| 502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 503 // for details. All rights reserved. Use of this source code is governed by a |
| 504 // BSD-style license that can be found in the LICENSE file. |
| 505 |
| 506 |
| 507 @DocsEditable() |
| 508 /** |
| 509 * The properties of a WebGL rendering context. |
| 510 * |
| 511 * If [alpha] is `true`, then the context has an alpha channel. |
| 512 * |
| 513 * If [antialias] is `true`, then antialiasing is performed by the browser, but |
| 514 * only if the browser's implementation of WebGL supports antialiasing. |
| 515 * |
| 516 * If [depth] is `true`, then the context has a depth buffer of at least 16 |
| 517 * bits. |
| 518 * |
| 519 * If [premultipliedAlpha] is `true`, then the context's colors are assumed to |
| 520 * be premultiplied. This means that color values are assumed to have been |
| 521 * multiplied by their alpha values. If [alpha] is `false`, then this flag is |
| 522 * ignored. |
| 523 * |
| 524 * If [preserveDrawingBuffer] is `false`, then all contents of the context are |
| 525 * cleared. If `true`, then all values will remain until changed or cleared. |
| 526 * |
| 527 * If [stencil] is `true`, then the context has a stencil buffer of at least 8 |
| 528 * bits. |
| 529 */ |
| 530 @DomName('WebGLContextAttributes') |
| 531 @Unstable() |
| 532 @Native("WebGLContextAttributes") |
| 533 class ContextAttributes extends Interceptor { |
| 534 // To suppress missing implicit constructor warnings. |
| 535 factory ContextAttributes._() { throw new UnsupportedError("Not supported"); } |
| 536 |
| 537 @DomName('WebGLContextAttributes.alpha') |
| 538 @DocsEditable() |
| 539 bool alpha; |
| 540 |
| 541 @DomName('WebGLContextAttributes.antialias') |
| 542 @DocsEditable() |
| 543 bool antialias; |
| 544 |
| 545 @DomName('WebGLContextAttributes.depth') |
| 546 @DocsEditable() |
| 547 bool depth; |
| 548 |
| 549 @DomName('WebGLContextAttributes.failIfMajorPerformanceCaveat') |
| 550 @DocsEditable() |
| 551 @Experimental() // untriaged |
| 552 bool failIfMajorPerformanceCaveat; |
| 553 |
| 554 @DomName('WebGLContextAttributes.premultipliedAlpha') |
| 555 @DocsEditable() |
| 556 bool premultipliedAlpha; |
| 557 |
| 558 @DomName('WebGLContextAttributes.preserveDrawingBuffer') |
| 559 @DocsEditable() |
| 560 bool preserveDrawingBuffer; |
| 561 |
| 562 @DomName('WebGLContextAttributes.stencil') |
| 563 @DocsEditable() |
| 564 bool stencil; |
| 565 } |
| 566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 567 // for details. All rights reserved. Use of this source code is governed by a |
| 568 // BSD-style license that can be found in the LICENSE file. |
| 569 |
| 570 |
| 571 @DocsEditable() |
| 572 @DomName('WebGLContextEvent') |
| 573 @Unstable() |
| 574 @Native("WebGLContextEvent") |
| 575 class ContextEvent extends Event { |
| 576 // To suppress missing implicit constructor warnings. |
| 577 factory ContextEvent._() { throw new UnsupportedError("Not supported"); } |
| 578 |
| 579 @DomName('WebGLContextEvent.statusMessage') |
| 580 @DocsEditable() |
| 581 final String statusMessage; |
| 582 } |
| 583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 584 // for details. All rights reserved. Use of this source code is governed by a |
| 585 // BSD-style license that can be found in the LICENSE file. |
| 586 |
| 587 |
| 588 @DocsEditable() |
| 589 @DomName('WebGLDebugRendererInfo') |
| 590 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/ |
| 591 @Experimental() // experimental |
| 592 @Native("WebGLDebugRendererInfo") |
| 593 class DebugRendererInfo extends Interceptor { |
| 594 // To suppress missing implicit constructor warnings. |
| 595 factory DebugRendererInfo._() { throw new UnsupportedError("Not supported"); } |
| 596 |
| 597 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL') |
| 598 @DocsEditable() |
| 599 static const int UNMASKED_RENDERER_WEBGL = 0x9246; |
| 600 |
| 601 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL') |
| 602 @DocsEditable() |
| 603 static const int UNMASKED_VENDOR_WEBGL = 0x9245; |
| 604 } |
| 605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 606 // for details. All rights reserved. Use of this source code is governed by a |
| 607 // BSD-style license that can be found in the LICENSE file. |
| 608 |
| 609 |
| 610 @DocsEditable() |
| 611 @DomName('WebGLDebugShaders') |
| 612 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/ |
| 613 @Experimental() // experimental |
| 614 @Native("WebGLDebugShaders") |
| 615 class DebugShaders extends Interceptor { |
| 616 // To suppress missing implicit constructor warnings. |
| 617 factory DebugShaders._() { throw new UnsupportedError("Not supported"); } |
| 618 |
| 619 @DomName('WebGLDebugShaders.getTranslatedShaderSource') |
| 620 @DocsEditable() |
| 621 String getTranslatedShaderSource(Shader shader) native; |
| 622 } |
| 623 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 624 // for details. All rights reserved. Use of this source code is governed by a |
| 625 // BSD-style license that can be found in the LICENSE file. |
| 626 |
| 627 |
| 628 @DocsEditable() |
| 629 @DomName('WebGLDepthTexture') |
| 630 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ |
| 631 @Experimental() // experimental |
| 632 @Native("WebGLDepthTexture") |
| 633 class DepthTexture extends Interceptor { |
| 634 // To suppress missing implicit constructor warnings. |
| 635 factory DepthTexture._() { throw new UnsupportedError("Not supported"); } |
| 636 |
| 637 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL') |
| 638 @DocsEditable() |
| 639 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; |
| 640 } |
| 641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 642 // for details. All rights reserved. Use of this source code is governed by a |
| 643 // BSD-style license that can be found in the LICENSE file. |
| 644 |
| 645 |
| 646 @DocsEditable() |
| 647 @DomName('WebGLDrawBuffers') |
| 648 // http://www.khronos.org/registry/webgl/specs/latest/ |
| 649 @Experimental() // stable |
| 650 @Native("WebGLDrawBuffers") |
| 651 class DrawBuffers extends Interceptor { |
| 652 // To suppress missing implicit constructor warnings. |
| 653 factory DrawBuffers._() { throw new UnsupportedError("Not supported"); } |
| 654 |
| 655 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT0_WEBGL') |
| 656 @DocsEditable() |
| 657 static const int COLOR_ATTACHMENT0_WEBGL = 0x8CE0; |
| 658 |
| 659 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT10_WEBGL') |
| 660 @DocsEditable() |
| 661 static const int COLOR_ATTACHMENT10_WEBGL = 0x8CEA; |
| 662 |
| 663 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT11_WEBGL') |
| 664 @DocsEditable() |
| 665 static const int COLOR_ATTACHMENT11_WEBGL = 0x8CEB; |
| 666 |
| 667 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT12_WEBGL') |
| 668 @DocsEditable() |
| 669 static const int COLOR_ATTACHMENT12_WEBGL = 0x8CEC; |
| 670 |
| 671 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT13_WEBGL') |
| 672 @DocsEditable() |
| 673 static const int COLOR_ATTACHMENT13_WEBGL = 0x8CED; |
| 674 |
| 675 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT14_WEBGL') |
| 676 @DocsEditable() |
| 677 static const int COLOR_ATTACHMENT14_WEBGL = 0x8CEE; |
| 678 |
| 679 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT15_WEBGL') |
| 680 @DocsEditable() |
| 681 static const int COLOR_ATTACHMENT15_WEBGL = 0x8CEF; |
| 682 |
| 683 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT1_WEBGL') |
| 684 @DocsEditable() |
| 685 static const int COLOR_ATTACHMENT1_WEBGL = 0x8CE1; |
| 686 |
| 687 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT2_WEBGL') |
| 688 @DocsEditable() |
| 689 static const int COLOR_ATTACHMENT2_WEBGL = 0x8CE2; |
| 690 |
| 691 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT3_WEBGL') |
| 692 @DocsEditable() |
| 693 static const int COLOR_ATTACHMENT3_WEBGL = 0x8CE3; |
| 694 |
| 695 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT4_WEBGL') |
| 696 @DocsEditable() |
| 697 static const int COLOR_ATTACHMENT4_WEBGL = 0x8CE4; |
| 698 |
| 699 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT5_WEBGL') |
| 700 @DocsEditable() |
| 701 static const int COLOR_ATTACHMENT5_WEBGL = 0x8CE5; |
| 702 |
| 703 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT6_WEBGL') |
| 704 @DocsEditable() |
| 705 static const int COLOR_ATTACHMENT6_WEBGL = 0x8CE6; |
| 706 |
| 707 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT7_WEBGL') |
| 708 @DocsEditable() |
| 709 static const int COLOR_ATTACHMENT7_WEBGL = 0x8CE7; |
| 710 |
| 711 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT8_WEBGL') |
| 712 @DocsEditable() |
| 713 static const int COLOR_ATTACHMENT8_WEBGL = 0x8CE8; |
| 714 |
| 715 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT9_WEBGL') |
| 716 @DocsEditable() |
| 717 static const int COLOR_ATTACHMENT9_WEBGL = 0x8CE9; |
| 718 |
| 719 @DomName('WebGLDrawBuffers.DRAW_BUFFER0_WEBGL') |
| 720 @DocsEditable() |
| 721 static const int DRAW_BUFFER0_WEBGL = 0x8825; |
| 722 |
| 723 @DomName('WebGLDrawBuffers.DRAW_BUFFER10_WEBGL') |
| 724 @DocsEditable() |
| 725 static const int DRAW_BUFFER10_WEBGL = 0x882F; |
| 726 |
| 727 @DomName('WebGLDrawBuffers.DRAW_BUFFER11_WEBGL') |
| 728 @DocsEditable() |
| 729 static const int DRAW_BUFFER11_WEBGL = 0x8830; |
| 730 |
| 731 @DomName('WebGLDrawBuffers.DRAW_BUFFER12_WEBGL') |
| 732 @DocsEditable() |
| 733 static const int DRAW_BUFFER12_WEBGL = 0x8831; |
| 734 |
| 735 @DomName('WebGLDrawBuffers.DRAW_BUFFER13_WEBGL') |
| 736 @DocsEditable() |
| 737 static const int DRAW_BUFFER13_WEBGL = 0x8832; |
| 738 |
| 739 @DomName('WebGLDrawBuffers.DRAW_BUFFER14_WEBGL') |
| 740 @DocsEditable() |
| 741 static const int DRAW_BUFFER14_WEBGL = 0x8833; |
| 742 |
| 743 @DomName('WebGLDrawBuffers.DRAW_BUFFER15_WEBGL') |
| 744 @DocsEditable() |
| 745 static const int DRAW_BUFFER15_WEBGL = 0x8834; |
| 746 |
| 747 @DomName('WebGLDrawBuffers.DRAW_BUFFER1_WEBGL') |
| 748 @DocsEditable() |
| 749 static const int DRAW_BUFFER1_WEBGL = 0x8826; |
| 750 |
| 751 @DomName('WebGLDrawBuffers.DRAW_BUFFER2_WEBGL') |
| 752 @DocsEditable() |
| 753 static const int DRAW_BUFFER2_WEBGL = 0x8827; |
| 754 |
| 755 @DomName('WebGLDrawBuffers.DRAW_BUFFER3_WEBGL') |
| 756 @DocsEditable() |
| 757 static const int DRAW_BUFFER3_WEBGL = 0x8828; |
| 758 |
| 759 @DomName('WebGLDrawBuffers.DRAW_BUFFER4_WEBGL') |
| 760 @DocsEditable() |
| 761 static const int DRAW_BUFFER4_WEBGL = 0x8829; |
| 762 |
| 763 @DomName('WebGLDrawBuffers.DRAW_BUFFER5_WEBGL') |
| 764 @DocsEditable() |
| 765 static const int DRAW_BUFFER5_WEBGL = 0x882A; |
| 766 |
| 767 @DomName('WebGLDrawBuffers.DRAW_BUFFER6_WEBGL') |
| 768 @DocsEditable() |
| 769 static const int DRAW_BUFFER6_WEBGL = 0x882B; |
| 770 |
| 771 @DomName('WebGLDrawBuffers.DRAW_BUFFER7_WEBGL') |
| 772 @DocsEditable() |
| 773 static const int DRAW_BUFFER7_WEBGL = 0x882C; |
| 774 |
| 775 @DomName('WebGLDrawBuffers.DRAW_BUFFER8_WEBGL') |
| 776 @DocsEditable() |
| 777 static const int DRAW_BUFFER8_WEBGL = 0x882D; |
| 778 |
| 779 @DomName('WebGLDrawBuffers.DRAW_BUFFER9_WEBGL') |
| 780 @DocsEditable() |
| 781 static const int DRAW_BUFFER9_WEBGL = 0x882E; |
| 782 |
| 783 @DomName('WebGLDrawBuffers.MAX_COLOR_ATTACHMENTS_WEBGL') |
| 784 @DocsEditable() |
| 785 static const int MAX_COLOR_ATTACHMENTS_WEBGL = 0x8CDF; |
| 786 |
| 787 @DomName('WebGLDrawBuffers.MAX_DRAW_BUFFERS_WEBGL') |
| 788 @DocsEditable() |
| 789 static const int MAX_DRAW_BUFFERS_WEBGL = 0x8824; |
| 790 |
| 791 @JSName('drawBuffersWEBGL') |
| 792 @DomName('WebGLDrawBuffers.drawBuffersWEBGL') |
| 793 @DocsEditable() |
| 794 void drawBuffersWebgl(List<int> buffers) native; |
| 795 } |
| 796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 797 // for details. All rights reserved. Use of this source code is governed by a |
| 798 // BSD-style license that can be found in the LICENSE file. |
| 799 |
| 800 |
| 801 @DocsEditable() |
| 802 @DomName('EXTBlendMinMax') |
| 803 @Experimental() // untriaged |
| 804 @Native("EXTBlendMinMax") |
| 805 class ExtBlendMinMax extends Interceptor { |
| 806 // To suppress missing implicit constructor warnings. |
| 807 factory ExtBlendMinMax._() { throw new UnsupportedError("Not supported"); } |
| 808 |
| 809 @DomName('EXTBlendMinMax.MAX_EXT') |
| 810 @DocsEditable() |
| 811 @Experimental() // untriaged |
| 812 static const int MAX_EXT = 0x8008; |
| 813 |
| 814 @DomName('EXTBlendMinMax.MIN_EXT') |
| 815 @DocsEditable() |
| 816 @Experimental() // untriaged |
| 817 static const int MIN_EXT = 0x8007; |
| 818 } |
| 819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 820 // for details. All rights reserved. Use of this source code is governed by a |
| 821 // BSD-style license that can be found in the LICENSE file. |
| 822 |
| 823 |
| 824 @DocsEditable() |
| 825 @DomName('EXTFragDepth') |
| 826 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/ |
| 827 @Experimental() |
| 828 @Native("EXTFragDepth") |
| 829 class ExtFragDepth extends Interceptor { |
| 830 // To suppress missing implicit constructor warnings. |
| 831 factory ExtFragDepth._() { throw new UnsupportedError("Not supported"); } |
| 832 } |
| 833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 834 // for details. All rights reserved. Use of this source code is governed by a |
| 835 // BSD-style license that can be found in the LICENSE file. |
| 836 |
| 837 |
| 838 @DocsEditable() |
| 839 @DomName('EXTShaderTextureLOD') |
| 840 @Experimental() // untriaged |
| 841 @Native("EXTShaderTextureLOD") |
| 842 class ExtShaderTextureLod extends Interceptor { |
| 843 // To suppress missing implicit constructor warnings. |
| 844 factory ExtShaderTextureLod._() { throw new UnsupportedError("Not supported");
} |
| 845 } |
| 846 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 847 // for details. All rights reserved. Use of this source code is governed by a |
| 848 // BSD-style license that can be found in the LICENSE file. |
| 849 |
| 850 |
| 851 @DocsEditable() |
| 852 @DomName('EXTTextureFilterAnisotropic') |
| 853 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop
ic/ |
| 854 @Experimental() |
| 855 @Native("EXTTextureFilterAnisotropic") |
| 856 class ExtTextureFilterAnisotropic extends Interceptor { |
| 857 // To suppress missing implicit constructor warnings. |
| 858 factory ExtTextureFilterAnisotropic._() { throw new UnsupportedError("Not supp
orted"); } |
| 859 |
| 860 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT') |
| 861 @DocsEditable() |
| 862 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; |
| 863 |
| 864 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT') |
| 865 @DocsEditable() |
| 866 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; |
| 867 } |
| 868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 869 // for details. All rights reserved. Use of this source code is governed by a |
| 870 // BSD-style license that can be found in the LICENSE file. |
| 871 |
| 872 |
| 873 @DocsEditable() |
| 874 @DomName('WebGLFramebuffer') |
| 875 @Unstable() |
| 876 @Native("WebGLFramebuffer") |
| 877 class Framebuffer extends Interceptor { |
| 878 // To suppress missing implicit constructor warnings. |
| 879 factory Framebuffer._() { throw new UnsupportedError("Not supported"); } |
| 880 } |
| 881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 882 // for details. All rights reserved. Use of this source code is governed by a |
| 883 // BSD-style license that can be found in the LICENSE file. |
| 884 |
| 885 |
| 886 @DocsEditable() |
| 887 @DomName('WebGLLoseContext') |
| 888 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ |
| 889 @Experimental() |
| 890 @Native("WebGLLoseContext,WebGLExtensionLoseContext") |
| 891 class LoseContext extends Interceptor { |
| 892 // To suppress missing implicit constructor warnings. |
| 893 factory LoseContext._() { throw new UnsupportedError("Not supported"); } |
| 894 |
| 895 @DomName('WebGLLoseContext.loseContext') |
| 896 @DocsEditable() |
| 897 void loseContext() native; |
| 898 |
| 899 @DomName('WebGLLoseContext.restoreContext') |
| 900 @DocsEditable() |
| 901 void restoreContext() native; |
| 902 } |
| 903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 904 // for details. All rights reserved. Use of this source code is governed by a |
| 905 // BSD-style license that can be found in the LICENSE file. |
| 906 |
| 907 |
| 908 @DocsEditable() |
| 909 @DomName('OESElementIndexUint') |
| 910 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/ |
| 911 @Experimental() // experimental |
| 912 @Native("OESElementIndexUint") |
| 913 class OesElementIndexUint extends Interceptor { |
| 914 // To suppress missing implicit constructor warnings. |
| 915 factory OesElementIndexUint._() { throw new UnsupportedError("Not supported");
} |
| 916 } |
| 917 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 918 // for details. All rights reserved. Use of this source code is governed by a |
| 919 // BSD-style license that can be found in the LICENSE file. |
| 920 |
| 921 |
| 922 @DocsEditable() |
| 923 @DomName('OESStandardDerivatives') |
| 924 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/ |
| 925 @Experimental() // experimental |
| 926 @Native("OESStandardDerivatives") |
| 927 class OesStandardDerivatives extends Interceptor { |
| 928 // To suppress missing implicit constructor warnings. |
| 929 factory OesStandardDerivatives._() { throw new UnsupportedError("Not supported
"); } |
| 930 |
| 931 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES') |
| 932 @DocsEditable() |
| 933 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; |
| 934 } |
| 935 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 936 // for details. All rights reserved. Use of this source code is governed by a |
| 937 // BSD-style license that can be found in the LICENSE file. |
| 938 |
| 939 |
| 940 @DocsEditable() |
| 941 @DomName('OESTextureFloat') |
| 942 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/ |
| 943 @Experimental() // experimental |
| 944 @Native("OESTextureFloat") |
| 945 class OesTextureFloat extends Interceptor { |
| 946 // To suppress missing implicit constructor warnings. |
| 947 factory OesTextureFloat._() { throw new UnsupportedError("Not supported"); } |
| 948 } |
| 949 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 950 // for details. All rights reserved. Use of this source code is governed by a |
| 951 // BSD-style license that can be found in the LICENSE file. |
| 952 |
| 953 |
| 954 @DocsEditable() |
| 955 @DomName('OESTextureFloatLinear') |
| 956 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/ |
| 957 @Experimental() |
| 958 @Native("OESTextureFloatLinear") |
| 959 class OesTextureFloatLinear extends Interceptor { |
| 960 // To suppress missing implicit constructor warnings. |
| 961 factory OesTextureFloatLinear._() { throw new UnsupportedError("Not supported"
); } |
| 962 } |
| 963 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 964 // for details. All rights reserved. Use of this source code is governed by a |
| 965 // BSD-style license that can be found in the LICENSE file. |
| 966 |
| 967 |
| 968 @DocsEditable() |
| 969 @DomName('OESTextureHalfFloat') |
| 970 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/ |
| 971 @Experimental() // experimental |
| 972 @Native("OESTextureHalfFloat") |
| 973 class OesTextureHalfFloat extends Interceptor { |
| 974 // To suppress missing implicit constructor warnings. |
| 975 factory OesTextureHalfFloat._() { throw new UnsupportedError("Not supported");
} |
| 976 |
| 977 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES') |
| 978 @DocsEditable() |
| 979 static const int HALF_FLOAT_OES = 0x8D61; |
| 980 } |
| 981 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 982 // for details. All rights reserved. Use of this source code is governed by a |
| 983 // BSD-style license that can be found in the LICENSE file. |
| 984 |
| 985 |
| 986 @DocsEditable() |
| 987 @DomName('OESTextureHalfFloatLinear') |
| 988 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea
r/ |
| 989 @Experimental() |
| 990 @Native("OESTextureHalfFloatLinear") |
| 991 class OesTextureHalfFloatLinear extends Interceptor { |
| 992 // To suppress missing implicit constructor warnings. |
| 993 factory OesTextureHalfFloatLinear._() { throw new UnsupportedError("Not suppor
ted"); } |
| 994 } |
| 995 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 996 // for details. All rights reserved. Use of this source code is governed by a |
| 997 // BSD-style license that can be found in the LICENSE file. |
| 998 |
| 999 |
| 1000 @DocsEditable() |
| 1001 @DomName('OESVertexArrayObject') |
| 1002 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
| 1003 @Experimental() // experimental |
| 1004 @Native("OESVertexArrayObject") |
| 1005 class OesVertexArrayObject extends Interceptor { |
| 1006 // To suppress missing implicit constructor warnings. |
| 1007 factory OesVertexArrayObject._() { throw new UnsupportedError("Not supported")
; } |
| 1008 |
| 1009 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES') |
| 1010 @DocsEditable() |
| 1011 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; |
| 1012 |
| 1013 @JSName('bindVertexArrayOES') |
| 1014 @DomName('OESVertexArrayObject.bindVertexArrayOES') |
| 1015 @DocsEditable() |
| 1016 void bindVertexArray(VertexArrayObject arrayObject) native; |
| 1017 |
| 1018 @JSName('createVertexArrayOES') |
| 1019 @DomName('OESVertexArrayObject.createVertexArrayOES') |
| 1020 @DocsEditable() |
| 1021 VertexArrayObject createVertexArray() native; |
| 1022 |
| 1023 @JSName('deleteVertexArrayOES') |
| 1024 @DomName('OESVertexArrayObject.deleteVertexArrayOES') |
| 1025 @DocsEditable() |
| 1026 void deleteVertexArray(VertexArrayObject arrayObject) native; |
| 1027 |
| 1028 @JSName('isVertexArrayOES') |
| 1029 @DomName('OESVertexArrayObject.isVertexArrayOES') |
| 1030 @DocsEditable() |
| 1031 bool isVertexArray(VertexArrayObject arrayObject) native; |
| 1032 } |
| 1033 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1034 // for details. All rights reserved. Use of this source code is governed by a |
| 1035 // BSD-style license that can be found in the LICENSE file. |
| 1036 |
| 1037 |
| 1038 @DocsEditable() |
| 1039 @DomName('WebGLProgram') |
| 1040 @Unstable() |
| 1041 @Native("WebGLProgram") |
| 1042 class Program extends Interceptor { |
| 1043 // To suppress missing implicit constructor warnings. |
| 1044 factory Program._() { throw new UnsupportedError("Not supported"); } |
| 1045 } |
| 1046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1047 // for details. All rights reserved. Use of this source code is governed by a |
| 1048 // BSD-style license that can be found in the LICENSE file. |
| 1049 |
| 1050 |
| 1051 @DocsEditable() |
| 1052 @DomName('WebGLRenderbuffer') |
| 1053 @Unstable() |
| 1054 @Native("WebGLRenderbuffer") |
| 1055 class Renderbuffer extends Interceptor { |
| 1056 // To suppress missing implicit constructor warnings. |
| 1057 factory Renderbuffer._() { throw new UnsupportedError("Not supported"); } |
| 1058 } |
| 1059 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 1060 // for details. All rights reserved. Use of this source code is governed by a |
| 1061 // BSD-style license that can be found in the LICENSE file. |
| 1062 |
| 1063 |
| 1064 @DomName('WebGLRenderingContext') |
| 1065 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1066 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 1067 @Experimental() |
| 1068 @Unstable() |
| 1069 @Native("WebGLRenderingContext") |
| 1070 class RenderingContext extends Interceptor implements CanvasRenderingContext { |
| 1071 // To suppress missing implicit constructor warnings. |
| 1072 factory RenderingContext._() { throw new UnsupportedError("Not supported"); } |
| 1073 |
| 1074 /// Checks if this type is supported on the current platform. |
| 1075 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)'); |
| 1076 |
| 1077 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES') |
| 1078 @DocsEditable() |
| 1079 static const int ACTIVE_ATTRIBUTES = 0x8B89; |
| 1080 |
| 1081 @DomName('WebGLRenderingContext.ACTIVE_TEXTURE') |
| 1082 @DocsEditable() |
| 1083 static const int ACTIVE_TEXTURE = 0x84E0; |
| 1084 |
| 1085 @DomName('WebGLRenderingContext.ACTIVE_UNIFORMS') |
| 1086 @DocsEditable() |
| 1087 static const int ACTIVE_UNIFORMS = 0x8B86; |
| 1088 |
| 1089 @DomName('WebGLRenderingContext.ALIASED_LINE_WIDTH_RANGE') |
| 1090 @DocsEditable() |
| 1091 static const int ALIASED_LINE_WIDTH_RANGE = 0x846E; |
| 1092 |
| 1093 @DomName('WebGLRenderingContext.ALIASED_POINT_SIZE_RANGE') |
| 1094 @DocsEditable() |
| 1095 static const int ALIASED_POINT_SIZE_RANGE = 0x846D; |
| 1096 |
| 1097 @DomName('WebGLRenderingContext.ALPHA') |
| 1098 @DocsEditable() |
| 1099 static const int ALPHA = 0x1906; |
| 1100 |
| 1101 @DomName('WebGLRenderingContext.ALPHA_BITS') |
| 1102 @DocsEditable() |
| 1103 static const int ALPHA_BITS = 0x0D55; |
| 1104 |
| 1105 @DomName('WebGLRenderingContext.ALWAYS') |
| 1106 @DocsEditable() |
| 1107 static const int ALWAYS = 0x0207; |
| 1108 |
| 1109 @DomName('WebGLRenderingContext.ARRAY_BUFFER') |
| 1110 @DocsEditable() |
| 1111 static const int ARRAY_BUFFER = 0x8892; |
| 1112 |
| 1113 @DomName('WebGLRenderingContext.ARRAY_BUFFER_BINDING') |
| 1114 @DocsEditable() |
| 1115 static const int ARRAY_BUFFER_BINDING = 0x8894; |
| 1116 |
| 1117 @DomName('WebGLRenderingContext.ATTACHED_SHADERS') |
| 1118 @DocsEditable() |
| 1119 static const int ATTACHED_SHADERS = 0x8B85; |
| 1120 |
| 1121 @DomName('WebGLRenderingContext.BACK') |
| 1122 @DocsEditable() |
| 1123 static const int BACK = 0x0405; |
| 1124 |
| 1125 @DomName('WebGLRenderingContext.BLEND') |
| 1126 @DocsEditable() |
| 1127 static const int BLEND = 0x0BE2; |
| 1128 |
| 1129 @DomName('WebGLRenderingContext.BLEND_COLOR') |
| 1130 @DocsEditable() |
| 1131 static const int BLEND_COLOR = 0x8005; |
| 1132 |
| 1133 @DomName('WebGLRenderingContext.BLEND_DST_ALPHA') |
| 1134 @DocsEditable() |
| 1135 static const int BLEND_DST_ALPHA = 0x80CA; |
| 1136 |
| 1137 @DomName('WebGLRenderingContext.BLEND_DST_RGB') |
| 1138 @DocsEditable() |
| 1139 static const int BLEND_DST_RGB = 0x80C8; |
| 1140 |
| 1141 @DomName('WebGLRenderingContext.BLEND_EQUATION') |
| 1142 @DocsEditable() |
| 1143 static const int BLEND_EQUATION = 0x8009; |
| 1144 |
| 1145 @DomName('WebGLRenderingContext.BLEND_EQUATION_ALPHA') |
| 1146 @DocsEditable() |
| 1147 static const int BLEND_EQUATION_ALPHA = 0x883D; |
| 1148 |
| 1149 @DomName('WebGLRenderingContext.BLEND_EQUATION_RGB') |
| 1150 @DocsEditable() |
| 1151 static const int BLEND_EQUATION_RGB = 0x8009; |
| 1152 |
| 1153 @DomName('WebGLRenderingContext.BLEND_SRC_ALPHA') |
| 1154 @DocsEditable() |
| 1155 static const int BLEND_SRC_ALPHA = 0x80CB; |
| 1156 |
| 1157 @DomName('WebGLRenderingContext.BLEND_SRC_RGB') |
| 1158 @DocsEditable() |
| 1159 static const int BLEND_SRC_RGB = 0x80C9; |
| 1160 |
| 1161 @DomName('WebGLRenderingContext.BLUE_BITS') |
| 1162 @DocsEditable() |
| 1163 static const int BLUE_BITS = 0x0D54; |
| 1164 |
| 1165 @DomName('WebGLRenderingContext.BOOL') |
| 1166 @DocsEditable() |
| 1167 static const int BOOL = 0x8B56; |
| 1168 |
| 1169 @DomName('WebGLRenderingContext.BOOL_VEC2') |
| 1170 @DocsEditable() |
| 1171 static const int BOOL_VEC2 = 0x8B57; |
| 1172 |
| 1173 @DomName('WebGLRenderingContext.BOOL_VEC3') |
| 1174 @DocsEditable() |
| 1175 static const int BOOL_VEC3 = 0x8B58; |
| 1176 |
| 1177 @DomName('WebGLRenderingContext.BOOL_VEC4') |
| 1178 @DocsEditable() |
| 1179 static const int BOOL_VEC4 = 0x8B59; |
| 1180 |
| 1181 @DomName('WebGLRenderingContext.BROWSER_DEFAULT_WEBGL') |
| 1182 @DocsEditable() |
| 1183 static const int BROWSER_DEFAULT_WEBGL = 0x9244; |
| 1184 |
| 1185 @DomName('WebGLRenderingContext.BUFFER_SIZE') |
| 1186 @DocsEditable() |
| 1187 static const int BUFFER_SIZE = 0x8764; |
| 1188 |
| 1189 @DomName('WebGLRenderingContext.BUFFER_USAGE') |
| 1190 @DocsEditable() |
| 1191 static const int BUFFER_USAGE = 0x8765; |
| 1192 |
| 1193 @DomName('WebGLRenderingContext.BYTE') |
| 1194 @DocsEditable() |
| 1195 static const int BYTE = 0x1400; |
| 1196 |
| 1197 @DomName('WebGLRenderingContext.CCW') |
| 1198 @DocsEditable() |
| 1199 static const int CCW = 0x0901; |
| 1200 |
| 1201 @DomName('WebGLRenderingContext.CLAMP_TO_EDGE') |
| 1202 @DocsEditable() |
| 1203 static const int CLAMP_TO_EDGE = 0x812F; |
| 1204 |
| 1205 @DomName('WebGLRenderingContext.COLOR_ATTACHMENT0') |
| 1206 @DocsEditable() |
| 1207 static const int COLOR_ATTACHMENT0 = 0x8CE0; |
| 1208 |
| 1209 @DomName('WebGLRenderingContext.COLOR_BUFFER_BIT') |
| 1210 @DocsEditable() |
| 1211 static const int COLOR_BUFFER_BIT = 0x00004000; |
| 1212 |
| 1213 @DomName('WebGLRenderingContext.COLOR_CLEAR_VALUE') |
| 1214 @DocsEditable() |
| 1215 static const int COLOR_CLEAR_VALUE = 0x0C22; |
| 1216 |
| 1217 @DomName('WebGLRenderingContext.COLOR_WRITEMASK') |
| 1218 @DocsEditable() |
| 1219 static const int COLOR_WRITEMASK = 0x0C23; |
| 1220 |
| 1221 @DomName('WebGLRenderingContext.COMPILE_STATUS') |
| 1222 @DocsEditable() |
| 1223 static const int COMPILE_STATUS = 0x8B81; |
| 1224 |
| 1225 @DomName('WebGLRenderingContext.COMPRESSED_TEXTURE_FORMATS') |
| 1226 @DocsEditable() |
| 1227 static const int COMPRESSED_TEXTURE_FORMATS = 0x86A3; |
| 1228 |
| 1229 @DomName('WebGLRenderingContext.CONSTANT_ALPHA') |
| 1230 @DocsEditable() |
| 1231 static const int CONSTANT_ALPHA = 0x8003; |
| 1232 |
| 1233 @DomName('WebGLRenderingContext.CONSTANT_COLOR') |
| 1234 @DocsEditable() |
| 1235 static const int CONSTANT_COLOR = 0x8001; |
| 1236 |
| 1237 @DomName('WebGLRenderingContext.CONTEXT_LOST_WEBGL') |
| 1238 @DocsEditable() |
| 1239 static const int CONTEXT_LOST_WEBGL = 0x9242; |
| 1240 |
| 1241 @DomName('WebGLRenderingContext.CULL_FACE') |
| 1242 @DocsEditable() |
| 1243 static const int CULL_FACE = 0x0B44; |
| 1244 |
| 1245 @DomName('WebGLRenderingContext.CULL_FACE_MODE') |
| 1246 @DocsEditable() |
| 1247 static const int CULL_FACE_MODE = 0x0B45; |
| 1248 |
| 1249 @DomName('WebGLRenderingContext.CURRENT_PROGRAM') |
| 1250 @DocsEditable() |
| 1251 static const int CURRENT_PROGRAM = 0x8B8D; |
| 1252 |
| 1253 @DomName('WebGLRenderingContext.CURRENT_VERTEX_ATTRIB') |
| 1254 @DocsEditable() |
| 1255 static const int CURRENT_VERTEX_ATTRIB = 0x8626; |
| 1256 |
| 1257 @DomName('WebGLRenderingContext.CW') |
| 1258 @DocsEditable() |
| 1259 static const int CW = 0x0900; |
| 1260 |
| 1261 @DomName('WebGLRenderingContext.DECR') |
| 1262 @DocsEditable() |
| 1263 static const int DECR = 0x1E03; |
| 1264 |
| 1265 @DomName('WebGLRenderingContext.DECR_WRAP') |
| 1266 @DocsEditable() |
| 1267 static const int DECR_WRAP = 0x8508; |
| 1268 |
| 1269 @DomName('WebGLRenderingContext.DELETE_STATUS') |
| 1270 @DocsEditable() |
| 1271 static const int DELETE_STATUS = 0x8B80; |
| 1272 |
| 1273 @DomName('WebGLRenderingContext.DEPTH_ATTACHMENT') |
| 1274 @DocsEditable() |
| 1275 static const int DEPTH_ATTACHMENT = 0x8D00; |
| 1276 |
| 1277 @DomName('WebGLRenderingContext.DEPTH_BITS') |
| 1278 @DocsEditable() |
| 1279 static const int DEPTH_BITS = 0x0D56; |
| 1280 |
| 1281 @DomName('WebGLRenderingContext.DEPTH_BUFFER_BIT') |
| 1282 @DocsEditable() |
| 1283 static const int DEPTH_BUFFER_BIT = 0x00000100; |
| 1284 |
| 1285 @DomName('WebGLRenderingContext.DEPTH_CLEAR_VALUE') |
| 1286 @DocsEditable() |
| 1287 static const int DEPTH_CLEAR_VALUE = 0x0B73; |
| 1288 |
| 1289 @DomName('WebGLRenderingContext.DEPTH_COMPONENT') |
| 1290 @DocsEditable() |
| 1291 static const int DEPTH_COMPONENT = 0x1902; |
| 1292 |
| 1293 @DomName('WebGLRenderingContext.DEPTH_COMPONENT16') |
| 1294 @DocsEditable() |
| 1295 static const int DEPTH_COMPONENT16 = 0x81A5; |
| 1296 |
| 1297 @DomName('WebGLRenderingContext.DEPTH_FUNC') |
| 1298 @DocsEditable() |
| 1299 static const int DEPTH_FUNC = 0x0B74; |
| 1300 |
| 1301 @DomName('WebGLRenderingContext.DEPTH_RANGE') |
| 1302 @DocsEditable() |
| 1303 static const int DEPTH_RANGE = 0x0B70; |
| 1304 |
| 1305 @DomName('WebGLRenderingContext.DEPTH_STENCIL') |
| 1306 @DocsEditable() |
| 1307 static const int DEPTH_STENCIL = 0x84F9; |
| 1308 |
| 1309 @DomName('WebGLRenderingContext.DEPTH_STENCIL_ATTACHMENT') |
| 1310 @DocsEditable() |
| 1311 static const int DEPTH_STENCIL_ATTACHMENT = 0x821A; |
| 1312 |
| 1313 @DomName('WebGLRenderingContext.DEPTH_TEST') |
| 1314 @DocsEditable() |
| 1315 static const int DEPTH_TEST = 0x0B71; |
| 1316 |
| 1317 @DomName('WebGLRenderingContext.DEPTH_WRITEMASK') |
| 1318 @DocsEditable() |
| 1319 static const int DEPTH_WRITEMASK = 0x0B72; |
| 1320 |
| 1321 @DomName('WebGLRenderingContext.DITHER') |
| 1322 @DocsEditable() |
| 1323 static const int DITHER = 0x0BD0; |
| 1324 |
| 1325 @DomName('WebGLRenderingContext.DONT_CARE') |
| 1326 @DocsEditable() |
| 1327 static const int DONT_CARE = 0x1100; |
| 1328 |
| 1329 @DomName('WebGLRenderingContext.DST_ALPHA') |
| 1330 @DocsEditable() |
| 1331 static const int DST_ALPHA = 0x0304; |
| 1332 |
| 1333 @DomName('WebGLRenderingContext.DST_COLOR') |
| 1334 @DocsEditable() |
| 1335 static const int DST_COLOR = 0x0306; |
| 1336 |
| 1337 @DomName('WebGLRenderingContext.DYNAMIC_DRAW') |
| 1338 @DocsEditable() |
| 1339 static const int DYNAMIC_DRAW = 0x88E8; |
| 1340 |
| 1341 @DomName('WebGLRenderingContext.ELEMENT_ARRAY_BUFFER') |
| 1342 @DocsEditable() |
| 1343 static const int ELEMENT_ARRAY_BUFFER = 0x8893; |
| 1344 |
| 1345 @DomName('WebGLRenderingContext.ELEMENT_ARRAY_BUFFER_BINDING') |
| 1346 @DocsEditable() |
| 1347 static const int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895; |
| 1348 |
| 1349 @DomName('WebGLRenderingContext.EQUAL') |
| 1350 @DocsEditable() |
| 1351 static const int EQUAL = 0x0202; |
| 1352 |
| 1353 @DomName('WebGLRenderingContext.FASTEST') |
| 1354 @DocsEditable() |
| 1355 static const int FASTEST = 0x1101; |
| 1356 |
| 1357 @DomName('WebGLRenderingContext.FLOAT') |
| 1358 @DocsEditable() |
| 1359 static const int FLOAT = 0x1406; |
| 1360 |
| 1361 @DomName('WebGLRenderingContext.FLOAT_MAT2') |
| 1362 @DocsEditable() |
| 1363 static const int FLOAT_MAT2 = 0x8B5A; |
| 1364 |
| 1365 @DomName('WebGLRenderingContext.FLOAT_MAT3') |
| 1366 @DocsEditable() |
| 1367 static const int FLOAT_MAT3 = 0x8B5B; |
| 1368 |
| 1369 @DomName('WebGLRenderingContext.FLOAT_MAT4') |
| 1370 @DocsEditable() |
| 1371 static const int FLOAT_MAT4 = 0x8B5C; |
| 1372 |
| 1373 @DomName('WebGLRenderingContext.FLOAT_VEC2') |
| 1374 @DocsEditable() |
| 1375 static const int FLOAT_VEC2 = 0x8B50; |
| 1376 |
| 1377 @DomName('WebGLRenderingContext.FLOAT_VEC3') |
| 1378 @DocsEditable() |
| 1379 static const int FLOAT_VEC3 = 0x8B51; |
| 1380 |
| 1381 @DomName('WebGLRenderingContext.FLOAT_VEC4') |
| 1382 @DocsEditable() |
| 1383 static const int FLOAT_VEC4 = 0x8B52; |
| 1384 |
| 1385 @DomName('WebGLRenderingContext.FRAGMENT_SHADER') |
| 1386 @DocsEditable() |
| 1387 static const int FRAGMENT_SHADER = 0x8B30; |
| 1388 |
| 1389 @DomName('WebGLRenderingContext.FRAMEBUFFER') |
| 1390 @DocsEditable() |
| 1391 static const int FRAMEBUFFER = 0x8D40; |
| 1392 |
| 1393 @DomName('WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME') |
| 1394 @DocsEditable() |
| 1395 static const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1; |
| 1396 |
| 1397 @DomName('WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE') |
| 1398 @DocsEditable() |
| 1399 static const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0; |
| 1400 |
| 1401 @DomName('WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE') |
| 1402 @DocsEditable() |
| 1403 static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3; |
| 1404 |
| 1405 @DomName('WebGLRenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL') |
| 1406 @DocsEditable() |
| 1407 static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2; |
| 1408 |
| 1409 @DomName('WebGLRenderingContext.FRAMEBUFFER_BINDING') |
| 1410 @DocsEditable() |
| 1411 static const int FRAMEBUFFER_BINDING = 0x8CA6; |
| 1412 |
| 1413 @DomName('WebGLRenderingContext.FRAMEBUFFER_COMPLETE') |
| 1414 @DocsEditable() |
| 1415 static const int FRAMEBUFFER_COMPLETE = 0x8CD5; |
| 1416 |
| 1417 @DomName('WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_ATTACHMENT') |
| 1418 @DocsEditable() |
| 1419 static const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6; |
| 1420 |
| 1421 @DomName('WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_DIMENSIONS') |
| 1422 @DocsEditable() |
| 1423 static const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9; |
| 1424 |
| 1425 @DomName('WebGLRenderingContext.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT') |
| 1426 @DocsEditable() |
| 1427 static const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7; |
| 1428 |
| 1429 @DomName('WebGLRenderingContext.FRAMEBUFFER_UNSUPPORTED') |
| 1430 @DocsEditable() |
| 1431 static const int FRAMEBUFFER_UNSUPPORTED = 0x8CDD; |
| 1432 |
| 1433 @DomName('WebGLRenderingContext.FRONT') |
| 1434 @DocsEditable() |
| 1435 static const int FRONT = 0x0404; |
| 1436 |
| 1437 @DomName('WebGLRenderingContext.FRONT_AND_BACK') |
| 1438 @DocsEditable() |
| 1439 static const int FRONT_AND_BACK = 0x0408; |
| 1440 |
| 1441 @DomName('WebGLRenderingContext.FRONT_FACE') |
| 1442 @DocsEditable() |
| 1443 static const int FRONT_FACE = 0x0B46; |
| 1444 |
| 1445 @DomName('WebGLRenderingContext.FUNC_ADD') |
| 1446 @DocsEditable() |
| 1447 static const int FUNC_ADD = 0x8006; |
| 1448 |
| 1449 @DomName('WebGLRenderingContext.FUNC_REVERSE_SUBTRACT') |
| 1450 @DocsEditable() |
| 1451 static const int FUNC_REVERSE_SUBTRACT = 0x800B; |
| 1452 |
| 1453 @DomName('WebGLRenderingContext.FUNC_SUBTRACT') |
| 1454 @DocsEditable() |
| 1455 static const int FUNC_SUBTRACT = 0x800A; |
| 1456 |
| 1457 @DomName('WebGLRenderingContext.GENERATE_MIPMAP_HINT') |
| 1458 @DocsEditable() |
| 1459 static const int GENERATE_MIPMAP_HINT = 0x8192; |
| 1460 |
| 1461 @DomName('WebGLRenderingContext.GEQUAL') |
| 1462 @DocsEditable() |
| 1463 static const int GEQUAL = 0x0206; |
| 1464 |
| 1465 @DomName('WebGLRenderingContext.GREATER') |
| 1466 @DocsEditable() |
| 1467 static const int GREATER = 0x0204; |
| 1468 |
| 1469 @DomName('WebGLRenderingContext.GREEN_BITS') |
| 1470 @DocsEditable() |
| 1471 static const int GREEN_BITS = 0x0D53; |
| 1472 |
| 1473 @DomName('WebGLRenderingContext.HIGH_FLOAT') |
| 1474 @DocsEditable() |
| 1475 static const int HIGH_FLOAT = 0x8DF2; |
| 1476 |
| 1477 @DomName('WebGLRenderingContext.HIGH_INT') |
| 1478 @DocsEditable() |
| 1479 static const int HIGH_INT = 0x8DF5; |
| 1480 |
| 1481 @DomName('WebGLRenderingContext.IMPLEMENTATION_COLOR_READ_FORMAT') |
| 1482 @DocsEditable() |
| 1483 @Experimental() // untriaged |
| 1484 static const int IMPLEMENTATION_COLOR_READ_FORMAT = 0x8B9B; |
| 1485 |
| 1486 @DomName('WebGLRenderingContext.IMPLEMENTATION_COLOR_READ_TYPE') |
| 1487 @DocsEditable() |
| 1488 @Experimental() // untriaged |
| 1489 static const int IMPLEMENTATION_COLOR_READ_TYPE = 0x8B9A; |
| 1490 |
| 1491 @DomName('WebGLRenderingContext.INCR') |
| 1492 @DocsEditable() |
| 1493 static const int INCR = 0x1E02; |
| 1494 |
| 1495 @DomName('WebGLRenderingContext.INCR_WRAP') |
| 1496 @DocsEditable() |
| 1497 static const int INCR_WRAP = 0x8507; |
| 1498 |
| 1499 @DomName('WebGLRenderingContext.INT') |
| 1500 @DocsEditable() |
| 1501 static const int INT = 0x1404; |
| 1502 |
| 1503 @DomName('WebGLRenderingContext.INT_VEC2') |
| 1504 @DocsEditable() |
| 1505 static const int INT_VEC2 = 0x8B53; |
| 1506 |
| 1507 @DomName('WebGLRenderingContext.INT_VEC3') |
| 1508 @DocsEditable() |
| 1509 static const int INT_VEC3 = 0x8B54; |
| 1510 |
| 1511 @DomName('WebGLRenderingContext.INT_VEC4') |
| 1512 @DocsEditable() |
| 1513 static const int INT_VEC4 = 0x8B55; |
| 1514 |
| 1515 @DomName('WebGLRenderingContext.INVALID_ENUM') |
| 1516 @DocsEditable() |
| 1517 static const int INVALID_ENUM = 0x0500; |
| 1518 |
| 1519 @DomName('WebGLRenderingContext.INVALID_FRAMEBUFFER_OPERATION') |
| 1520 @DocsEditable() |
| 1521 static const int INVALID_FRAMEBUFFER_OPERATION = 0x0506; |
| 1522 |
| 1523 @DomName('WebGLRenderingContext.INVALID_OPERATION') |
| 1524 @DocsEditable() |
| 1525 static const int INVALID_OPERATION = 0x0502; |
| 1526 |
| 1527 @DomName('WebGLRenderingContext.INVALID_VALUE') |
| 1528 @DocsEditable() |
| 1529 static const int INVALID_VALUE = 0x0501; |
| 1530 |
| 1531 @DomName('WebGLRenderingContext.INVERT') |
| 1532 @DocsEditable() |
| 1533 static const int INVERT = 0x150A; |
| 1534 |
| 1535 @DomName('WebGLRenderingContext.KEEP') |
| 1536 @DocsEditable() |
| 1537 static const int KEEP = 0x1E00; |
| 1538 |
| 1539 @DomName('WebGLRenderingContext.LEQUAL') |
| 1540 @DocsEditable() |
| 1541 static const int LEQUAL = 0x0203; |
| 1542 |
| 1543 @DomName('WebGLRenderingContext.LESS') |
| 1544 @DocsEditable() |
| 1545 static const int LESS = 0x0201; |
| 1546 |
| 1547 @DomName('WebGLRenderingContext.LINEAR') |
| 1548 @DocsEditable() |
| 1549 static const int LINEAR = 0x2601; |
| 1550 |
| 1551 @DomName('WebGLRenderingContext.LINEAR_MIPMAP_LINEAR') |
| 1552 @DocsEditable() |
| 1553 static const int LINEAR_MIPMAP_LINEAR = 0x2703; |
| 1554 |
| 1555 @DomName('WebGLRenderingContext.LINEAR_MIPMAP_NEAREST') |
| 1556 @DocsEditable() |
| 1557 static const int LINEAR_MIPMAP_NEAREST = 0x2701; |
| 1558 |
| 1559 @DomName('WebGLRenderingContext.LINES') |
| 1560 @DocsEditable() |
| 1561 static const int LINES = 0x0001; |
| 1562 |
| 1563 @DomName('WebGLRenderingContext.LINE_LOOP') |
| 1564 @DocsEditable() |
| 1565 static const int LINE_LOOP = 0x0002; |
| 1566 |
| 1567 @DomName('WebGLRenderingContext.LINE_STRIP') |
| 1568 @DocsEditable() |
| 1569 static const int LINE_STRIP = 0x0003; |
| 1570 |
| 1571 @DomName('WebGLRenderingContext.LINE_WIDTH') |
| 1572 @DocsEditable() |
| 1573 static const int LINE_WIDTH = 0x0B21; |
| 1574 |
| 1575 @DomName('WebGLRenderingContext.LINK_STATUS') |
| 1576 @DocsEditable() |
| 1577 static const int LINK_STATUS = 0x8B82; |
| 1578 |
| 1579 @DomName('WebGLRenderingContext.LOW_FLOAT') |
| 1580 @DocsEditable() |
| 1581 static const int LOW_FLOAT = 0x8DF0; |
| 1582 |
| 1583 @DomName('WebGLRenderingContext.LOW_INT') |
| 1584 @DocsEditable() |
| 1585 static const int LOW_INT = 0x8DF3; |
| 1586 |
| 1587 @DomName('WebGLRenderingContext.LUMINANCE') |
| 1588 @DocsEditable() |
| 1589 static const int LUMINANCE = 0x1909; |
| 1590 |
| 1591 @DomName('WebGLRenderingContext.LUMINANCE_ALPHA') |
| 1592 @DocsEditable() |
| 1593 static const int LUMINANCE_ALPHA = 0x190A; |
| 1594 |
| 1595 @DomName('WebGLRenderingContext.MAX_COMBINED_TEXTURE_IMAGE_UNITS') |
| 1596 @DocsEditable() |
| 1597 static const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D; |
| 1598 |
| 1599 @DomName('WebGLRenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE') |
| 1600 @DocsEditable() |
| 1601 static const int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C; |
| 1602 |
| 1603 @DomName('WebGLRenderingContext.MAX_FRAGMENT_UNIFORM_VECTORS') |
| 1604 @DocsEditable() |
| 1605 static const int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD; |
| 1606 |
| 1607 @DomName('WebGLRenderingContext.MAX_RENDERBUFFER_SIZE') |
| 1608 @DocsEditable() |
| 1609 static const int MAX_RENDERBUFFER_SIZE = 0x84E8; |
| 1610 |
| 1611 @DomName('WebGLRenderingContext.MAX_TEXTURE_IMAGE_UNITS') |
| 1612 @DocsEditable() |
| 1613 static const int MAX_TEXTURE_IMAGE_UNITS = 0x8872; |
| 1614 |
| 1615 @DomName('WebGLRenderingContext.MAX_TEXTURE_SIZE') |
| 1616 @DocsEditable() |
| 1617 static const int MAX_TEXTURE_SIZE = 0x0D33; |
| 1618 |
| 1619 @DomName('WebGLRenderingContext.MAX_VARYING_VECTORS') |
| 1620 @DocsEditable() |
| 1621 static const int MAX_VARYING_VECTORS = 0x8DFC; |
| 1622 |
| 1623 @DomName('WebGLRenderingContext.MAX_VERTEX_ATTRIBS') |
| 1624 @DocsEditable() |
| 1625 static const int MAX_VERTEX_ATTRIBS = 0x8869; |
| 1626 |
| 1627 @DomName('WebGLRenderingContext.MAX_VERTEX_TEXTURE_IMAGE_UNITS') |
| 1628 @DocsEditable() |
| 1629 static const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C; |
| 1630 |
| 1631 @DomName('WebGLRenderingContext.MAX_VERTEX_UNIFORM_VECTORS') |
| 1632 @DocsEditable() |
| 1633 static const int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB; |
| 1634 |
| 1635 @DomName('WebGLRenderingContext.MAX_VIEWPORT_DIMS') |
| 1636 @DocsEditable() |
| 1637 static const int MAX_VIEWPORT_DIMS = 0x0D3A; |
| 1638 |
| 1639 @DomName('WebGLRenderingContext.MEDIUM_FLOAT') |
| 1640 @DocsEditable() |
| 1641 static const int MEDIUM_FLOAT = 0x8DF1; |
| 1642 |
| 1643 @DomName('WebGLRenderingContext.MEDIUM_INT') |
| 1644 @DocsEditable() |
| 1645 static const int MEDIUM_INT = 0x8DF4; |
| 1646 |
| 1647 @DomName('WebGLRenderingContext.MIRRORED_REPEAT') |
| 1648 @DocsEditable() |
| 1649 static const int MIRRORED_REPEAT = 0x8370; |
| 1650 |
| 1651 @DomName('WebGLRenderingContext.NEAREST') |
| 1652 @DocsEditable() |
| 1653 static const int NEAREST = 0x2600; |
| 1654 |
| 1655 @DomName('WebGLRenderingContext.NEAREST_MIPMAP_LINEAR') |
| 1656 @DocsEditable() |
| 1657 static const int NEAREST_MIPMAP_LINEAR = 0x2702; |
| 1658 |
| 1659 @DomName('WebGLRenderingContext.NEAREST_MIPMAP_NEAREST') |
| 1660 @DocsEditable() |
| 1661 static const int NEAREST_MIPMAP_NEAREST = 0x2700; |
| 1662 |
| 1663 @DomName('WebGLRenderingContext.NEVER') |
| 1664 @DocsEditable() |
| 1665 static const int NEVER = 0x0200; |
| 1666 |
| 1667 @DomName('WebGLRenderingContext.NICEST') |
| 1668 @DocsEditable() |
| 1669 static const int NICEST = 0x1102; |
| 1670 |
| 1671 @DomName('WebGLRenderingContext.NONE') |
| 1672 @DocsEditable() |
| 1673 static const int NONE = 0; |
| 1674 |
| 1675 @DomName('WebGLRenderingContext.NOTEQUAL') |
| 1676 @DocsEditable() |
| 1677 static const int NOTEQUAL = 0x0205; |
| 1678 |
| 1679 @DomName('WebGLRenderingContext.NO_ERROR') |
| 1680 @DocsEditable() |
| 1681 static const int NO_ERROR = 0; |
| 1682 |
| 1683 @DomName('WebGLRenderingContext.ONE') |
| 1684 @DocsEditable() |
| 1685 static const int ONE = 1; |
| 1686 |
| 1687 @DomName('WebGLRenderingContext.ONE_MINUS_CONSTANT_ALPHA') |
| 1688 @DocsEditable() |
| 1689 static const int ONE_MINUS_CONSTANT_ALPHA = 0x8004; |
| 1690 |
| 1691 @DomName('WebGLRenderingContext.ONE_MINUS_CONSTANT_COLOR') |
| 1692 @DocsEditable() |
| 1693 static const int ONE_MINUS_CONSTANT_COLOR = 0x8002; |
| 1694 |
| 1695 @DomName('WebGLRenderingContext.ONE_MINUS_DST_ALPHA') |
| 1696 @DocsEditable() |
| 1697 static const int ONE_MINUS_DST_ALPHA = 0x0305; |
| 1698 |
| 1699 @DomName('WebGLRenderingContext.ONE_MINUS_DST_COLOR') |
| 1700 @DocsEditable() |
| 1701 static const int ONE_MINUS_DST_COLOR = 0x0307; |
| 1702 |
| 1703 @DomName('WebGLRenderingContext.ONE_MINUS_SRC_ALPHA') |
| 1704 @DocsEditable() |
| 1705 static const int ONE_MINUS_SRC_ALPHA = 0x0303; |
| 1706 |
| 1707 @DomName('WebGLRenderingContext.ONE_MINUS_SRC_COLOR') |
| 1708 @DocsEditable() |
| 1709 static const int ONE_MINUS_SRC_COLOR = 0x0301; |
| 1710 |
| 1711 @DomName('WebGLRenderingContext.OUT_OF_MEMORY') |
| 1712 @DocsEditable() |
| 1713 static const int OUT_OF_MEMORY = 0x0505; |
| 1714 |
| 1715 @DomName('WebGLRenderingContext.PACK_ALIGNMENT') |
| 1716 @DocsEditable() |
| 1717 static const int PACK_ALIGNMENT = 0x0D05; |
| 1718 |
| 1719 @DomName('WebGLRenderingContext.POINTS') |
| 1720 @DocsEditable() |
| 1721 static const int POINTS = 0x0000; |
| 1722 |
| 1723 @DomName('WebGLRenderingContext.POLYGON_OFFSET_FACTOR') |
| 1724 @DocsEditable() |
| 1725 static const int POLYGON_OFFSET_FACTOR = 0x8038; |
| 1726 |
| 1727 @DomName('WebGLRenderingContext.POLYGON_OFFSET_FILL') |
| 1728 @DocsEditable() |
| 1729 static const int POLYGON_OFFSET_FILL = 0x8037; |
| 1730 |
| 1731 @DomName('WebGLRenderingContext.POLYGON_OFFSET_UNITS') |
| 1732 @DocsEditable() |
| 1733 static const int POLYGON_OFFSET_UNITS = 0x2A00; |
| 1734 |
| 1735 @DomName('WebGLRenderingContext.RED_BITS') |
| 1736 @DocsEditable() |
| 1737 static const int RED_BITS = 0x0D52; |
| 1738 |
| 1739 @DomName('WebGLRenderingContext.RENDERBUFFER') |
| 1740 @DocsEditable() |
| 1741 static const int RENDERBUFFER = 0x8D41; |
| 1742 |
| 1743 @DomName('WebGLRenderingContext.RENDERBUFFER_ALPHA_SIZE') |
| 1744 @DocsEditable() |
| 1745 static const int RENDERBUFFER_ALPHA_SIZE = 0x8D53; |
| 1746 |
| 1747 @DomName('WebGLRenderingContext.RENDERBUFFER_BINDING') |
| 1748 @DocsEditable() |
| 1749 static const int RENDERBUFFER_BINDING = 0x8CA7; |
| 1750 |
| 1751 @DomName('WebGLRenderingContext.RENDERBUFFER_BLUE_SIZE') |
| 1752 @DocsEditable() |
| 1753 static const int RENDERBUFFER_BLUE_SIZE = 0x8D52; |
| 1754 |
| 1755 @DomName('WebGLRenderingContext.RENDERBUFFER_DEPTH_SIZE') |
| 1756 @DocsEditable() |
| 1757 static const int RENDERBUFFER_DEPTH_SIZE = 0x8D54; |
| 1758 |
| 1759 @DomName('WebGLRenderingContext.RENDERBUFFER_GREEN_SIZE') |
| 1760 @DocsEditable() |
| 1761 static const int RENDERBUFFER_GREEN_SIZE = 0x8D51; |
| 1762 |
| 1763 @DomName('WebGLRenderingContext.RENDERBUFFER_HEIGHT') |
| 1764 @DocsEditable() |
| 1765 static const int RENDERBUFFER_HEIGHT = 0x8D43; |
| 1766 |
| 1767 @DomName('WebGLRenderingContext.RENDERBUFFER_INTERNAL_FORMAT') |
| 1768 @DocsEditable() |
| 1769 static const int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44; |
| 1770 |
| 1771 @DomName('WebGLRenderingContext.RENDERBUFFER_RED_SIZE') |
| 1772 @DocsEditable() |
| 1773 static const int RENDERBUFFER_RED_SIZE = 0x8D50; |
| 1774 |
| 1775 @DomName('WebGLRenderingContext.RENDERBUFFER_STENCIL_SIZE') |
| 1776 @DocsEditable() |
| 1777 static const int RENDERBUFFER_STENCIL_SIZE = 0x8D55; |
| 1778 |
| 1779 @DomName('WebGLRenderingContext.RENDERBUFFER_WIDTH') |
| 1780 @DocsEditable() |
| 1781 static const int RENDERBUFFER_WIDTH = 0x8D42; |
| 1782 |
| 1783 @DomName('WebGLRenderingContext.RENDERER') |
| 1784 @DocsEditable() |
| 1785 static const int RENDERER = 0x1F01; |
| 1786 |
| 1787 @DomName('WebGLRenderingContext.REPEAT') |
| 1788 @DocsEditable() |
| 1789 static const int REPEAT = 0x2901; |
| 1790 |
| 1791 @DomName('WebGLRenderingContext.REPLACE') |
| 1792 @DocsEditable() |
| 1793 static const int REPLACE = 0x1E01; |
| 1794 |
| 1795 @DomName('WebGLRenderingContext.RGB') |
| 1796 @DocsEditable() |
| 1797 static const int RGB = 0x1907; |
| 1798 |
| 1799 @DomName('WebGLRenderingContext.RGB565') |
| 1800 @DocsEditable() |
| 1801 static const int RGB565 = 0x8D62; |
| 1802 |
| 1803 @DomName('WebGLRenderingContext.RGB5_A1') |
| 1804 @DocsEditable() |
| 1805 static const int RGB5_A1 = 0x8057; |
| 1806 |
| 1807 @DomName('WebGLRenderingContext.RGBA') |
| 1808 @DocsEditable() |
| 1809 static const int RGBA = 0x1908; |
| 1810 |
| 1811 @DomName('WebGLRenderingContext.RGBA4') |
| 1812 @DocsEditable() |
| 1813 static const int RGBA4 = 0x8056; |
| 1814 |
| 1815 @DomName('WebGLRenderingContext.SAMPLER_2D') |
| 1816 @DocsEditable() |
| 1817 static const int SAMPLER_2D = 0x8B5E; |
| 1818 |
| 1819 @DomName('WebGLRenderingContext.SAMPLER_CUBE') |
| 1820 @DocsEditable() |
| 1821 static const int SAMPLER_CUBE = 0x8B60; |
| 1822 |
| 1823 @DomName('WebGLRenderingContext.SAMPLES') |
| 1824 @DocsEditable() |
| 1825 static const int SAMPLES = 0x80A9; |
| 1826 |
| 1827 @DomName('WebGLRenderingContext.SAMPLE_ALPHA_TO_COVERAGE') |
| 1828 @DocsEditable() |
| 1829 static const int SAMPLE_ALPHA_TO_COVERAGE = 0x809E; |
| 1830 |
| 1831 @DomName('WebGLRenderingContext.SAMPLE_BUFFERS') |
| 1832 @DocsEditable() |
| 1833 static const int SAMPLE_BUFFERS = 0x80A8; |
| 1834 |
| 1835 @DomName('WebGLRenderingContext.SAMPLE_COVERAGE') |
| 1836 @DocsEditable() |
| 1837 static const int SAMPLE_COVERAGE = 0x80A0; |
| 1838 |
| 1839 @DomName('WebGLRenderingContext.SAMPLE_COVERAGE_INVERT') |
| 1840 @DocsEditable() |
| 1841 static const int SAMPLE_COVERAGE_INVERT = 0x80AB; |
| 1842 |
| 1843 @DomName('WebGLRenderingContext.SAMPLE_COVERAGE_VALUE') |
| 1844 @DocsEditable() |
| 1845 static const int SAMPLE_COVERAGE_VALUE = 0x80AA; |
| 1846 |
| 1847 @DomName('WebGLRenderingContext.SCISSOR_BOX') |
| 1848 @DocsEditable() |
| 1849 static const int SCISSOR_BOX = 0x0C10; |
| 1850 |
| 1851 @DomName('WebGLRenderingContext.SCISSOR_TEST') |
| 1852 @DocsEditable() |
| 1853 static const int SCISSOR_TEST = 0x0C11; |
| 1854 |
| 1855 @DomName('WebGLRenderingContext.SHADER_TYPE') |
| 1856 @DocsEditable() |
| 1857 static const int SHADER_TYPE = 0x8B4F; |
| 1858 |
| 1859 @DomName('WebGLRenderingContext.SHADING_LANGUAGE_VERSION') |
| 1860 @DocsEditable() |
| 1861 static const int SHADING_LANGUAGE_VERSION = 0x8B8C; |
| 1862 |
| 1863 @DomName('WebGLRenderingContext.SHORT') |
| 1864 @DocsEditable() |
| 1865 static const int SHORT = 0x1402; |
| 1866 |
| 1867 @DomName('WebGLRenderingContext.SRC_ALPHA') |
| 1868 @DocsEditable() |
| 1869 static const int SRC_ALPHA = 0x0302; |
| 1870 |
| 1871 @DomName('WebGLRenderingContext.SRC_ALPHA_SATURATE') |
| 1872 @DocsEditable() |
| 1873 static const int SRC_ALPHA_SATURATE = 0x0308; |
| 1874 |
| 1875 @DomName('WebGLRenderingContext.SRC_COLOR') |
| 1876 @DocsEditable() |
| 1877 static const int SRC_COLOR = 0x0300; |
| 1878 |
| 1879 @DomName('WebGLRenderingContext.STATIC_DRAW') |
| 1880 @DocsEditable() |
| 1881 static const int STATIC_DRAW = 0x88E4; |
| 1882 |
| 1883 @DomName('WebGLRenderingContext.STENCIL_ATTACHMENT') |
| 1884 @DocsEditable() |
| 1885 static const int STENCIL_ATTACHMENT = 0x8D20; |
| 1886 |
| 1887 @DomName('WebGLRenderingContext.STENCIL_BACK_FAIL') |
| 1888 @DocsEditable() |
| 1889 static const int STENCIL_BACK_FAIL = 0x8801; |
| 1890 |
| 1891 @DomName('WebGLRenderingContext.STENCIL_BACK_FUNC') |
| 1892 @DocsEditable() |
| 1893 static const int STENCIL_BACK_FUNC = 0x8800; |
| 1894 |
| 1895 @DomName('WebGLRenderingContext.STENCIL_BACK_PASS_DEPTH_FAIL') |
| 1896 @DocsEditable() |
| 1897 static const int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802; |
| 1898 |
| 1899 @DomName('WebGLRenderingContext.STENCIL_BACK_PASS_DEPTH_PASS') |
| 1900 @DocsEditable() |
| 1901 static const int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803; |
| 1902 |
| 1903 @DomName('WebGLRenderingContext.STENCIL_BACK_REF') |
| 1904 @DocsEditable() |
| 1905 static const int STENCIL_BACK_REF = 0x8CA3; |
| 1906 |
| 1907 @DomName('WebGLRenderingContext.STENCIL_BACK_VALUE_MASK') |
| 1908 @DocsEditable() |
| 1909 static const int STENCIL_BACK_VALUE_MASK = 0x8CA4; |
| 1910 |
| 1911 @DomName('WebGLRenderingContext.STENCIL_BACK_WRITEMASK') |
| 1912 @DocsEditable() |
| 1913 static const int STENCIL_BACK_WRITEMASK = 0x8CA5; |
| 1914 |
| 1915 @DomName('WebGLRenderingContext.STENCIL_BITS') |
| 1916 @DocsEditable() |
| 1917 static const int STENCIL_BITS = 0x0D57; |
| 1918 |
| 1919 @DomName('WebGLRenderingContext.STENCIL_BUFFER_BIT') |
| 1920 @DocsEditable() |
| 1921 static const int STENCIL_BUFFER_BIT = 0x00000400; |
| 1922 |
| 1923 @DomName('WebGLRenderingContext.STENCIL_CLEAR_VALUE') |
| 1924 @DocsEditable() |
| 1925 static const int STENCIL_CLEAR_VALUE = 0x0B91; |
| 1926 |
| 1927 @DomName('WebGLRenderingContext.STENCIL_FAIL') |
| 1928 @DocsEditable() |
| 1929 static const int STENCIL_FAIL = 0x0B94; |
| 1930 |
| 1931 @DomName('WebGLRenderingContext.STENCIL_FUNC') |
| 1932 @DocsEditable() |
| 1933 static const int STENCIL_FUNC = 0x0B92; |
| 1934 |
| 1935 @DomName('WebGLRenderingContext.STENCIL_INDEX') |
| 1936 @DocsEditable() |
| 1937 static const int STENCIL_INDEX = 0x1901; |
| 1938 |
| 1939 @DomName('WebGLRenderingContext.STENCIL_INDEX8') |
| 1940 @DocsEditable() |
| 1941 static const int STENCIL_INDEX8 = 0x8D48; |
| 1942 |
| 1943 @DomName('WebGLRenderingContext.STENCIL_PASS_DEPTH_FAIL') |
| 1944 @DocsEditable() |
| 1945 static const int STENCIL_PASS_DEPTH_FAIL = 0x0B95; |
| 1946 |
| 1947 @DomName('WebGLRenderingContext.STENCIL_PASS_DEPTH_PASS') |
| 1948 @DocsEditable() |
| 1949 static const int STENCIL_PASS_DEPTH_PASS = 0x0B96; |
| 1950 |
| 1951 @DomName('WebGLRenderingContext.STENCIL_REF') |
| 1952 @DocsEditable() |
| 1953 static const int STENCIL_REF = 0x0B97; |
| 1954 |
| 1955 @DomName('WebGLRenderingContext.STENCIL_TEST') |
| 1956 @DocsEditable() |
| 1957 static const int STENCIL_TEST = 0x0B90; |
| 1958 |
| 1959 @DomName('WebGLRenderingContext.STENCIL_VALUE_MASK') |
| 1960 @DocsEditable() |
| 1961 static const int STENCIL_VALUE_MASK = 0x0B93; |
| 1962 |
| 1963 @DomName('WebGLRenderingContext.STENCIL_WRITEMASK') |
| 1964 @DocsEditable() |
| 1965 static const int STENCIL_WRITEMASK = 0x0B98; |
| 1966 |
| 1967 @DomName('WebGLRenderingContext.STREAM_DRAW') |
| 1968 @DocsEditable() |
| 1969 static const int STREAM_DRAW = 0x88E0; |
| 1970 |
| 1971 @DomName('WebGLRenderingContext.SUBPIXEL_BITS') |
| 1972 @DocsEditable() |
| 1973 static const int SUBPIXEL_BITS = 0x0D50; |
| 1974 |
| 1975 @DomName('WebGLRenderingContext.TEXTURE') |
| 1976 @DocsEditable() |
| 1977 static const int TEXTURE = 0x1702; |
| 1978 |
| 1979 @DomName('WebGLRenderingContext.TEXTURE0') |
| 1980 @DocsEditable() |
| 1981 static const int TEXTURE0 = 0x84C0; |
| 1982 |
| 1983 @DomName('WebGLRenderingContext.TEXTURE1') |
| 1984 @DocsEditable() |
| 1985 static const int TEXTURE1 = 0x84C1; |
| 1986 |
| 1987 @DomName('WebGLRenderingContext.TEXTURE10') |
| 1988 @DocsEditable() |
| 1989 static const int TEXTURE10 = 0x84CA; |
| 1990 |
| 1991 @DomName('WebGLRenderingContext.TEXTURE11') |
| 1992 @DocsEditable() |
| 1993 static const int TEXTURE11 = 0x84CB; |
| 1994 |
| 1995 @DomName('WebGLRenderingContext.TEXTURE12') |
| 1996 @DocsEditable() |
| 1997 static const int TEXTURE12 = 0x84CC; |
| 1998 |
| 1999 @DomName('WebGLRenderingContext.TEXTURE13') |
| 2000 @DocsEditable() |
| 2001 static const int TEXTURE13 = 0x84CD; |
| 2002 |
| 2003 @DomName('WebGLRenderingContext.TEXTURE14') |
| 2004 @DocsEditable() |
| 2005 static const int TEXTURE14 = 0x84CE; |
| 2006 |
| 2007 @DomName('WebGLRenderingContext.TEXTURE15') |
| 2008 @DocsEditable() |
| 2009 static const int TEXTURE15 = 0x84CF; |
| 2010 |
| 2011 @DomName('WebGLRenderingContext.TEXTURE16') |
| 2012 @DocsEditable() |
| 2013 static const int TEXTURE16 = 0x84D0; |
| 2014 |
| 2015 @DomName('WebGLRenderingContext.TEXTURE17') |
| 2016 @DocsEditable() |
| 2017 static const int TEXTURE17 = 0x84D1; |
| 2018 |
| 2019 @DomName('WebGLRenderingContext.TEXTURE18') |
| 2020 @DocsEditable() |
| 2021 static const int TEXTURE18 = 0x84D2; |
| 2022 |
| 2023 @DomName('WebGLRenderingContext.TEXTURE19') |
| 2024 @DocsEditable() |
| 2025 static const int TEXTURE19 = 0x84D3; |
| 2026 |
| 2027 @DomName('WebGLRenderingContext.TEXTURE2') |
| 2028 @DocsEditable() |
| 2029 static const int TEXTURE2 = 0x84C2; |
| 2030 |
| 2031 @DomName('WebGLRenderingContext.TEXTURE20') |
| 2032 @DocsEditable() |
| 2033 static const int TEXTURE20 = 0x84D4; |
| 2034 |
| 2035 @DomName('WebGLRenderingContext.TEXTURE21') |
| 2036 @DocsEditable() |
| 2037 static const int TEXTURE21 = 0x84D5; |
| 2038 |
| 2039 @DomName('WebGLRenderingContext.TEXTURE22') |
| 2040 @DocsEditable() |
| 2041 static const int TEXTURE22 = 0x84D6; |
| 2042 |
| 2043 @DomName('WebGLRenderingContext.TEXTURE23') |
| 2044 @DocsEditable() |
| 2045 static const int TEXTURE23 = 0x84D7; |
| 2046 |
| 2047 @DomName('WebGLRenderingContext.TEXTURE24') |
| 2048 @DocsEditable() |
| 2049 static const int TEXTURE24 = 0x84D8; |
| 2050 |
| 2051 @DomName('WebGLRenderingContext.TEXTURE25') |
| 2052 @DocsEditable() |
| 2053 static const int TEXTURE25 = 0x84D9; |
| 2054 |
| 2055 @DomName('WebGLRenderingContext.TEXTURE26') |
| 2056 @DocsEditable() |
| 2057 static const int TEXTURE26 = 0x84DA; |
| 2058 |
| 2059 @DomName('WebGLRenderingContext.TEXTURE27') |
| 2060 @DocsEditable() |
| 2061 static const int TEXTURE27 = 0x84DB; |
| 2062 |
| 2063 @DomName('WebGLRenderingContext.TEXTURE28') |
| 2064 @DocsEditable() |
| 2065 static const int TEXTURE28 = 0x84DC; |
| 2066 |
| 2067 @DomName('WebGLRenderingContext.TEXTURE29') |
| 2068 @DocsEditable() |
| 2069 static const int TEXTURE29 = 0x84DD; |
| 2070 |
| 2071 @DomName('WebGLRenderingContext.TEXTURE3') |
| 2072 @DocsEditable() |
| 2073 static const int TEXTURE3 = 0x84C3; |
| 2074 |
| 2075 @DomName('WebGLRenderingContext.TEXTURE30') |
| 2076 @DocsEditable() |
| 2077 static const int TEXTURE30 = 0x84DE; |
| 2078 |
| 2079 @DomName('WebGLRenderingContext.TEXTURE31') |
| 2080 @DocsEditable() |
| 2081 static const int TEXTURE31 = 0x84DF; |
| 2082 |
| 2083 @DomName('WebGLRenderingContext.TEXTURE4') |
| 2084 @DocsEditable() |
| 2085 static const int TEXTURE4 = 0x84C4; |
| 2086 |
| 2087 @DomName('WebGLRenderingContext.TEXTURE5') |
| 2088 @DocsEditable() |
| 2089 static const int TEXTURE5 = 0x84C5; |
| 2090 |
| 2091 @DomName('WebGLRenderingContext.TEXTURE6') |
| 2092 @DocsEditable() |
| 2093 static const int TEXTURE6 = 0x84C6; |
| 2094 |
| 2095 @DomName('WebGLRenderingContext.TEXTURE7') |
| 2096 @DocsEditable() |
| 2097 static const int TEXTURE7 = 0x84C7; |
| 2098 |
| 2099 @DomName('WebGLRenderingContext.TEXTURE8') |
| 2100 @DocsEditable() |
| 2101 static const int TEXTURE8 = 0x84C8; |
| 2102 |
| 2103 @DomName('WebGLRenderingContext.TEXTURE9') |
| 2104 @DocsEditable() |
| 2105 static const int TEXTURE9 = 0x84C9; |
| 2106 |
| 2107 @DomName('WebGLRenderingContext.TEXTURE_2D') |
| 2108 @DocsEditable() |
| 2109 static const int TEXTURE_2D = 0x0DE1; |
| 2110 |
| 2111 @DomName('WebGLRenderingContext.TEXTURE_BINDING_2D') |
| 2112 @DocsEditable() |
| 2113 static const int TEXTURE_BINDING_2D = 0x8069; |
| 2114 |
| 2115 @DomName('WebGLRenderingContext.TEXTURE_BINDING_CUBE_MAP') |
| 2116 @DocsEditable() |
| 2117 static const int TEXTURE_BINDING_CUBE_MAP = 0x8514; |
| 2118 |
| 2119 @DomName('WebGLRenderingContext.TEXTURE_CUBE_MAP') |
| 2120 @DocsEditable() |
| 2121 static const int TEXTURE_CUBE_MAP = 0x8513; |
| 2122 |
| 2123 @DomName('WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X') |
| 2124 @DocsEditable() |
| 2125 static const int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516; |
| 2126 |
| 2127 @DomName('WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y') |
| 2128 @DocsEditable() |
| 2129 static const int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518; |
| 2130 |
| 2131 @DomName('WebGLRenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z') |
| 2132 @DocsEditable() |
| 2133 static const int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A; |
| 2134 |
| 2135 @DomName('WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_X') |
| 2136 @DocsEditable() |
| 2137 static const int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515; |
| 2138 |
| 2139 @DomName('WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y') |
| 2140 @DocsEditable() |
| 2141 static const int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517; |
| 2142 |
| 2143 @DomName('WebGLRenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z') |
| 2144 @DocsEditable() |
| 2145 static const int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519; |
| 2146 |
| 2147 @DomName('WebGLRenderingContext.TEXTURE_MAG_FILTER') |
| 2148 @DocsEditable() |
| 2149 static const int TEXTURE_MAG_FILTER = 0x2800; |
| 2150 |
| 2151 @DomName('WebGLRenderingContext.TEXTURE_MIN_FILTER') |
| 2152 @DocsEditable() |
| 2153 static const int TEXTURE_MIN_FILTER = 0x2801; |
| 2154 |
| 2155 @DomName('WebGLRenderingContext.TEXTURE_WRAP_S') |
| 2156 @DocsEditable() |
| 2157 static const int TEXTURE_WRAP_S = 0x2802; |
| 2158 |
| 2159 @DomName('WebGLRenderingContext.TEXTURE_WRAP_T') |
| 2160 @DocsEditable() |
| 2161 static const int TEXTURE_WRAP_T = 0x2803; |
| 2162 |
| 2163 @DomName('WebGLRenderingContext.TRIANGLES') |
| 2164 @DocsEditable() |
| 2165 static const int TRIANGLES = 0x0004; |
| 2166 |
| 2167 @DomName('WebGLRenderingContext.TRIANGLE_FAN') |
| 2168 @DocsEditable() |
| 2169 static const int TRIANGLE_FAN = 0x0006; |
| 2170 |
| 2171 @DomName('WebGLRenderingContext.TRIANGLE_STRIP') |
| 2172 @DocsEditable() |
| 2173 static const int TRIANGLE_STRIP = 0x0005; |
| 2174 |
| 2175 @DomName('WebGLRenderingContext.UNPACK_ALIGNMENT') |
| 2176 @DocsEditable() |
| 2177 static const int UNPACK_ALIGNMENT = 0x0CF5; |
| 2178 |
| 2179 @DomName('WebGLRenderingContext.UNPACK_COLORSPACE_CONVERSION_WEBGL') |
| 2180 @DocsEditable() |
| 2181 static const int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243; |
| 2182 |
| 2183 @DomName('WebGLRenderingContext.UNPACK_FLIP_Y_WEBGL') |
| 2184 @DocsEditable() |
| 2185 static const int UNPACK_FLIP_Y_WEBGL = 0x9240; |
| 2186 |
| 2187 @DomName('WebGLRenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL') |
| 2188 @DocsEditable() |
| 2189 static const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241; |
| 2190 |
| 2191 @DomName('WebGLRenderingContext.UNSIGNED_BYTE') |
| 2192 @DocsEditable() |
| 2193 static const int UNSIGNED_BYTE = 0x1401; |
| 2194 |
| 2195 @DomName('WebGLRenderingContext.UNSIGNED_INT') |
| 2196 @DocsEditable() |
| 2197 static const int UNSIGNED_INT = 0x1405; |
| 2198 |
| 2199 @DomName('WebGLRenderingContext.UNSIGNED_SHORT') |
| 2200 @DocsEditable() |
| 2201 static const int UNSIGNED_SHORT = 0x1403; |
| 2202 |
| 2203 @DomName('WebGLRenderingContext.UNSIGNED_SHORT_4_4_4_4') |
| 2204 @DocsEditable() |
| 2205 static const int UNSIGNED_SHORT_4_4_4_4 = 0x8033; |
| 2206 |
| 2207 @DomName('WebGLRenderingContext.UNSIGNED_SHORT_5_5_5_1') |
| 2208 @DocsEditable() |
| 2209 static const int UNSIGNED_SHORT_5_5_5_1 = 0x8034; |
| 2210 |
| 2211 @DomName('WebGLRenderingContext.UNSIGNED_SHORT_5_6_5') |
| 2212 @DocsEditable() |
| 2213 static const int UNSIGNED_SHORT_5_6_5 = 0x8363; |
| 2214 |
| 2215 @DomName('WebGLRenderingContext.VALIDATE_STATUS') |
| 2216 @DocsEditable() |
| 2217 static const int VALIDATE_STATUS = 0x8B83; |
| 2218 |
| 2219 @DomName('WebGLRenderingContext.VENDOR') |
| 2220 @DocsEditable() |
| 2221 static const int VENDOR = 0x1F00; |
| 2222 |
| 2223 @DomName('WebGLRenderingContext.VERSION') |
| 2224 @DocsEditable() |
| 2225 static const int VERSION = 0x1F02; |
| 2226 |
| 2227 @DomName('WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING') |
| 2228 @DocsEditable() |
| 2229 static const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F; |
| 2230 |
| 2231 @DomName('WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_ENABLED') |
| 2232 @DocsEditable() |
| 2233 static const int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622; |
| 2234 |
| 2235 @DomName('WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_NORMALIZED') |
| 2236 @DocsEditable() |
| 2237 static const int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A; |
| 2238 |
| 2239 @DomName('WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_POINTER') |
| 2240 @DocsEditable() |
| 2241 static const int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645; |
| 2242 |
| 2243 @DomName('WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_SIZE') |
| 2244 @DocsEditable() |
| 2245 static const int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623; |
| 2246 |
| 2247 @DomName('WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_STRIDE') |
| 2248 @DocsEditable() |
| 2249 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624; |
| 2250 |
| 2251 @DomName('WebGLRenderingContext.VERTEX_ATTRIB_ARRAY_TYPE') |
| 2252 @DocsEditable() |
| 2253 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625; |
| 2254 |
| 2255 @DomName('WebGLRenderingContext.VERTEX_SHADER') |
| 2256 @DocsEditable() |
| 2257 static const int VERTEX_SHADER = 0x8B31; |
| 2258 |
| 2259 @DomName('WebGLRenderingContext.VIEWPORT') |
| 2260 @DocsEditable() |
| 2261 static const int VIEWPORT = 0x0BA2; |
| 2262 |
| 2263 @DomName('WebGLRenderingContext.ZERO') |
| 2264 @DocsEditable() |
| 2265 static const int ZERO = 0; |
| 2266 |
| 2267 // From WebGLRenderingContextBase |
| 2268 |
| 2269 @DomName('WebGLRenderingContext.canvas') |
| 2270 @DocsEditable() |
| 2271 @Experimental() // untriaged |
| 2272 final CanvasElement canvas; |
| 2273 |
| 2274 @DomName('WebGLRenderingContext.drawingBufferHeight') |
| 2275 @DocsEditable() |
| 2276 final int drawingBufferHeight; |
| 2277 |
| 2278 @DomName('WebGLRenderingContext.drawingBufferWidth') |
| 2279 @DocsEditable() |
| 2280 final int drawingBufferWidth; |
| 2281 |
| 2282 @DomName('WebGLRenderingContext.activeTexture') |
| 2283 @DocsEditable() |
| 2284 void activeTexture(int texture) native; |
| 2285 |
| 2286 @DomName('WebGLRenderingContext.attachShader') |
| 2287 @DocsEditable() |
| 2288 void attachShader(Program program, Shader shader) native; |
| 2289 |
| 2290 @DomName('WebGLRenderingContext.bindAttribLocation') |
| 2291 @DocsEditable() |
| 2292 void bindAttribLocation(Program program, int index, String name) native; |
| 2293 |
| 2294 @DomName('WebGLRenderingContext.bindBuffer') |
| 2295 @DocsEditable() |
| 2296 void bindBuffer(int target, Buffer buffer) native; |
| 2297 |
| 2298 @DomName('WebGLRenderingContext.bindFramebuffer') |
| 2299 @DocsEditable() |
| 2300 void bindFramebuffer(int target, Framebuffer framebuffer) native; |
| 2301 |
| 2302 @DomName('WebGLRenderingContext.bindRenderbuffer') |
| 2303 @DocsEditable() |
| 2304 void bindRenderbuffer(int target, Renderbuffer renderbuffer) native; |
| 2305 |
| 2306 @DomName('WebGLRenderingContext.bindTexture') |
| 2307 @DocsEditable() |
| 2308 void bindTexture(int target, Texture texture) native; |
| 2309 |
| 2310 @DomName('WebGLRenderingContext.blendColor') |
| 2311 @DocsEditable() |
| 2312 void blendColor(num red, num green, num blue, num alpha) native; |
| 2313 |
| 2314 @DomName('WebGLRenderingContext.blendEquation') |
| 2315 @DocsEditable() |
| 2316 void blendEquation(int mode) native; |
| 2317 |
| 2318 @DomName('WebGLRenderingContext.blendEquationSeparate') |
| 2319 @DocsEditable() |
| 2320 void blendEquationSeparate(int modeRGB, int modeAlpha) native; |
| 2321 |
| 2322 @DomName('WebGLRenderingContext.blendFunc') |
| 2323 @DocsEditable() |
| 2324 void blendFunc(int sfactor, int dfactor) native; |
| 2325 |
| 2326 @DomName('WebGLRenderingContext.blendFuncSeparate') |
| 2327 @DocsEditable() |
| 2328 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat
ive; |
| 2329 |
| 2330 @JSName('bufferData') |
| 2331 /** |
| 2332 * Buffers the specified data. |
| 2333 * |
| 2334 * The [bufferData] method is provided for WebGL API compatibility reasons, bu
t |
| 2335 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] |
| 2336 * depending on your purposes. |
| 2337 */ |
| 2338 @DomName('WebGLRenderingContext.bufferData') |
| 2339 @DocsEditable() |
| 2340 void bufferByteData(int target, ByteBuffer data, int usage) native; |
| 2341 |
| 2342 /** |
| 2343 * Buffers the specified data. |
| 2344 * |
| 2345 * The [bufferData] method is provided for WebGL API compatibility reasons, bu
t |
| 2346 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] |
| 2347 * depending on your purposes. |
| 2348 */ |
| 2349 @DomName('WebGLRenderingContext.bufferData') |
| 2350 @DocsEditable() |
| 2351 void bufferData(int target, data_OR_size, int usage) native; |
| 2352 |
| 2353 @JSName('bufferData') |
| 2354 /** |
| 2355 * Buffers the specified data. |
| 2356 * |
| 2357 * The [bufferData] method is provided for WebGL API compatibility reasons, bu
t |
| 2358 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] |
| 2359 * depending on your purposes. |
| 2360 */ |
| 2361 @DomName('WebGLRenderingContext.bufferData') |
| 2362 @DocsEditable() |
| 2363 void bufferDataTyped(int target, TypedData data, int usage) native; |
| 2364 |
| 2365 @JSName('bufferSubData') |
| 2366 /** |
| 2367 * Buffers the specified subset of data. |
| 2368 * |
| 2369 * The [bufferSubData] method is provided for WebGL API compatibility reasons,
but |
| 2370 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt
eData] |
| 2371 * depending on your purposes. |
| 2372 */ |
| 2373 @DomName('WebGLRenderingContext.bufferSubData') |
| 2374 @DocsEditable() |
| 2375 void bufferSubByteData(int target, int offset, ByteBuffer data) native; |
| 2376 |
| 2377 /** |
| 2378 * Buffers the specified subset of data. |
| 2379 * |
| 2380 * The [bufferSubData] method is provided for WebGL API compatibility reasons,
but |
| 2381 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt
eData] |
| 2382 * depending on your purposes. |
| 2383 */ |
| 2384 @DomName('WebGLRenderingContext.bufferSubData') |
| 2385 @DocsEditable() |
| 2386 void bufferSubData(int target, int offset, data) native; |
| 2387 |
| 2388 @JSName('bufferSubData') |
| 2389 /** |
| 2390 * Buffers the specified subset of data. |
| 2391 * |
| 2392 * The [bufferSubData] method is provided for WebGL API compatibility reasons,
but |
| 2393 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt
eData] |
| 2394 * depending on your purposes. |
| 2395 */ |
| 2396 @DomName('WebGLRenderingContext.bufferSubData') |
| 2397 @DocsEditable() |
| 2398 void bufferSubDataTyped(int target, int offset, TypedData data) native; |
| 2399 |
| 2400 @DomName('WebGLRenderingContext.checkFramebufferStatus') |
| 2401 @DocsEditable() |
| 2402 int checkFramebufferStatus(int target) native; |
| 2403 |
| 2404 @DomName('WebGLRenderingContext.clear') |
| 2405 @DocsEditable() |
| 2406 void clear(int mask) native; |
| 2407 |
| 2408 @DomName('WebGLRenderingContext.clearColor') |
| 2409 @DocsEditable() |
| 2410 void clearColor(num red, num green, num blue, num alpha) native; |
| 2411 |
| 2412 @DomName('WebGLRenderingContext.clearDepth') |
| 2413 @DocsEditable() |
| 2414 void clearDepth(num depth) native; |
| 2415 |
| 2416 @DomName('WebGLRenderingContext.clearStencil') |
| 2417 @DocsEditable() |
| 2418 void clearStencil(int s) native; |
| 2419 |
| 2420 @DomName('WebGLRenderingContext.colorMask') |
| 2421 @DocsEditable() |
| 2422 void colorMask(bool red, bool green, bool blue, bool alpha) native; |
| 2423 |
| 2424 @DomName('WebGLRenderingContext.compileShader') |
| 2425 @DocsEditable() |
| 2426 void compileShader(Shader shader) native; |
| 2427 |
| 2428 @DomName('WebGLRenderingContext.compressedTexImage2D') |
| 2429 @DocsEditable() |
| 2430 void compressedTexImage2D(int target, int level, int internalformat, int width
, int height, int border, TypedData data) native; |
| 2431 |
| 2432 @DomName('WebGLRenderingContext.compressedTexSubImage2D') |
| 2433 @DocsEditable() |
| 2434 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
int width, int height, int format, TypedData data) native; |
| 2435 |
| 2436 @DomName('WebGLRenderingContext.copyTexImage2D') |
| 2437 @DocsEditable() |
| 2438 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i
nt width, int height, int border) native; |
| 2439 |
| 2440 @DomName('WebGLRenderingContext.copyTexSubImage2D') |
| 2441 @DocsEditable() |
| 2442 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
int y, int width, int height) native; |
| 2443 |
| 2444 @DomName('WebGLRenderingContext.createBuffer') |
| 2445 @DocsEditable() |
| 2446 Buffer createBuffer() native; |
| 2447 |
| 2448 @DomName('WebGLRenderingContext.createFramebuffer') |
| 2449 @DocsEditable() |
| 2450 Framebuffer createFramebuffer() native; |
| 2451 |
| 2452 @DomName('WebGLRenderingContext.createProgram') |
| 2453 @DocsEditable() |
| 2454 Program createProgram() native; |
| 2455 |
| 2456 @DomName('WebGLRenderingContext.createRenderbuffer') |
| 2457 @DocsEditable() |
| 2458 Renderbuffer createRenderbuffer() native; |
| 2459 |
| 2460 @DomName('WebGLRenderingContext.createShader') |
| 2461 @DocsEditable() |
| 2462 Shader createShader(int type) native; |
| 2463 |
| 2464 @DomName('WebGLRenderingContext.createTexture') |
| 2465 @DocsEditable() |
| 2466 Texture createTexture() native; |
| 2467 |
| 2468 @DomName('WebGLRenderingContext.cullFace') |
| 2469 @DocsEditable() |
| 2470 void cullFace(int mode) native; |
| 2471 |
| 2472 @DomName('WebGLRenderingContext.deleteBuffer') |
| 2473 @DocsEditable() |
| 2474 void deleteBuffer(Buffer buffer) native; |
| 2475 |
| 2476 @DomName('WebGLRenderingContext.deleteFramebuffer') |
| 2477 @DocsEditable() |
| 2478 void deleteFramebuffer(Framebuffer framebuffer) native; |
| 2479 |
| 2480 @DomName('WebGLRenderingContext.deleteProgram') |
| 2481 @DocsEditable() |
| 2482 void deleteProgram(Program program) native; |
| 2483 |
| 2484 @DomName('WebGLRenderingContext.deleteRenderbuffer') |
| 2485 @DocsEditable() |
| 2486 void deleteRenderbuffer(Renderbuffer renderbuffer) native; |
| 2487 |
| 2488 @DomName('WebGLRenderingContext.deleteShader') |
| 2489 @DocsEditable() |
| 2490 void deleteShader(Shader shader) native; |
| 2491 |
| 2492 @DomName('WebGLRenderingContext.deleteTexture') |
| 2493 @DocsEditable() |
| 2494 void deleteTexture(Texture texture) native; |
| 2495 |
| 2496 @DomName('WebGLRenderingContext.depthFunc') |
| 2497 @DocsEditable() |
| 2498 void depthFunc(int func) native; |
| 2499 |
| 2500 @DomName('WebGLRenderingContext.depthMask') |
| 2501 @DocsEditable() |
| 2502 void depthMask(bool flag) native; |
| 2503 |
| 2504 @DomName('WebGLRenderingContext.depthRange') |
| 2505 @DocsEditable() |
| 2506 void depthRange(num zNear, num zFar) native; |
| 2507 |
| 2508 @DomName('WebGLRenderingContext.detachShader') |
| 2509 @DocsEditable() |
| 2510 void detachShader(Program program, Shader shader) native; |
| 2511 |
| 2512 @DomName('WebGLRenderingContext.disable') |
| 2513 @DocsEditable() |
| 2514 void disable(int cap) native; |
| 2515 |
| 2516 @DomName('WebGLRenderingContext.disableVertexAttribArray') |
| 2517 @DocsEditable() |
| 2518 void disableVertexAttribArray(int index) native; |
| 2519 |
| 2520 @DomName('WebGLRenderingContext.drawArrays') |
| 2521 @DocsEditable() |
| 2522 void drawArrays(int mode, int first, int count) native; |
| 2523 |
| 2524 @DomName('WebGLRenderingContext.drawElements') |
| 2525 @DocsEditable() |
| 2526 void drawElements(int mode, int count, int type, int offset) native; |
| 2527 |
| 2528 @DomName('WebGLRenderingContext.enable') |
| 2529 @DocsEditable() |
| 2530 void enable(int cap) native; |
| 2531 |
| 2532 @DomName('WebGLRenderingContext.enableVertexAttribArray') |
| 2533 @DocsEditable() |
| 2534 void enableVertexAttribArray(int index) native; |
| 2535 |
| 2536 @DomName('WebGLRenderingContext.finish') |
| 2537 @DocsEditable() |
| 2538 void finish() native; |
| 2539 |
| 2540 @DomName('WebGLRenderingContext.flush') |
| 2541 @DocsEditable() |
| 2542 void flush() native; |
| 2543 |
| 2544 @DomName('WebGLRenderingContext.framebufferRenderbuffer') |
| 2545 @DocsEditable() |
| 2546 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge
t, Renderbuffer renderbuffer) native; |
| 2547 |
| 2548 @DomName('WebGLRenderingContext.framebufferTexture2D') |
| 2549 @DocsEditable() |
| 2550 void framebufferTexture2D(int target, int attachment, int textarget, Texture t
exture, int level) native; |
| 2551 |
| 2552 @DomName('WebGLRenderingContext.frontFace') |
| 2553 @DocsEditable() |
| 2554 void frontFace(int mode) native; |
| 2555 |
| 2556 @DomName('WebGLRenderingContext.generateMipmap') |
| 2557 @DocsEditable() |
| 2558 void generateMipmap(int target) native; |
| 2559 |
| 2560 @DomName('WebGLRenderingContext.getActiveAttrib') |
| 2561 @DocsEditable() |
| 2562 ActiveInfo getActiveAttrib(Program program, int index) native; |
| 2563 |
| 2564 @DomName('WebGLRenderingContext.getActiveUniform') |
| 2565 @DocsEditable() |
| 2566 ActiveInfo getActiveUniform(Program program, int index) native; |
| 2567 |
| 2568 @DomName('WebGLRenderingContext.getAttachedShaders') |
| 2569 @DocsEditable() |
| 2570 List<Shader> getAttachedShaders(Program program) native; |
| 2571 |
| 2572 @DomName('WebGLRenderingContext.getAttribLocation') |
| 2573 @DocsEditable() |
| 2574 int getAttribLocation(Program program, String name) native; |
| 2575 |
| 2576 @DomName('WebGLRenderingContext.getBufferParameter') |
| 2577 @DocsEditable() |
| 2578 @Creates('int|Null') |
| 2579 @Returns('int|Null') |
| 2580 Object getBufferParameter(int target, int pname) native; |
| 2581 |
| 2582 @DomName('WebGLRenderingContext.getContextAttributes') |
| 2583 @DocsEditable() |
| 2584 @Creates('ContextAttributes|=Object') |
| 2585 ContextAttributes getContextAttributes() { |
| 2586 return convertNativeToDart_ContextAttributes(_getContextAttributes_1()); |
| 2587 } |
| 2588 @JSName('getContextAttributes') |
| 2589 @DomName('WebGLRenderingContext.getContextAttributes') |
| 2590 @DocsEditable() |
| 2591 @Creates('ContextAttributes|=Object') |
| 2592 _getContextAttributes_1() native; |
| 2593 |
| 2594 @DomName('WebGLRenderingContext.getError') |
| 2595 @DocsEditable() |
| 2596 int getError() native; |
| 2597 |
| 2598 @DomName('WebGLRenderingContext.getExtension') |
| 2599 @DocsEditable() |
| 2600 Object getExtension(String name) native; |
| 2601 |
| 2602 @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter') |
| 2603 @DocsEditable() |
| 2604 @Creates('int|Renderbuffer|Texture|Null') |
| 2605 @Returns('int|Renderbuffer|Texture|Null') |
| 2606 Object getFramebufferAttachmentParameter(int target, int attachment, int pname
) native; |
| 2607 |
| 2608 @DomName('WebGLRenderingContext.getParameter') |
| 2609 @DocsEditable() |
| 2610 @Creates('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32
List|NativeUint32List|Framebuffer|Renderbuffer|Texture') |
| 2611 @Returns('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32
List|NativeUint32List|Framebuffer|Renderbuffer|Texture') |
| 2612 Object getParameter(int pname) native; |
| 2613 |
| 2614 @DomName('WebGLRenderingContext.getProgramInfoLog') |
| 2615 @DocsEditable() |
| 2616 String getProgramInfoLog(Program program) native; |
| 2617 |
| 2618 @DomName('WebGLRenderingContext.getProgramParameter') |
| 2619 @DocsEditable() |
| 2620 @Creates('int|bool|Null') |
| 2621 @Returns('int|bool|Null') |
| 2622 Object getProgramParameter(Program program, int pname) native; |
| 2623 |
| 2624 @DomName('WebGLRenderingContext.getRenderbufferParameter') |
| 2625 @DocsEditable() |
| 2626 @Creates('int|Null') |
| 2627 @Returns('int|Null') |
| 2628 Object getRenderbufferParameter(int target, int pname) native; |
| 2629 |
| 2630 @DomName('WebGLRenderingContext.getShaderInfoLog') |
| 2631 @DocsEditable() |
| 2632 String getShaderInfoLog(Shader shader) native; |
| 2633 |
| 2634 @DomName('WebGLRenderingContext.getShaderParameter') |
| 2635 @DocsEditable() |
| 2636 @Creates('int|bool|Null') |
| 2637 @Returns('int|bool|Null') |
| 2638 Object getShaderParameter(Shader shader, int pname) native; |
| 2639 |
| 2640 @DomName('WebGLRenderingContext.getShaderPrecisionFormat') |
| 2641 @DocsEditable() |
| 2642 ShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisionty
pe) native; |
| 2643 |
| 2644 @DomName('WebGLRenderingContext.getShaderSource') |
| 2645 @DocsEditable() |
| 2646 String getShaderSource(Shader shader) native; |
| 2647 |
| 2648 @DomName('WebGLRenderingContext.getSupportedExtensions') |
| 2649 @DocsEditable() |
| 2650 List<String> getSupportedExtensions() native; |
| 2651 |
| 2652 @DomName('WebGLRenderingContext.getTexParameter') |
| 2653 @DocsEditable() |
| 2654 @Creates('int|Null') |
| 2655 @Returns('int|Null') |
| 2656 Object getTexParameter(int target, int pname) native; |
| 2657 |
| 2658 @DomName('WebGLRenderingContext.getUniform') |
| 2659 @DocsEditable() |
| 2660 @Creates('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32
List|NativeUint32List') |
| 2661 @Returns('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32
List|NativeUint32List') |
| 2662 Object getUniform(Program program, UniformLocation location) native; |
| 2663 |
| 2664 @DomName('WebGLRenderingContext.getUniformLocation') |
| 2665 @DocsEditable() |
| 2666 UniformLocation getUniformLocation(Program program, String name) native; |
| 2667 |
| 2668 @DomName('WebGLRenderingContext.getVertexAttrib') |
| 2669 @DocsEditable() |
| 2670 @Creates('Null|num|bool|NativeFloat32List|Buffer') |
| 2671 @Returns('Null|num|bool|NativeFloat32List|Buffer') |
| 2672 Object getVertexAttrib(int index, int pname) native; |
| 2673 |
| 2674 @DomName('WebGLRenderingContext.getVertexAttribOffset') |
| 2675 @DocsEditable() |
| 2676 int getVertexAttribOffset(int index, int pname) native; |
| 2677 |
| 2678 @DomName('WebGLRenderingContext.hint') |
| 2679 @DocsEditable() |
| 2680 void hint(int target, int mode) native; |
| 2681 |
| 2682 @DomName('WebGLRenderingContext.isBuffer') |
| 2683 @DocsEditable() |
| 2684 bool isBuffer(Buffer buffer) native; |
| 2685 |
| 2686 @DomName('WebGLRenderingContext.isContextLost') |
| 2687 @DocsEditable() |
| 2688 bool isContextLost() native; |
| 2689 |
| 2690 @DomName('WebGLRenderingContext.isEnabled') |
| 2691 @DocsEditable() |
| 2692 bool isEnabled(int cap) native; |
| 2693 |
| 2694 @DomName('WebGLRenderingContext.isFramebuffer') |
| 2695 @DocsEditable() |
| 2696 bool isFramebuffer(Framebuffer framebuffer) native; |
| 2697 |
| 2698 @DomName('WebGLRenderingContext.isProgram') |
| 2699 @DocsEditable() |
| 2700 bool isProgram(Program program) native; |
| 2701 |
| 2702 @DomName('WebGLRenderingContext.isRenderbuffer') |
| 2703 @DocsEditable() |
| 2704 bool isRenderbuffer(Renderbuffer renderbuffer) native; |
| 2705 |
| 2706 @DomName('WebGLRenderingContext.isShader') |
| 2707 @DocsEditable() |
| 2708 bool isShader(Shader shader) native; |
| 2709 |
| 2710 @DomName('WebGLRenderingContext.isTexture') |
| 2711 @DocsEditable() |
| 2712 bool isTexture(Texture texture) native; |
| 2713 |
| 2714 @DomName('WebGLRenderingContext.lineWidth') |
| 2715 @DocsEditable() |
| 2716 void lineWidth(num width) native; |
| 2717 |
| 2718 @DomName('WebGLRenderingContext.linkProgram') |
| 2719 @DocsEditable() |
| 2720 void linkProgram(Program program) native; |
| 2721 |
| 2722 @DomName('WebGLRenderingContext.pixelStorei') |
| 2723 @DocsEditable() |
| 2724 void pixelStorei(int pname, int param) native; |
| 2725 |
| 2726 @DomName('WebGLRenderingContext.polygonOffset') |
| 2727 @DocsEditable() |
| 2728 void polygonOffset(num factor, num units) native; |
| 2729 |
| 2730 @DomName('WebGLRenderingContext.readPixels') |
| 2731 @DocsEditable() |
| 2732 void readPixels(int x, int y, int width, int height, int format, int type, Typ
edData pixels) native; |
| 2733 |
| 2734 @DomName('WebGLRenderingContext.renderbufferStorage') |
| 2735 @DocsEditable() |
| 2736 void renderbufferStorage(int target, int internalformat, int width, int height
) native; |
| 2737 |
| 2738 @DomName('WebGLRenderingContext.sampleCoverage') |
| 2739 @DocsEditable() |
| 2740 void sampleCoverage(num value, bool invert) native; |
| 2741 |
| 2742 @DomName('WebGLRenderingContext.scissor') |
| 2743 @DocsEditable() |
| 2744 void scissor(int x, int y, int width, int height) native; |
| 2745 |
| 2746 @DomName('WebGLRenderingContext.shaderSource') |
| 2747 @DocsEditable() |
| 2748 void shaderSource(Shader shader, String string) native; |
| 2749 |
| 2750 @DomName('WebGLRenderingContext.stencilFunc') |
| 2751 @DocsEditable() |
| 2752 void stencilFunc(int func, int ref, int mask) native; |
| 2753 |
| 2754 @DomName('WebGLRenderingContext.stencilFuncSeparate') |
| 2755 @DocsEditable() |
| 2756 void stencilFuncSeparate(int face, int func, int ref, int mask) native; |
| 2757 |
| 2758 @DomName('WebGLRenderingContext.stencilMask') |
| 2759 @DocsEditable() |
| 2760 void stencilMask(int mask) native; |
| 2761 |
| 2762 @DomName('WebGLRenderingContext.stencilMaskSeparate') |
| 2763 @DocsEditable() |
| 2764 void stencilMaskSeparate(int face, int mask) native; |
| 2765 |
| 2766 @DomName('WebGLRenderingContext.stencilOp') |
| 2767 @DocsEditable() |
| 2768 void stencilOp(int fail, int zfail, int zpass) native; |
| 2769 |
| 2770 @DomName('WebGLRenderingContext.stencilOpSeparate') |
| 2771 @DocsEditable() |
| 2772 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; |
| 2773 |
| 2774 /** |
| 2775 * Updates the currently bound texture to [data]. |
| 2776 * |
| 2777 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2778 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2779 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2780 * [texImage2DCanvas], [texImage2DVideo]). |
| 2781 */ |
| 2782 @DomName('WebGLRenderingContext.texImage2D') |
| 2783 @DocsEditable() |
| 2784 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]) { |
| 2785 if (pixels != null && type != null && format != null && (border_OR_canvas_OR
_image_OR_pixels_OR_video is int)) { |
| 2786 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); |
| 2787 return; |
| 2788 } |
| 2789 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) { |
| 2790 var pixels_1 = convertDartToNative_ImageData(border_OR_canvas_OR_image_OR_
pixels_OR_video); |
| 2791 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty
pe, pixels_1); |
| 2792 return; |
| 2793 } |
| 2794 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement) && format
== null && type == null && pixels == null) { |
| 2795 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
| 2796 return; |
| 2797 } |
| 2798 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement) && forma
t == null && type == null && pixels == null) { |
| 2799 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
| 2800 return; |
| 2801 } |
| 2802 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement) && format
== null && type == null && pixels == null) { |
| 2803 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty
pe, border_OR_canvas_OR_image_OR_pixels_OR_video); |
| 2804 return; |
| 2805 } |
| 2806 throw new ArgumentError("Incorrect number or type of arguments"); |
| 2807 } |
| 2808 @JSName('texImage2D') |
| 2809 /** |
| 2810 * Updates the currently bound texture to [data]. |
| 2811 * |
| 2812 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2813 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2814 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2815 * [texImage2DCanvas], [texImage2DVideo]). |
| 2816 */ |
| 2817 @DomName('WebGLRenderingContext.texImage2D') |
| 2818 @DocsEditable() |
| 2819 void _texImage2D_1(target, level, internalformat, width, height, int border, f
ormat, type, TypedData pixels) native; |
| 2820 @JSName('texImage2D') |
| 2821 /** |
| 2822 * Updates the currently bound texture to [data]. |
| 2823 * |
| 2824 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2825 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2826 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2827 * [texImage2DCanvas], [texImage2DVideo]). |
| 2828 */ |
| 2829 @DomName('WebGLRenderingContext.texImage2D') |
| 2830 @DocsEditable() |
| 2831 void _texImage2D_2(target, level, internalformat, format, type, pixels) native
; |
| 2832 @JSName('texImage2D') |
| 2833 /** |
| 2834 * Updates the currently bound texture to [data]. |
| 2835 * |
| 2836 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2837 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2838 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2839 * [texImage2DCanvas], [texImage2DVideo]). |
| 2840 */ |
| 2841 @DomName('WebGLRenderingContext.texImage2D') |
| 2842 @DocsEditable() |
| 2843 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i
mage) native; |
| 2844 @JSName('texImage2D') |
| 2845 /** |
| 2846 * Updates the currently bound texture to [data]. |
| 2847 * |
| 2848 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2849 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2850 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2851 * [texImage2DCanvas], [texImage2DVideo]). |
| 2852 */ |
| 2853 @DomName('WebGLRenderingContext.texImage2D') |
| 2854 @DocsEditable() |
| 2855 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement
canvas) native; |
| 2856 @JSName('texImage2D') |
| 2857 /** |
| 2858 * Updates the currently bound texture to [data]. |
| 2859 * |
| 2860 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2861 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2862 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2863 * [texImage2DCanvas], [texImage2DVideo]). |
| 2864 */ |
| 2865 @DomName('WebGLRenderingContext.texImage2D') |
| 2866 @DocsEditable() |
| 2867 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v
ideo) native; |
| 2868 |
| 2869 @JSName('texImage2D') |
| 2870 /** |
| 2871 * Updates the currently bound texture to [data]. |
| 2872 * |
| 2873 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2874 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2875 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2876 * [texImage2DCanvas], [texImage2DVideo]). |
| 2877 */ |
| 2878 @DomName('WebGLRenderingContext.texImage2D') |
| 2879 @DocsEditable() |
| 2880 void texImage2DCanvas(int target, int level, int internalformat, int format, i
nt type, CanvasElement canvas) native; |
| 2881 |
| 2882 @JSName('texImage2D') |
| 2883 /** |
| 2884 * Updates the currently bound texture to [data]. |
| 2885 * |
| 2886 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2887 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2888 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2889 * [texImage2DCanvas], [texImage2DVideo]). |
| 2890 */ |
| 2891 @DomName('WebGLRenderingContext.texImage2D') |
| 2892 @DocsEditable() |
| 2893 void texImage2DImage(int target, int level, int internalformat, int format, in
t type, ImageElement image) native; |
| 2894 |
| 2895 /** |
| 2896 * Updates the currently bound texture to [data]. |
| 2897 * |
| 2898 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2899 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2900 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2901 * [texImage2DCanvas], [texImage2DVideo]). |
| 2902 */ |
| 2903 @DomName('WebGLRenderingContext.texImage2D') |
| 2904 @DocsEditable() |
| 2905 void texImage2DImageData(int target, int level, int internalformat, int format
, int type, ImageData pixels) { |
| 2906 var pixels_1 = convertDartToNative_ImageData(pixels); |
| 2907 _texImage2DImageData_1(target, level, internalformat, format, type, pixels_1
); |
| 2908 return; |
| 2909 } |
| 2910 @JSName('texImage2D') |
| 2911 /** |
| 2912 * Updates the currently bound texture to [data]. |
| 2913 * |
| 2914 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2915 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2916 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2917 * [texImage2DCanvas], [texImage2DVideo]). |
| 2918 */ |
| 2919 @DomName('WebGLRenderingContext.texImage2D') |
| 2920 @DocsEditable() |
| 2921 void _texImage2DImageData_1(target, level, internalformat, format, type, pixel
s) native; |
| 2922 |
| 2923 @JSName('texImage2D') |
| 2924 /** |
| 2925 * Updates the currently bound texture to [data]. |
| 2926 * |
| 2927 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu
t it |
| 2928 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] |
| 2929 * (or for more specificity, the more specialized [texImage2DImageData], |
| 2930 * [texImage2DCanvas], [texImage2DVideo]). |
| 2931 */ |
| 2932 @DomName('WebGLRenderingContext.texImage2D') |
| 2933 @DocsEditable() |
| 2934 void texImage2DVideo(int target, int level, int internalformat, int format, in
t type, VideoElement video) native; |
| 2935 |
| 2936 @DomName('WebGLRenderingContext.texParameterf') |
| 2937 @DocsEditable() |
| 2938 void texParameterf(int target, int pname, num param) native; |
| 2939 |
| 2940 @DomName('WebGLRenderingContext.texParameteri') |
| 2941 @DocsEditable() |
| 2942 void texParameteri(int target, int pname, int param) native; |
| 2943 |
| 2944 /** |
| 2945 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 2946 * |
| 2947 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 2948 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 2949 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 2950 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 2951 */ |
| 2952 @DomName('WebGLRenderingContext.texSubImage2D') |
| 2953 @DocsEditable() |
| 2954 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, [in
t type, TypedData pixels]) { |
| 2955 if (pixels != null && type != null && (canvas_OR_format_OR_image_OR_pixels_O
R_video is int)) { |
| 2956 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); |
| 2957 return; |
| 2958 } |
| 2959 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) { |
| 2960 var pixels_1 = convertDartToNative_ImageData(canvas_OR_format_OR_image_OR_
pixels_OR_video); |
| 2961 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, pixels_1); |
| 2962 return; |
| 2963 } |
| 2964 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement) && type =
= null && pixels == null) { |
| 2965 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
| 2966 return; |
| 2967 } |
| 2968 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement) && type
== null && pixels == null) { |
| 2969 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
| 2970 return; |
| 2971 } |
| 2972 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement) && type =
= null && pixels == null) { |
| 2973 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_
OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); |
| 2974 return; |
| 2975 } |
| 2976 throw new ArgumentError("Incorrect number or type of arguments"); |
| 2977 } |
| 2978 @JSName('texSubImage2D') |
| 2979 /** |
| 2980 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 2981 * |
| 2982 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 2983 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 2984 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 2985 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 2986 */ |
| 2987 @DomName('WebGLRenderingContext.texSubImage2D') |
| 2988 @DocsEditable() |
| 2989 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form
at, type, TypedData pixels) native; |
| 2990 @JSName('texSubImage2D') |
| 2991 /** |
| 2992 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 2993 * |
| 2994 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 2995 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 2996 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 2997 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 2998 */ |
| 2999 @DomName('WebGLRenderingContext.texSubImage2D') |
| 3000 @DocsEditable() |
| 3001 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n
ative; |
| 3002 @JSName('texSubImage2D') |
| 3003 /** |
| 3004 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3005 * |
| 3006 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 3007 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 3008 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 3009 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 3010 */ |
| 3011 @DomName('WebGLRenderingContext.texSubImage2D') |
| 3012 @DocsEditable() |
| 3013 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem
ent image) native; |
| 3014 @JSName('texSubImage2D') |
| 3015 /** |
| 3016 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3017 * |
| 3018 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 3019 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 3020 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 3021 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 3022 */ |
| 3023 @DomName('WebGLRenderingContext.texSubImage2D') |
| 3024 @DocsEditable() |
| 3025 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle
ment canvas) native; |
| 3026 @JSName('texSubImage2D') |
| 3027 /** |
| 3028 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3029 * |
| 3030 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 3031 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 3032 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 3033 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 3034 */ |
| 3035 @DomName('WebGLRenderingContext.texSubImage2D') |
| 3036 @DocsEditable() |
| 3037 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem
ent video) native; |
| 3038 |
| 3039 @JSName('texSubImage2D') |
| 3040 /** |
| 3041 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3042 * |
| 3043 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 3044 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 3045 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 3046 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 3047 */ |
| 3048 @DomName('WebGLRenderingContext.texSubImage2D') |
| 3049 @DocsEditable() |
| 3050 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int
format, int type, CanvasElement canvas) native; |
| 3051 |
| 3052 @JSName('texSubImage2D') |
| 3053 /** |
| 3054 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3055 * |
| 3056 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 3057 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 3058 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 3059 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 3060 */ |
| 3061 @DomName('WebGLRenderingContext.texSubImage2D') |
| 3062 @DocsEditable() |
| 3063 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f
ormat, int type, ImageElement image) native; |
| 3064 |
| 3065 /** |
| 3066 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3067 * |
| 3068 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 3069 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 3070 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 3071 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 3072 */ |
| 3073 @DomName('WebGLRenderingContext.texSubImage2D') |
| 3074 @DocsEditable() |
| 3075 void texSubImage2DImageData(int target, int level, int xoffset, int yoffset, i
nt format, int type, ImageData pixels) { |
| 3076 var pixels_1 = convertDartToNative_ImageData(pixels); |
| 3077 _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pix
els_1); |
| 3078 return; |
| 3079 } |
| 3080 @JSName('texSubImage2D') |
| 3081 /** |
| 3082 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3083 * |
| 3084 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 3085 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 3086 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 3087 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 3088 */ |
| 3089 @DomName('WebGLRenderingContext.texSubImage2D') |
| 3090 @DocsEditable() |
| 3091 void _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type,
pixels) native; |
| 3092 |
| 3093 @JSName('texSubImage2D') |
| 3094 /** |
| 3095 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3096 * |
| 3097 * The [texSubImage2D] method is provided for WebGL API compatibility reasons,
but it |
| 3098 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D
Typed] |
| 3099 * (or for more specificity, the more specialized [texSubImage2DImageData], |
| 3100 * [texSubImage2DCanvas], [texSubImage2DVideo]). |
| 3101 */ |
| 3102 @DomName('WebGLRenderingContext.texSubImage2D') |
| 3103 @DocsEditable() |
| 3104 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int f
ormat, int type, VideoElement video) native; |
| 3105 |
| 3106 @DomName('WebGLRenderingContext.uniform1f') |
| 3107 @DocsEditable() |
| 3108 void uniform1f(UniformLocation location, num x) native; |
| 3109 |
| 3110 @DomName('WebGLRenderingContext.uniform1fv') |
| 3111 @DocsEditable() |
| 3112 void uniform1fv(UniformLocation location, Float32List v) native; |
| 3113 |
| 3114 @DomName('WebGLRenderingContext.uniform1i') |
| 3115 @DocsEditable() |
| 3116 void uniform1i(UniformLocation location, int x) native; |
| 3117 |
| 3118 @DomName('WebGLRenderingContext.uniform1iv') |
| 3119 @DocsEditable() |
| 3120 void uniform1iv(UniformLocation location, Int32List v) native; |
| 3121 |
| 3122 @DomName('WebGLRenderingContext.uniform2f') |
| 3123 @DocsEditable() |
| 3124 void uniform2f(UniformLocation location, num x, num y) native; |
| 3125 |
| 3126 @DomName('WebGLRenderingContext.uniform2fv') |
| 3127 @DocsEditable() |
| 3128 void uniform2fv(UniformLocation location, Float32List v) native; |
| 3129 |
| 3130 @DomName('WebGLRenderingContext.uniform2i') |
| 3131 @DocsEditable() |
| 3132 void uniform2i(UniformLocation location, int x, int y) native; |
| 3133 |
| 3134 @DomName('WebGLRenderingContext.uniform2iv') |
| 3135 @DocsEditable() |
| 3136 void uniform2iv(UniformLocation location, Int32List v) native; |
| 3137 |
| 3138 @DomName('WebGLRenderingContext.uniform3f') |
| 3139 @DocsEditable() |
| 3140 void uniform3f(UniformLocation location, num x, num y, num z) native; |
| 3141 |
| 3142 @DomName('WebGLRenderingContext.uniform3fv') |
| 3143 @DocsEditable() |
| 3144 void uniform3fv(UniformLocation location, Float32List v) native; |
| 3145 |
| 3146 @DomName('WebGLRenderingContext.uniform3i') |
| 3147 @DocsEditable() |
| 3148 void uniform3i(UniformLocation location, int x, int y, int z) native; |
| 3149 |
| 3150 @DomName('WebGLRenderingContext.uniform3iv') |
| 3151 @DocsEditable() |
| 3152 void uniform3iv(UniformLocation location, Int32List v) native; |
| 3153 |
| 3154 @DomName('WebGLRenderingContext.uniform4f') |
| 3155 @DocsEditable() |
| 3156 void uniform4f(UniformLocation location, num x, num y, num z, num w) native; |
| 3157 |
| 3158 @DomName('WebGLRenderingContext.uniform4fv') |
| 3159 @DocsEditable() |
| 3160 void uniform4fv(UniformLocation location, Float32List v) native; |
| 3161 |
| 3162 @DomName('WebGLRenderingContext.uniform4i') |
| 3163 @DocsEditable() |
| 3164 void uniform4i(UniformLocation location, int x, int y, int z, int w) native; |
| 3165 |
| 3166 @DomName('WebGLRenderingContext.uniform4iv') |
| 3167 @DocsEditable() |
| 3168 void uniform4iv(UniformLocation location, Int32List v) native; |
| 3169 |
| 3170 @DomName('WebGLRenderingContext.uniformMatrix2fv') |
| 3171 @DocsEditable() |
| 3172 void uniformMatrix2fv(UniformLocation location, bool transpose, Float32List ar
ray) native; |
| 3173 |
| 3174 @DomName('WebGLRenderingContext.uniformMatrix3fv') |
| 3175 @DocsEditable() |
| 3176 void uniformMatrix3fv(UniformLocation location, bool transpose, Float32List ar
ray) native; |
| 3177 |
| 3178 @DomName('WebGLRenderingContext.uniformMatrix4fv') |
| 3179 @DocsEditable() |
| 3180 void uniformMatrix4fv(UniformLocation location, bool transpose, Float32List ar
ray) native; |
| 3181 |
| 3182 @DomName('WebGLRenderingContext.useProgram') |
| 3183 @DocsEditable() |
| 3184 void useProgram(Program program) native; |
| 3185 |
| 3186 @DomName('WebGLRenderingContext.validateProgram') |
| 3187 @DocsEditable() |
| 3188 void validateProgram(Program program) native; |
| 3189 |
| 3190 @DomName('WebGLRenderingContext.vertexAttrib1f') |
| 3191 @DocsEditable() |
| 3192 void vertexAttrib1f(int indx, num x) native; |
| 3193 |
| 3194 @DomName('WebGLRenderingContext.vertexAttrib1fv') |
| 3195 @DocsEditable() |
| 3196 void vertexAttrib1fv(int indx, Float32List values) native; |
| 3197 |
| 3198 @DomName('WebGLRenderingContext.vertexAttrib2f') |
| 3199 @DocsEditable() |
| 3200 void vertexAttrib2f(int indx, num x, num y) native; |
| 3201 |
| 3202 @DomName('WebGLRenderingContext.vertexAttrib2fv') |
| 3203 @DocsEditable() |
| 3204 void vertexAttrib2fv(int indx, Float32List values) native; |
| 3205 |
| 3206 @DomName('WebGLRenderingContext.vertexAttrib3f') |
| 3207 @DocsEditable() |
| 3208 void vertexAttrib3f(int indx, num x, num y, num z) native; |
| 3209 |
| 3210 @DomName('WebGLRenderingContext.vertexAttrib3fv') |
| 3211 @DocsEditable() |
| 3212 void vertexAttrib3fv(int indx, Float32List values) native; |
| 3213 |
| 3214 @DomName('WebGLRenderingContext.vertexAttrib4f') |
| 3215 @DocsEditable() |
| 3216 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; |
| 3217 |
| 3218 @DomName('WebGLRenderingContext.vertexAttrib4fv') |
| 3219 @DocsEditable() |
| 3220 void vertexAttrib4fv(int indx, Float32List values) native; |
| 3221 |
| 3222 @DomName('WebGLRenderingContext.vertexAttribPointer') |
| 3223 @DocsEditable() |
| 3224 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st
ride, int offset) native; |
| 3225 |
| 3226 @DomName('WebGLRenderingContext.viewport') |
| 3227 @DocsEditable() |
| 3228 void viewport(int x, int y, int width, int height) native; |
| 3229 |
| 3230 |
| 3231 /** |
| 3232 * Sets the currently bound texture to [data]. |
| 3233 * |
| 3234 * [data] can be either an [ImageElement], a |
| 3235 * [CanvasElement], a [VideoElement], or an [ImageData] object. |
| 3236 * |
| 3237 * To use [texImage2d] with a TypedData object, use [texImage2dTyped]. |
| 3238 * |
| 3239 */ |
| 3240 @JSName('texImage2D') |
| 3241 void texImage2DUntyped(int targetTexture, int levelOfDetail, |
| 3242 int internalFormat, int format, int type, data) native; |
| 3243 |
| 3244 /** |
| 3245 * Sets the currently bound texture to [data]. |
| 3246 */ |
| 3247 @JSName('texImage2D') |
| 3248 void texImage2DTyped(int targetTexture, int levelOfDetail, |
| 3249 int internalFormat, int width, int height, int border, int format, |
| 3250 int type, TypedData data) native; |
| 3251 |
| 3252 /** |
| 3253 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3254 * |
| 3255 * [data] can be either an [ImageElement], a |
| 3256 * [CanvasElement], a [VideoElement], or an [ImageData] object. |
| 3257 * |
| 3258 * To use [texSubImage2d] with a TypedData object, use [texSubImage2dTyped]. |
| 3259 * |
| 3260 */ |
| 3261 @JSName('texSubImage2D') |
| 3262 void texSubImage2DUntyped(int targetTexture, int levelOfDetail, |
| 3263 int xOffset, int yOffset, int format, int type, data) native; |
| 3264 |
| 3265 /** |
| 3266 * Updates a sub-rectangle of the currently bound texture to [data]. |
| 3267 */ |
| 3268 @JSName('texSubImage2D') |
| 3269 void texSubImage2DTyped(int targetTexture, int levelOfDetail, |
| 3270 int xOffset, int yOffset, int width, int height, int border, int format, |
| 3271 int type, TypedData data) native; |
| 3272 } |
| 3273 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3274 // for details. All rights reserved. Use of this source code is governed by a |
| 3275 // BSD-style license that can be found in the LICENSE file. |
| 3276 |
| 3277 |
| 3278 @DocsEditable() |
| 3279 @DomName('WebGLShader') |
| 3280 @Native("WebGLShader") |
| 3281 class Shader extends Interceptor { |
| 3282 // To suppress missing implicit constructor warnings. |
| 3283 factory Shader._() { throw new UnsupportedError("Not supported"); } |
| 3284 } |
| 3285 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3286 // for details. All rights reserved. Use of this source code is governed by a |
| 3287 // BSD-style license that can be found in the LICENSE file. |
| 3288 |
| 3289 |
| 3290 @DocsEditable() |
| 3291 @DomName('WebGLShaderPrecisionFormat') |
| 3292 @Native("WebGLShaderPrecisionFormat") |
| 3293 class ShaderPrecisionFormat extends Interceptor { |
| 3294 // To suppress missing implicit constructor warnings. |
| 3295 factory ShaderPrecisionFormat._() { throw new UnsupportedError("Not supported"
); } |
| 3296 |
| 3297 @DomName('WebGLShaderPrecisionFormat.precision') |
| 3298 @DocsEditable() |
| 3299 final int precision; |
| 3300 |
| 3301 @DomName('WebGLShaderPrecisionFormat.rangeMax') |
| 3302 @DocsEditable() |
| 3303 final int rangeMax; |
| 3304 |
| 3305 @DomName('WebGLShaderPrecisionFormat.rangeMin') |
| 3306 @DocsEditable() |
| 3307 final int rangeMin; |
| 3308 } |
| 3309 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3310 // for details. All rights reserved. Use of this source code is governed by a |
| 3311 // BSD-style license that can be found in the LICENSE file. |
| 3312 |
| 3313 |
| 3314 @DocsEditable() |
| 3315 @DomName('WebGLTexture') |
| 3316 @Native("WebGLTexture") |
| 3317 class Texture extends Interceptor { |
| 3318 // To suppress missing implicit constructor warnings. |
| 3319 factory Texture._() { throw new UnsupportedError("Not supported"); } |
| 3320 } |
| 3321 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3322 // for details. All rights reserved. Use of this source code is governed by a |
| 3323 // BSD-style license that can be found in the LICENSE file. |
| 3324 |
| 3325 |
| 3326 @DocsEditable() |
| 3327 @DomName('WebGLUniformLocation') |
| 3328 @Native("WebGLUniformLocation") |
| 3329 class UniformLocation extends Interceptor { |
| 3330 // To suppress missing implicit constructor warnings. |
| 3331 factory UniformLocation._() { throw new UnsupportedError("Not supported"); } |
| 3332 } |
| 3333 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3334 // for details. All rights reserved. Use of this source code is governed by a |
| 3335 // BSD-style license that can be found in the LICENSE file. |
| 3336 |
| 3337 |
| 3338 @DocsEditable() |
| 3339 @DomName('WebGLVertexArrayObjectOES') |
| 3340 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ |
| 3341 @Experimental() // experimental |
| 3342 @Native("WebGLVertexArrayObjectOES") |
| 3343 class VertexArrayObject extends Interceptor { |
| 3344 // To suppress missing implicit constructor warnings. |
| 3345 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); } |
| 3346 } |
| 3347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3348 // for details. All rights reserved. Use of this source code is governed by a |
| 3349 // BSD-style license that can be found in the LICENSE file. |
| 3350 |
| 3351 |
| 3352 @DocsEditable() |
| 3353 @DomName('WebGLRenderingContextBase') |
| 3354 @Experimental() // untriaged |
| 3355 abstract class _WebGLRenderingContextBase extends Interceptor { |
| 3356 // To suppress missing implicit constructor warnings. |
| 3357 factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not suppo
rted"); } |
| 3358 } |
OLD | NEW |