Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: sdk/lib/web_gl/dartium/web_gl_dartium.dart

Issue 12851013: Adding web_gl library. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 library dart.dom.web_gl;
2
3 import 'dart:async';
4 import 'dart:collection';
5 import 'dart:html';
6 import 'dart:html_common';
7 import 'dart:nativewrappers';
8 import 'dart:typeddata' as _typeddata;
9 // DO NOT EDIT
10 // Auto-generated dart:audio library.
11
12
13
14
15
16 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
17 // for details. All rights reserved. Use of this source code is governed by a
18 // BSD-style license that can be found in the LICENSE file.
19
20
21 const int ACTIVE_ATTRIBUTES = RenderingContext.ACTIVE_ATTRIBUTES;
22 const int ACTIVE_TEXTURE = RenderingContext.ACTIVE_TEXTURE;
23 const int ACTIVE_UNIFORMS = RenderingContext.ACTIVE_UNIFORMS;
24 const int ALIASED_LINE_WIDTH_RANGE = RenderingContext.ALIASED_LINE_WIDTH_RANGE;
25 const int ALIASED_POINT_SIZE_RANGE = RenderingContext.ALIASED_POINT_SIZE_RANGE;
26 const int ALPHA = RenderingContext.ALPHA;
27 const int ALPHA_BITS = RenderingContext.ALPHA_BITS;
28 const int ALWAYS = RenderingContext.ALWAYS;
29 const int ARRAY_BUFFER = RenderingContext.ARRAY_BUFFER;
30 const int ARRAY_BUFFER_BINDING = RenderingContext.ARRAY_BUFFER_BINDING;
31 const int ATTACHED_SHADERS = RenderingContext.ATTACHED_SHADERS;
32 const int BACK = RenderingContext.BACK;
33 const int BLEND = RenderingContext.BLEND;
34 const int BLEND_COLOR = RenderingContext.BLEND_COLOR;
35 const int BLEND_DST_ALPHA = RenderingContext.BLEND_DST_ALPHA;
36 const int BLEND_DST_RGB = RenderingContext.BLEND_DST_RGB;
37 const int BLEND_EQUATION = RenderingContext.BLEND_EQUATION;
38 const int BLEND_EQUATION_ALPHA = RenderingContext.BLEND_EQUATION_ALPHA;
39 const int BLEND_EQUATION_RGB = RenderingContext.BLEND_EQUATION_RGB;
40 const int BLEND_SRC_ALPHA = RenderingContext.BLEND_SRC_ALPHA;
41 const int BLEND_SRC_RGB = RenderingContext.BLEND_SRC_RGB;
42 const int BLUE_BITS = RenderingContext.BLUE_BITS;
43 const int BOOL = RenderingContext.BOOL;
44 const int BOOL_VEC2 = RenderingContext.BOOL_VEC2;
45 const int BOOL_VEC3 = RenderingContext.BOOL_VEC3;
46 const int BOOL_VEC4 = RenderingContext.BOOL_VEC4;
47 const int BROWSER_DEFAULT_WEBGL = RenderingContext.BROWSER_DEFAULT_WEBGL;
48 const int BUFFER_SIZE = RenderingContext.BUFFER_SIZE;
49 const int BUFFER_USAGE = RenderingContext.BUFFER_USAGE;
50 const int BYTE = RenderingContext.BYTE;
51 const int CCW = RenderingContext.CCW;
52 const int CLAMP_TO_EDGE = RenderingContext.CLAMP_TO_EDGE;
53 const int COLOR_ATTACHMENT0 = RenderingContext.COLOR_ATTACHMENT0;
54 const int COLOR_BUFFER_BIT = RenderingContext.COLOR_BUFFER_BIT;
55 const int COLOR_CLEAR_VALUE = RenderingContext.COLOR_CLEAR_VALUE;
56 const int COLOR_WRITEMASK = RenderingContext.COLOR_WRITEMASK;
57 const int COMPILE_STATUS = RenderingContext.COMPILE_STATUS;
58 const int COMPRESSED_TEXTURE_FORMATS = RenderingContext.COMPRESSED_TEXTURE_FORMA TS;
59 const int CONSTANT_ALPHA = RenderingContext.CONSTANT_ALPHA;
60 const int CONSTANT_COLOR = RenderingContext.CONSTANT_COLOR;
61 const int CONTEXT_LOST_WEBGL = RenderingContext.CONTEXT_LOST_WEBGL;
62 const int CULL_FACE = RenderingContext.CULL_FACE;
63 const int CULL_FACE_MODE = RenderingContext.CULL_FACE_MODE;
64 const int CURRENT_PROGRAM = RenderingContext.CURRENT_PROGRAM;
65 const int CURRENT_VERTEX_ATTRIB = RenderingContext.CURRENT_VERTEX_ATTRIB;
66 const int CW = RenderingContext.CW;
67 const int DECR = RenderingContext.DECR;
68 const int DECR_WRAP = RenderingContext.DECR_WRAP;
69 const int DELETE_STATUS = RenderingContext.DELETE_STATUS;
70 const int DEPTH_ATTACHMENT = RenderingContext.DEPTH_ATTACHMENT;
71 const int DEPTH_BITS = RenderingContext.DEPTH_BITS;
72 const int DEPTH_BUFFER_BIT = RenderingContext.DEPTH_BUFFER_BIT;
73 const int DEPTH_CLEAR_VALUE = RenderingContext.DEPTH_CLEAR_VALUE;
74 const int DEPTH_COMPONENT = RenderingContext.DEPTH_COMPONENT;
75 const int DEPTH_COMPONENT16 = RenderingContext.DEPTH_COMPONENT16;
76 const int DEPTH_FUNC = RenderingContext.DEPTH_FUNC;
77 const int DEPTH_RANGE = RenderingContext.DEPTH_RANGE;
78 const int DEPTH_STENCIL = RenderingContext.DEPTH_STENCIL;
79 const int DEPTH_STENCIL_ATTACHMENT = RenderingContext.DEPTH_STENCIL_ATTACHMENT;
80 const int DEPTH_TEST = RenderingContext.DEPTH_TEST;
81 const int DEPTH_WRITEMASK = RenderingContext.DEPTH_WRITEMASK;
82 const int DITHER = RenderingContext.DITHER;
83 const int DONT_CARE = RenderingContext.DONT_CARE;
84 const int DST_ALPHA = RenderingContext.DST_ALPHA;
85 const int DST_COLOR = RenderingContext.DST_COLOR;
86 const int DYNAMIC_DRAW = RenderingContext.DYNAMIC_DRAW;
87 const int ELEMENT_ARRAY_BUFFER = RenderingContext.ELEMENT_ARRAY_BUFFER;
88 const int ELEMENT_ARRAY_BUFFER_BINDING = RenderingContext.ELEMENT_ARRAY_BUFFER_B INDING;
89 const int EQUAL = RenderingContext.EQUAL;
90 const int FASTEST = RenderingContext.FASTEST;
91 const int FLOAT = RenderingContext.FLOAT;
92 const int FLOAT_MAT2 = RenderingContext.FLOAT_MAT2;
93 const int FLOAT_MAT3 = RenderingContext.FLOAT_MAT3;
94 const int FLOAT_MAT4 = RenderingContext.FLOAT_MAT4;
95 const int FLOAT_VEC2 = RenderingContext.FLOAT_VEC2;
96 const int FLOAT_VEC3 = RenderingContext.FLOAT_VEC3;
97 const int FLOAT_VEC4 = RenderingContext.FLOAT_VEC4;
98 const int FRAGMENT_SHADER = RenderingContext.FRAGMENT_SHADER;
99 const int FRAMEBUFFER = RenderingContext.FRAMEBUFFER;
100 const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = RenderingContext.FRAMEBUFFER_ATTA CHMENT_OBJECT_NAME;
101 const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = RenderingContext.FRAMEBUFFER_ATTA CHMENT_OBJECT_TYPE;
102 const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = RenderingContext.FRAMEB UFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE;
103 const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = RenderingContext.FRAMEBUFFER_AT TACHMENT_TEXTURE_LEVEL;
104 const int FRAMEBUFFER_BINDING = RenderingContext.FRAMEBUFFER_BINDING;
105 const int FRAMEBUFFER_COMPLETE = RenderingContext.FRAMEBUFFER_COMPLETE;
106 const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = RenderingContext.FRAMEBUFFER_INCOM PLETE_ATTACHMENT;
107 const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = RenderingContext.FRAMEBUFFER_INCOM PLETE_DIMENSIONS;
108 const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = RenderingContext.FRAMEBUFF ER_INCOMPLETE_MISSING_ATTACHMENT;
109 const int FRAMEBUFFER_UNSUPPORTED = RenderingContext.FRAMEBUFFER_UNSUPPORTED;
110 const int FRONT = RenderingContext.FRONT;
111 const int FRONT_AND_BACK = RenderingContext.FRONT_AND_BACK;
112 const int FRONT_FACE = RenderingContext.FRONT_FACE;
113 const int FUNC_ADD = RenderingContext.FUNC_ADD;
114 const int FUNC_REVERSE_SUBTRACT = RenderingContext.FUNC_REVERSE_SUBTRACT;
115 const int FUNC_SUBTRACT = RenderingContext.FUNC_SUBTRACT;
116 const int GENERATE_MIPMAP_HINT = RenderingContext.GENERATE_MIPMAP_HINT;
117 const int GEQUAL = RenderingContext.GEQUAL;
118 const int GREATER = RenderingContext.GREATER;
119 const int GREEN_BITS = RenderingContext.GREEN_BITS;
120 const int HALF_FLOAT_OES = RenderingContext.HALF_FLOAT_OES;
121 const int HIGH_FLOAT = RenderingContext.HIGH_FLOAT;
122 const int HIGH_INT = RenderingContext.HIGH_INT;
123 const int INCR = RenderingContext.INCR;
124 const int INCR_WRAP = RenderingContext.INCR_WRAP;
125 const int INT = RenderingContext.INT;
126 const int INT_VEC2 = RenderingContext.INT_VEC2;
127 const int INT_VEC3 = RenderingContext.INT_VEC3;
128 const int INT_VEC4 = RenderingContext.INT_VEC4;
129 const int INVALID_ENUM = RenderingContext.INVALID_ENUM;
130 const int INVALID_FRAMEBUFFER_OPERATION = RenderingContext.INVALID_FRAMEBUFFER_O PERATION;
131 const int INVALID_OPERATION = RenderingContext.INVALID_OPERATION;
132 const int INVALID_VALUE = RenderingContext.INVALID_VALUE;
133 const int INVERT = RenderingContext.INVERT;
134 const int KEEP = RenderingContext.KEEP;
135 const int LEQUAL = RenderingContext.LEQUAL;
136 const int LESS = RenderingContext.LESS;
137 const int LINEAR = RenderingContext.LINEAR;
138 const int LINEAR_MIPMAP_LINEAR = RenderingContext.LINEAR_MIPMAP_LINEAR;
139 const int LINEAR_MIPMAP_NEAREST = RenderingContext.LINEAR_MIPMAP_NEAREST;
140 const int LINES = RenderingContext.LINES;
141 const int LINE_LOOP = RenderingContext.LINE_LOOP;
142 const int LINE_STRIP = RenderingContext.LINE_STRIP;
143 const int LINE_WIDTH = RenderingContext.LINE_WIDTH;
144 const int LINK_STATUS = RenderingContext.LINK_STATUS;
145 const int LOW_FLOAT = RenderingContext.LOW_FLOAT;
146 const int LOW_INT = RenderingContext.LOW_INT;
147 const int LUMINANCE = RenderingContext.LUMINANCE;
148 const int LUMINANCE_ALPHA = RenderingContext.LUMINANCE_ALPHA;
149 const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_COMBINED_TEXTU RE_IMAGE_UNITS;
150 const int MAX_CUBE_MAP_TEXTURE_SIZE = RenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE ;
151 const int MAX_FRAGMENT_UNIFORM_VECTORS = RenderingContext.MAX_FRAGMENT_UNIFORM_V ECTORS;
152 const int MAX_RENDERBUFFER_SIZE = RenderingContext.MAX_RENDERBUFFER_SIZE;
153 const int MAX_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_TEXTURE_IMAGE_UNITS;
154 const int MAX_TEXTURE_SIZE = RenderingContext.MAX_TEXTURE_SIZE;
155 const int MAX_VARYING_VECTORS = RenderingContext.MAX_VARYING_VECTORS;
156 const int MAX_VERTEX_ATTRIBS = RenderingContext.MAX_VERTEX_ATTRIBS;
157 const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_VERTEX_TEXTURE_I MAGE_UNITS;
158 const int MAX_VERTEX_UNIFORM_VECTORS = RenderingContext.MAX_VERTEX_UNIFORM_VECTO RS;
159 const int MAX_VIEWPORT_DIMS = RenderingContext.MAX_VIEWPORT_DIMS;
160 const int MEDIUM_FLOAT = RenderingContext.MEDIUM_FLOAT;
161 const int MEDIUM_INT = RenderingContext.MEDIUM_INT;
162 const int MIRRORED_REPEAT = RenderingContext.MIRRORED_REPEAT;
163 const int NEAREST = RenderingContext.NEAREST;
164 const int NEAREST_MIPMAP_LINEAR = RenderingContext.NEAREST_MIPMAP_LINEAR;
165 const int NEAREST_MIPMAP_NEAREST = RenderingContext.NEAREST_MIPMAP_NEAREST;
166 const int NEVER = RenderingContext.NEVER;
167 const int NICEST = RenderingContext.NICEST;
168 const int NONE = RenderingContext.NONE;
169 const int NOTEQUAL = RenderingContext.NOTEQUAL;
170 const int NO_ERROR = RenderingContext.NO_ERROR;
171 const int ONE = RenderingContext.ONE;
172 const int ONE_MINUS_CONSTANT_ALPHA = RenderingContext.ONE_MINUS_CONSTANT_ALPHA;
173 const int ONE_MINUS_CONSTANT_COLOR = RenderingContext.ONE_MINUS_CONSTANT_COLOR;
174 const int ONE_MINUS_DST_ALPHA = RenderingContext.ONE_MINUS_DST_ALPHA;
175 const int ONE_MINUS_DST_COLOR = RenderingContext.ONE_MINUS_DST_COLOR;
176 const int ONE_MINUS_SRC_ALPHA = RenderingContext.ONE_MINUS_SRC_ALPHA;
177 const int ONE_MINUS_SRC_COLOR = RenderingContext.ONE_MINUS_SRC_COLOR;
178 const int OUT_OF_MEMORY = RenderingContext.OUT_OF_MEMORY;
179 const int PACK_ALIGNMENT = RenderingContext.PACK_ALIGNMENT;
180 const int POINTS = RenderingContext.POINTS;
181 const int POLYGON_OFFSET_FACTOR = RenderingContext.POLYGON_OFFSET_FACTOR;
182 const int POLYGON_OFFSET_FILL = RenderingContext.POLYGON_OFFSET_FILL;
183 const int POLYGON_OFFSET_UNITS = RenderingContext.POLYGON_OFFSET_UNITS;
184 const int RED_BITS = RenderingContext.RED_BITS;
185 const int RENDERBUFFER = RenderingContext.RENDERBUFFER;
186 const int RENDERBUFFER_ALPHA_SIZE = RenderingContext.RENDERBUFFER_ALPHA_SIZE;
187 const int RENDERBUFFER_BINDING = RenderingContext.RENDERBUFFER_BINDING;
188 const int RENDERBUFFER_BLUE_SIZE = RenderingContext.RENDERBUFFER_BLUE_SIZE;
189 const int RENDERBUFFER_DEPTH_SIZE = RenderingContext.RENDERBUFFER_DEPTH_SIZE;
190 const int RENDERBUFFER_GREEN_SIZE = RenderingContext.RENDERBUFFER_GREEN_SIZE;
191 const int RENDERBUFFER_HEIGHT = RenderingContext.RENDERBUFFER_HEIGHT;
192 const int RENDERBUFFER_INTERNAL_FORMAT = RenderingContext.RENDERBUFFER_INTERNAL_ FORMAT;
193 const int RENDERBUFFER_RED_SIZE = RenderingContext.RENDERBUFFER_RED_SIZE;
194 const int RENDERBUFFER_STENCIL_SIZE = RenderingContext.RENDERBUFFER_STENCIL_SIZE ;
195 const int RENDERBUFFER_WIDTH = RenderingContext.RENDERBUFFER_WIDTH;
196 const int RENDERER = RenderingContext.RENDERER;
197 const int REPEAT = RenderingContext.REPEAT;
198 const int REPLACE = RenderingContext.REPLACE;
199 const int RGB = RenderingContext.RGB;
200 const int RGB565 = RenderingContext.RGB565;
201 const int RGB5_A1 = RenderingContext.RGB5_A1;
202 const int RGBA = RenderingContext.RGBA;
203 const int RGBA4 = RenderingContext.RGBA4;
204 const int SAMPLER_2D = RenderingContext.SAMPLER_2D;
205 const int SAMPLER_CUBE = RenderingContext.SAMPLER_CUBE;
206 const int SAMPLES = RenderingContext.SAMPLES;
207 const int SAMPLE_ALPHA_TO_COVERAGE = RenderingContext.SAMPLE_ALPHA_TO_COVERAGE;
208 const int SAMPLE_BUFFERS = RenderingContext.SAMPLE_BUFFERS;
209 const int SAMPLE_COVERAGE = RenderingContext.SAMPLE_COVERAGE;
210 const int SAMPLE_COVERAGE_INVERT = RenderingContext.SAMPLE_COVERAGE_INVERT;
211 const int SAMPLE_COVERAGE_VALUE = RenderingContext.SAMPLE_COVERAGE_VALUE;
212 const int SCISSOR_BOX = RenderingContext.SCISSOR_BOX;
213 const int SCISSOR_TEST = RenderingContext.SCISSOR_TEST;
214 const int SHADER_TYPE = RenderingContext.SHADER_TYPE;
215 const int SHADING_LANGUAGE_VERSION = RenderingContext.SHADING_LANGUAGE_VERSION;
216 const int SHORT = RenderingContext.SHORT;
217 const int SRC_ALPHA = RenderingContext.SRC_ALPHA;
218 const int SRC_ALPHA_SATURATE = RenderingContext.SRC_ALPHA_SATURATE;
219 const int SRC_COLOR = RenderingContext.SRC_COLOR;
220 const int STATIC_DRAW = RenderingContext.STATIC_DRAW;
221 const int STENCIL_ATTACHMENT = RenderingContext.STENCIL_ATTACHMENT;
222 const int STENCIL_BACK_FAIL = RenderingContext.STENCIL_BACK_FAIL;
223 const int STENCIL_BACK_FUNC = RenderingContext.STENCIL_BACK_FUNC;
224 const int STENCIL_BACK_PASS_DEPTH_FAIL = RenderingContext.STENCIL_BACK_PASS_DEPT H_FAIL;
225 const int STENCIL_BACK_PASS_DEPTH_PASS = RenderingContext.STENCIL_BACK_PASS_DEPT H_PASS;
226 const int STENCIL_BACK_REF = RenderingContext.STENCIL_BACK_REF;
227 const int STENCIL_BACK_VALUE_MASK = RenderingContext.STENCIL_BACK_VALUE_MASK;
228 const int STENCIL_BACK_WRITEMASK = RenderingContext.STENCIL_BACK_WRITEMASK;
229 const int STENCIL_BITS = RenderingContext.STENCIL_BITS;
230 const int STENCIL_BUFFER_BIT = RenderingContext.STENCIL_BUFFER_BIT;
231 const int STENCIL_CLEAR_VALUE = RenderingContext.STENCIL_CLEAR_VALUE;
232 const int STENCIL_FAIL = RenderingContext.STENCIL_FAIL;
233 const int STENCIL_FUNC = RenderingContext.STENCIL_FUNC;
234 const int STENCIL_INDEX = RenderingContext.STENCIL_INDEX;
235 const int STENCIL_INDEX8 = RenderingContext.STENCIL_INDEX8;
236 const int STENCIL_PASS_DEPTH_FAIL = RenderingContext.STENCIL_PASS_DEPTH_FAIL;
237 const int STENCIL_PASS_DEPTH_PASS = RenderingContext.STENCIL_PASS_DEPTH_PASS;
238 const int STENCIL_REF = RenderingContext.STENCIL_REF;
239 const int STENCIL_TEST = RenderingContext.STENCIL_TEST;
240 const int STENCIL_VALUE_MASK = RenderingContext.STENCIL_VALUE_MASK;
241 const int STENCIL_WRITEMASK = RenderingContext.STENCIL_WRITEMASK;
242 const int STREAM_DRAW = RenderingContext.STREAM_DRAW;
243 const int SUBPIXEL_BITS = RenderingContext.SUBPIXEL_BITS;
244 const int TEXTURE = RenderingContext.TEXTURE;
245 const int TEXTURE0 = RenderingContext.TEXTURE0;
246 const int TEXTURE1 = RenderingContext.TEXTURE1;
247 const int TEXTURE10 = RenderingContext.TEXTURE10;
248 const int TEXTURE11 = RenderingContext.TEXTURE11;
249 const int TEXTURE12 = RenderingContext.TEXTURE12;
250 const int TEXTURE13 = RenderingContext.TEXTURE13;
251 const int TEXTURE14 = RenderingContext.TEXTURE14;
252 const int TEXTURE15 = RenderingContext.TEXTURE15;
253 const int TEXTURE16 = RenderingContext.TEXTURE16;
254 const int TEXTURE17 = RenderingContext.TEXTURE17;
255 const int TEXTURE18 = RenderingContext.TEXTURE18;
256 const int TEXTURE19 = RenderingContext.TEXTURE19;
257 const int TEXTURE2 = RenderingContext.TEXTURE2;
258 const int TEXTURE20 = RenderingContext.TEXTURE20;
259 const int TEXTURE21 = RenderingContext.TEXTURE21;
260 const int TEXTURE22 = RenderingContext.TEXTURE22;
261 const int TEXTURE23 = RenderingContext.TEXTURE23;
262 const int TEXTURE24 = RenderingContext.TEXTURE24;
263 const int TEXTURE25 = RenderingContext.TEXTURE25;
264 const int TEXTURE26 = RenderingContext.TEXTURE26;
265 const int TEXTURE27 = RenderingContext.TEXTURE27;
266 const int TEXTURE28 = RenderingContext.TEXTURE28;
267 const int TEXTURE29 = RenderingContext.TEXTURE29;
268 const int TEXTURE3 = RenderingContext.TEXTURE3;
269 const int TEXTURE30 = RenderingContext.TEXTURE30;
270 const int TEXTURE31 = RenderingContext.TEXTURE31;
271 const int TEXTURE4 = RenderingContext.TEXTURE4;
272 const int TEXTURE5 = RenderingContext.TEXTURE5;
273 const int TEXTURE6 = RenderingContext.TEXTURE6;
274 const int TEXTURE7 = RenderingContext.TEXTURE7;
275 const int TEXTURE8 = RenderingContext.TEXTURE8;
276 const int TEXTURE9 = RenderingContext.TEXTURE9;
277 const int TEXTURE_2D = RenderingContext.TEXTURE_2D;
278 const int TEXTURE_BINDING_2D = RenderingContext.TEXTURE_BINDING_2D;
279 const int TEXTURE_BINDING_CUBE_MAP = RenderingContext.TEXTURE_BINDING_CUBE_MAP;
280 const int TEXTURE_CUBE_MAP = RenderingContext.TEXTURE_CUBE_MAP;
281 const int TEXTURE_CUBE_MAP_NEGATIVE_X = RenderingContext.TEXTURE_CUBE_MAP_NEGATI VE_X;
282 const int TEXTURE_CUBE_MAP_NEGATIVE_Y = RenderingContext.TEXTURE_CUBE_MAP_NEGATI VE_Y;
283 const int TEXTURE_CUBE_MAP_NEGATIVE_Z = RenderingContext.TEXTURE_CUBE_MAP_NEGATI VE_Z;
284 const int TEXTURE_CUBE_MAP_POSITIVE_X = RenderingContext.TEXTURE_CUBE_MAP_POSITI VE_X;
285 const int TEXTURE_CUBE_MAP_POSITIVE_Y = RenderingContext.TEXTURE_CUBE_MAP_POSITI VE_Y;
286 const int TEXTURE_CUBE_MAP_POSITIVE_Z = RenderingContext.TEXTURE_CUBE_MAP_POSITI VE_Z;
287 const int TEXTURE_MAG_FILTER = RenderingContext.TEXTURE_MAG_FILTER;
288 const int TEXTURE_MIN_FILTER = RenderingContext.TEXTURE_MIN_FILTER;
289 const int TEXTURE_WRAP_S = RenderingContext.TEXTURE_WRAP_S;
290 const int TEXTURE_WRAP_T = RenderingContext.TEXTURE_WRAP_T;
291 const int TRIANGLES = RenderingContext.TRIANGLES;
292 const int TRIANGLE_FAN = RenderingContext.TRIANGLE_FAN;
293 const int TRIANGLE_STRIP = RenderingContext.TRIANGLE_STRIP;
294 const int UNPACK_ALIGNMENT = RenderingContext.UNPACK_ALIGNMENT;
295 const int UNPACK_COLORSPACE_CONVERSION_WEBGL = RenderingContext.UNPACK_COLORSPAC E_CONVERSION_WEBGL;
296 const int UNPACK_FLIP_Y_WEBGL = RenderingContext.UNPACK_FLIP_Y_WEBGL;
297 const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = RenderingContext.UNPACK_PREMULTIPLY_A LPHA_WEBGL;
298 const int UNSIGNED_BYTE = RenderingContext.UNSIGNED_BYTE;
299 const int UNSIGNED_INT = RenderingContext.UNSIGNED_INT;
300 const int UNSIGNED_SHORT = RenderingContext.UNSIGNED_SHORT;
301 const int UNSIGNED_SHORT_4_4_4_4 = RenderingContext.UNSIGNED_SHORT_4_4_4_4;
302 const int UNSIGNED_SHORT_5_5_5_1 = RenderingContext.UNSIGNED_SHORT_5_5_5_1;
303 const int UNSIGNED_SHORT_5_6_5 = RenderingContext.UNSIGNED_SHORT_5_6_5;
304 const int VALIDATE_STATUS = RenderingContext.VALIDATE_STATUS;
305 const int VENDOR = RenderingContext.VENDOR;
306 const int VERSION = RenderingContext.VERSION;
307 const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = RenderingContext.VERTEX_ATTRIB_AR RAY_BUFFER_BINDING;
308 const int VERTEX_ATTRIB_ARRAY_ENABLED = RenderingContext.VERTEX_ATTRIB_ARRAY_ENA BLED;
309 const int VERTEX_ATTRIB_ARRAY_NORMALIZED = RenderingContext.VERTEX_ATTRIB_ARRAY_ NORMALIZED;
310 const int VERTEX_ATTRIB_ARRAY_POINTER = RenderingContext.VERTEX_ATTRIB_ARRAY_POI NTER;
311 const int VERTEX_ATTRIB_ARRAY_SIZE = RenderingContext.VERTEX_ATTRIB_ARRAY_SIZE;
312 const int VERTEX_ATTRIB_ARRAY_STRIDE = RenderingContext.VERTEX_ATTRIB_ARRAY_STRI DE;
313 const int VERTEX_ATTRIB_ARRAY_TYPE = RenderingContext.VERTEX_ATTRIB_ARRAY_TYPE;
314 const int VERTEX_SHADER = RenderingContext.VERTEX_SHADER;
315 const int VIEWPORT = RenderingContext.VIEWPORT;
316 const int ZERO = RenderingContext.ZERO;
317 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
318 // for details. All rights reserved. Use of this source code is governed by a
319 // BSD-style license that can be found in the LICENSE file.
320
321 // WARNING: Do not edit - generated code.
322
323
324 @DocsEditable
325 @DomName('WebGLActiveInfo')
326 class ActiveInfo extends NativeFieldWrapperClass1 {
327 ActiveInfo.internal();
328
329 @DomName('WebGLActiveInfo.name')
330 @DocsEditable
331 String get name native "WebGLActiveInfo_name_Getter";
332
333 @DomName('WebGLActiveInfo.size')
334 @DocsEditable
335 int get size native "WebGLActiveInfo_size_Getter";
336
337 @DomName('WebGLActiveInfo.type')
338 @DocsEditable
339 int get type native "WebGLActiveInfo_type_Getter";
340
341 }
342 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
343 // for details. All rights reserved. Use of this source code is governed by a
344 // BSD-style license that can be found in the LICENSE file.
345
346 // WARNING: Do not edit - generated code.
347
348
349 @DocsEditable
350 @DomName('WebGLBuffer')
351 class Buffer extends NativeFieldWrapperClass1 {
352 Buffer.internal();
353
354 }
355 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
356 // for details. All rights reserved. Use of this source code is governed by a
357 // BSD-style license that can be found in the LICENSE file.
358
359 // WARNING: Do not edit - generated code.
360
361
362 @DocsEditable
363 @DomName('WebGLCompressedTextureS3TC')
364 class CompressedTextureS3TC extends NativeFieldWrapperClass1 {
365 CompressedTextureS3TC.internal();
366
367 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
368
369 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
370
371 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
372
373 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
374
375 }
376 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
377 // for details. All rights reserved. Use of this source code is governed by a
378 // BSD-style license that can be found in the LICENSE file.
379
380 // WARNING: Do not edit - generated code.
381
382
383 @DocsEditable
384 @DomName('WebGLContextAttributes')
385 class ContextAttributes extends NativeFieldWrapperClass1 {
386 ContextAttributes.internal();
387
388 @DomName('WebGLContextAttributes.alpha')
389 @DocsEditable
390 bool get alpha native "WebGLContextAttributes_alpha_Getter";
391
392 @DomName('WebGLContextAttributes.alpha')
393 @DocsEditable
394 void set alpha(bool value) native "WebGLContextAttributes_alpha_Setter";
395
396 @DomName('WebGLContextAttributes.antialias')
397 @DocsEditable
398 bool get antialias native "WebGLContextAttributes_antialias_Getter";
399
400 @DomName('WebGLContextAttributes.antialias')
401 @DocsEditable
402 void set antialias(bool value) native "WebGLContextAttributes_antialias_Setter ";
403
404 @DomName('WebGLContextAttributes.depth')
405 @DocsEditable
406 bool get depth native "WebGLContextAttributes_depth_Getter";
407
408 @DomName('WebGLContextAttributes.depth')
409 @DocsEditable
410 void set depth(bool value) native "WebGLContextAttributes_depth_Setter";
411
412 @DomName('WebGLContextAttributes.premultipliedAlpha')
413 @DocsEditable
414 bool get premultipliedAlpha native "WebGLContextAttributes_premultipliedAlpha_ Getter";
415
416 @DomName('WebGLContextAttributes.premultipliedAlpha')
417 @DocsEditable
418 void set premultipliedAlpha(bool value) native "WebGLContextAttributes_premult ipliedAlpha_Setter";
419
420 @DomName('WebGLContextAttributes.preserveDrawingBuffer')
421 @DocsEditable
422 bool get preserveDrawingBuffer native "WebGLContextAttributes_preserveDrawingB uffer_Getter";
423
424 @DomName('WebGLContextAttributes.preserveDrawingBuffer')
425 @DocsEditable
426 void set preserveDrawingBuffer(bool value) native "WebGLContextAttributes_pres erveDrawingBuffer_Setter";
427
428 @DomName('WebGLContextAttributes.stencil')
429 @DocsEditable
430 bool get stencil native "WebGLContextAttributes_stencil_Getter";
431
432 @DomName('WebGLContextAttributes.stencil')
433 @DocsEditable
434 void set stencil(bool value) native "WebGLContextAttributes_stencil_Setter";
435
436 }
437 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
438 // for details. All rights reserved. Use of this source code is governed by a
439 // BSD-style license that can be found in the LICENSE file.
440
441 // WARNING: Do not edit - generated code.
442
443
444 @DocsEditable
445 @DomName('WebGLContextEvent')
446 class ContextEvent extends Event {
447 ContextEvent.internal() : super.internal();
448
449 @DomName('WebGLContextEvent.statusMessage')
450 @DocsEditable
451 String get statusMessage native "WebGLContextEvent_statusMessage_Getter";
452
453 }
454 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
455 // for details. All rights reserved. Use of this source code is governed by a
456 // BSD-style license that can be found in the LICENSE file.
457
458 // WARNING: Do not edit - generated code.
459
460
461 @DocsEditable
462 @DomName('WebGLDebugRendererInfo')
463 class DebugRendererInfo extends NativeFieldWrapperClass1 {
464 DebugRendererInfo.internal();
465
466 static const int UNMASKED_RENDERER_WEBGL = 0x9246;
467
468 static const int UNMASKED_VENDOR_WEBGL = 0x9245;
469
470 }
471 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
472 // for details. All rights reserved. Use of this source code is governed by a
473 // BSD-style license that can be found in the LICENSE file.
474
475 // WARNING: Do not edit - generated code.
476
477
478 @DocsEditable
479 @DomName('WebGLDebugShaders')
480 class DebugShaders extends NativeFieldWrapperClass1 {
481 DebugShaders.internal();
482
483 @DomName('WebGLDebugShaders.getTranslatedShaderSource')
484 @DocsEditable
485 String getTranslatedShaderSource(Shader shader) native "WebGLDebugShaders_getT ranslatedShaderSource_Callback";
486
487 }
488 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
489 // for details. All rights reserved. Use of this source code is governed by a
490 // BSD-style license that can be found in the LICENSE file.
491
492 // WARNING: Do not edit - generated code.
493
494
495 @DocsEditable
496 @DomName('WebGLDepthTexture')
497 class DepthTexture extends NativeFieldWrapperClass1 {
498 DepthTexture.internal();
499
500 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA;
501
502 }
503 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
504 // for details. All rights reserved. Use of this source code is governed by a
505 // BSD-style license that can be found in the LICENSE file.
506
507 // WARNING: Do not edit - generated code.
508
509
510 @DocsEditable
511 @DomName('EXTDrawBuffers')
512 class ExtDrawBuffers extends NativeFieldWrapperClass1 {
513 ExtDrawBuffers.internal();
514
515 static const int COLOR_ATTACHMENT0_EXT = 0x8CE0;
516
517 static const int COLOR_ATTACHMENT10_EXT = 0x8CEA;
518
519 static const int COLOR_ATTACHMENT11_EXT = 0x8CEB;
520
521 static const int COLOR_ATTACHMENT12_EXT = 0x8CEC;
522
523 static const int COLOR_ATTACHMENT13_EXT = 0x8CED;
524
525 static const int COLOR_ATTACHMENT14_EXT = 0x8CEE;
526
527 static const int COLOR_ATTACHMENT15_EXT = 0x8CEF;
528
529 static const int COLOR_ATTACHMENT1_EXT = 0x8CE1;
530
531 static const int COLOR_ATTACHMENT2_EXT = 0x8CE2;
532
533 static const int COLOR_ATTACHMENT3_EXT = 0x8CE3;
534
535 static const int COLOR_ATTACHMENT4_EXT = 0x8CE4;
536
537 static const int COLOR_ATTACHMENT5_EXT = 0x8CE5;
538
539 static const int COLOR_ATTACHMENT6_EXT = 0x8CE6;
540
541 static const int COLOR_ATTACHMENT7_EXT = 0x8CE7;
542
543 static const int COLOR_ATTACHMENT8_EXT = 0x8CE8;
544
545 static const int COLOR_ATTACHMENT9_EXT = 0x8CE9;
546
547 static const int DRAW_BUFFER0_EXT = 0x8825;
548
549 static const int DRAW_BUFFER10_EXT = 0x882F;
550
551 static const int DRAW_BUFFER11_EXT = 0x8830;
552
553 static const int DRAW_BUFFER12_EXT = 0x8831;
554
555 static const int DRAW_BUFFER13_EXT = 0x8832;
556
557 static const int DRAW_BUFFER14_EXT = 0x8833;
558
559 static const int DRAW_BUFFER15_EXT = 0x8834;
560
561 static const int DRAW_BUFFER1_EXT = 0x8826;
562
563 static const int DRAW_BUFFER2_EXT = 0x8827;
564
565 static const int DRAW_BUFFER3_EXT = 0x8828;
566
567 static const int DRAW_BUFFER4_EXT = 0x8829;
568
569 static const int DRAW_BUFFER5_EXT = 0x882A;
570
571 static const int DRAW_BUFFER6_EXT = 0x882B;
572
573 static const int DRAW_BUFFER7_EXT = 0x882C;
574
575 static const int DRAW_BUFFER8_EXT = 0x882D;
576
577 static const int DRAW_BUFFER9_EXT = 0x882E;
578
579 static const int MAX_COLOR_ATTACHMENTS_EXT = 0x8CDF;
580
581 static const int MAX_DRAW_BUFFERS_EXT = 0x8824;
582
583 }
584 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
585 // for details. All rights reserved. Use of this source code is governed by a
586 // BSD-style license that can be found in the LICENSE file.
587
588 // WARNING: Do not edit - generated code.
589
590
591 @DocsEditable
592 @DomName('EXTTextureFilterAnisotropic')
593 class ExtTextureFilterAnisotropic extends NativeFieldWrapperClass1 {
594 ExtTextureFilterAnisotropic.internal();
595
596 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
597
598 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
599
600 }
601 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
602 // for details. All rights reserved. Use of this source code is governed by a
603 // BSD-style license that can be found in the LICENSE file.
604
605 // WARNING: Do not edit - generated code.
606
607
608 @DocsEditable
609 @DomName('WebGLFramebuffer')
610 class Framebuffer extends NativeFieldWrapperClass1 {
611 Framebuffer.internal();
612
613 }
614 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
615 // for details. All rights reserved. Use of this source code is governed by a
616 // BSD-style license that can be found in the LICENSE file.
617
618 // WARNING: Do not edit - generated code.
619
620
621 @DocsEditable
622 @DomName('WebGLLoseContext')
623 class LoseContext extends NativeFieldWrapperClass1 {
624 LoseContext.internal();
625
626 @DomName('WebGLLoseContext.loseContext')
627 @DocsEditable
628 void loseContext() native "WebGLLoseContext_loseContext_Callback";
629
630 @DomName('WebGLLoseContext.restoreContext')
631 @DocsEditable
632 void restoreContext() native "WebGLLoseContext_restoreContext_Callback";
633
634 }
635 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
636 // for details. All rights reserved. Use of this source code is governed by a
637 // BSD-style license that can be found in the LICENSE file.
638
639 // WARNING: Do not edit - generated code.
640
641
642 @DocsEditable
643 @DomName('OESElementIndexUint')
644 class OesElementIndexUint extends NativeFieldWrapperClass1 {
645 OesElementIndexUint.internal();
646
647 }
648 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
649 // for details. All rights reserved. Use of this source code is governed by a
650 // BSD-style license that can be found in the LICENSE file.
651
652 // WARNING: Do not edit - generated code.
653
654
655 @DocsEditable
656 @DomName('OESStandardDerivatives')
657 class OesStandardDerivatives extends NativeFieldWrapperClass1 {
658 OesStandardDerivatives.internal();
659
660 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
661
662 }
663 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
664 // for details. All rights reserved. Use of this source code is governed by a
665 // BSD-style license that can be found in the LICENSE file.
666
667 // WARNING: Do not edit - generated code.
668
669
670 @DocsEditable
671 @DomName('OESTextureFloat')
672 class OesTextureFloat extends NativeFieldWrapperClass1 {
673 OesTextureFloat.internal();
674
675 }
676 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
677 // for details. All rights reserved. Use of this source code is governed by a
678 // BSD-style license that can be found in the LICENSE file.
679
680 // WARNING: Do not edit - generated code.
681
682
683 @DocsEditable
684 @DomName('OESTextureHalfFloat')
685 class OesTextureHalfFloat extends NativeFieldWrapperClass1 {
686 OesTextureHalfFloat.internal();
687
688 }
689 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
690 // for details. All rights reserved. Use of this source code is governed by a
691 // BSD-style license that can be found in the LICENSE file.
692
693 // WARNING: Do not edit - generated code.
694
695
696 @DocsEditable
697 @DomName('OESVertexArrayObject')
698 class OesVertexArrayObject extends NativeFieldWrapperClass1 {
699 OesVertexArrayObject.internal();
700
701 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
702
703 @DomName('OESVertexArrayObject.bindVertexArrayOES')
704 @DocsEditable
705 void bindVertexArray(WebGLVertexArrayObject arrayObject) native "OESVertexArra yObject_bindVertexArrayOES_Callback";
706
707 @DomName('OESVertexArrayObject.createVertexArrayOES')
708 @DocsEditable
709 WebGLVertexArrayObject createVertexArray() native "OESVertexArrayObject_create VertexArrayOES_Callback";
710
711 @DomName('OESVertexArrayObject.deleteVertexArrayOES')
712 @DocsEditable
713 void deleteVertexArray(WebGLVertexArrayObject arrayObject) native "OESVertexAr rayObject_deleteVertexArrayOES_Callback";
714
715 @DomName('OESVertexArrayObject.isVertexArrayOES')
716 @DocsEditable
717 bool isVertexArray(WebGLVertexArrayObject arrayObject) native "OESVertexArrayO bject_isVertexArrayOES_Callback";
718
719 }
720 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
721 // for details. All rights reserved. Use of this source code is governed by a
722 // BSD-style license that can be found in the LICENSE file.
723
724 // WARNING: Do not edit - generated code.
725
726
727 @DocsEditable
728 @DomName('WebGLProgram')
729 class Program extends NativeFieldWrapperClass1 {
730 Program.internal();
731
732 }
733 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
734 // for details. All rights reserved. Use of this source code is governed by a
735 // BSD-style license that can be found in the LICENSE file.
736
737 // WARNING: Do not edit - generated code.
738
739
740 @DocsEditable
741 @DomName('WebGLRenderbuffer')
742 class Renderbuffer extends NativeFieldWrapperClass1 {
743 Renderbuffer.internal();
744
745 }
746 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
747 // for details. All rights reserved. Use of this source code is governed by a
748 // BSD-style license that can be found in the LICENSE file.
749
750 // WARNING: Do not edit - generated code.
751
752
753 @DocsEditable
754 @DomName('WebGLRenderingContext')
755 @SupportedBrowser(SupportedBrowser.CHROME)
756 @SupportedBrowser(SupportedBrowser.FIREFOX)
757 @Experimental
758 class RenderingContext extends CanvasRenderingContext {
759 RenderingContext.internal() : super.internal();
760
761 /// Checks if this type is supported on the current platform.
762 static bool get supported => true;
763
764 static const int ACTIVE_ATTRIBUTES = 0x8B89;
765
766 static const int ACTIVE_TEXTURE = 0x84E0;
767
768 static const int ACTIVE_UNIFORMS = 0x8B86;
769
770 static const int ALIASED_LINE_WIDTH_RANGE = 0x846E;
771
772 static const int ALIASED_POINT_SIZE_RANGE = 0x846D;
773
774 static const int ALPHA = 0x1906;
775
776 static const int ALPHA_BITS = 0x0D55;
777
778 static const int ALWAYS = 0x0207;
779
780 static const int ARRAY_BUFFER = 0x8892;
781
782 static const int ARRAY_BUFFER_BINDING = 0x8894;
783
784 static const int ATTACHED_SHADERS = 0x8B85;
785
786 static const int BACK = 0x0405;
787
788 static const int BLEND = 0x0BE2;
789
790 static const int BLEND_COLOR = 0x8005;
791
792 static const int BLEND_DST_ALPHA = 0x80CA;
793
794 static const int BLEND_DST_RGB = 0x80C8;
795
796 static const int BLEND_EQUATION = 0x8009;
797
798 static const int BLEND_EQUATION_ALPHA = 0x883D;
799
800 static const int BLEND_EQUATION_RGB = 0x8009;
801
802 static const int BLEND_SRC_ALPHA = 0x80CB;
803
804 static const int BLEND_SRC_RGB = 0x80C9;
805
806 static const int BLUE_BITS = 0x0D54;
807
808 static const int BOOL = 0x8B56;
809
810 static const int BOOL_VEC2 = 0x8B57;
811
812 static const int BOOL_VEC3 = 0x8B58;
813
814 static const int BOOL_VEC4 = 0x8B59;
815
816 static const int BROWSER_DEFAULT_WEBGL = 0x9244;
817
818 static const int BUFFER_SIZE = 0x8764;
819
820 static const int BUFFER_USAGE = 0x8765;
821
822 static const int BYTE = 0x1400;
823
824 static const int CCW = 0x0901;
825
826 static const int CLAMP_TO_EDGE = 0x812F;
827
828 static const int COLOR_ATTACHMENT0 = 0x8CE0;
829
830 static const int COLOR_BUFFER_BIT = 0x00004000;
831
832 static const int COLOR_CLEAR_VALUE = 0x0C22;
833
834 static const int COLOR_WRITEMASK = 0x0C23;
835
836 static const int COMPILE_STATUS = 0x8B81;
837
838 static const int COMPRESSED_TEXTURE_FORMATS = 0x86A3;
839
840 static const int CONSTANT_ALPHA = 0x8003;
841
842 static const int CONSTANT_COLOR = 0x8001;
843
844 static const int CONTEXT_LOST_WEBGL = 0x9242;
845
846 static const int CULL_FACE = 0x0B44;
847
848 static const int CULL_FACE_MODE = 0x0B45;
849
850 static const int CURRENT_PROGRAM = 0x8B8D;
851
852 static const int CURRENT_VERTEX_ATTRIB = 0x8626;
853
854 static const int CW = 0x0900;
855
856 static const int DECR = 0x1E03;
857
858 static const int DECR_WRAP = 0x8508;
859
860 static const int DELETE_STATUS = 0x8B80;
861
862 static const int DEPTH_ATTACHMENT = 0x8D00;
863
864 static const int DEPTH_BITS = 0x0D56;
865
866 static const int DEPTH_BUFFER_BIT = 0x00000100;
867
868 static const int DEPTH_CLEAR_VALUE = 0x0B73;
869
870 static const int DEPTH_COMPONENT = 0x1902;
871
872 static const int DEPTH_COMPONENT16 = 0x81A5;
873
874 static const int DEPTH_FUNC = 0x0B74;
875
876 static const int DEPTH_RANGE = 0x0B70;
877
878 static const int DEPTH_STENCIL = 0x84F9;
879
880 static const int DEPTH_STENCIL_ATTACHMENT = 0x821A;
881
882 static const int DEPTH_TEST = 0x0B71;
883
884 static const int DEPTH_WRITEMASK = 0x0B72;
885
886 static const int DITHER = 0x0BD0;
887
888 static const int DONT_CARE = 0x1100;
889
890 static const int DST_ALPHA = 0x0304;
891
892 static const int DST_COLOR = 0x0306;
893
894 static const int DYNAMIC_DRAW = 0x88E8;
895
896 static const int ELEMENT_ARRAY_BUFFER = 0x8893;
897
898 static const int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895;
899
900 static const int EQUAL = 0x0202;
901
902 static const int FASTEST = 0x1101;
903
904 static const int FLOAT = 0x1406;
905
906 static const int FLOAT_MAT2 = 0x8B5A;
907
908 static const int FLOAT_MAT3 = 0x8B5B;
909
910 static const int FLOAT_MAT4 = 0x8B5C;
911
912 static const int FLOAT_VEC2 = 0x8B50;
913
914 static const int FLOAT_VEC3 = 0x8B51;
915
916 static const int FLOAT_VEC4 = 0x8B52;
917
918 static const int FRAGMENT_SHADER = 0x8B30;
919
920 static const int FRAMEBUFFER = 0x8D40;
921
922 static const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1;
923
924 static const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0;
925
926 static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3;
927
928 static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2;
929
930 static const int FRAMEBUFFER_BINDING = 0x8CA6;
931
932 static const int FRAMEBUFFER_COMPLETE = 0x8CD5;
933
934 static const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6;
935
936 static const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9;
937
938 static const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7;
939
940 static const int FRAMEBUFFER_UNSUPPORTED = 0x8CDD;
941
942 static const int FRONT = 0x0404;
943
944 static const int FRONT_AND_BACK = 0x0408;
945
946 static const int FRONT_FACE = 0x0B46;
947
948 static const int FUNC_ADD = 0x8006;
949
950 static const int FUNC_REVERSE_SUBTRACT = 0x800B;
951
952 static const int FUNC_SUBTRACT = 0x800A;
953
954 static const int GENERATE_MIPMAP_HINT = 0x8192;
955
956 static const int GEQUAL = 0x0206;
957
958 static const int GREATER = 0x0204;
959
960 static const int GREEN_BITS = 0x0D53;
961
962 static const int HALF_FLOAT_OES = 0x8D61;
963
964 static const int HIGH_FLOAT = 0x8DF2;
965
966 static const int HIGH_INT = 0x8DF5;
967
968 static const int INCR = 0x1E02;
969
970 static const int INCR_WRAP = 0x8507;
971
972 static const int INT = 0x1404;
973
974 static const int INT_VEC2 = 0x8B53;
975
976 static const int INT_VEC3 = 0x8B54;
977
978 static const int INT_VEC4 = 0x8B55;
979
980 static const int INVALID_ENUM = 0x0500;
981
982 static const int INVALID_FRAMEBUFFER_OPERATION = 0x0506;
983
984 static const int INVALID_OPERATION = 0x0502;
985
986 static const int INVALID_VALUE = 0x0501;
987
988 static const int INVERT = 0x150A;
989
990 static const int KEEP = 0x1E00;
991
992 static const int LEQUAL = 0x0203;
993
994 static const int LESS = 0x0201;
995
996 static const int LINEAR = 0x2601;
997
998 static const int LINEAR_MIPMAP_LINEAR = 0x2703;
999
1000 static const int LINEAR_MIPMAP_NEAREST = 0x2701;
1001
1002 static const int LINES = 0x0001;
1003
1004 static const int LINE_LOOP = 0x0002;
1005
1006 static const int LINE_STRIP = 0x0003;
1007
1008 static const int LINE_WIDTH = 0x0B21;
1009
1010 static const int LINK_STATUS = 0x8B82;
1011
1012 static const int LOW_FLOAT = 0x8DF0;
1013
1014 static const int LOW_INT = 0x8DF3;
1015
1016 static const int LUMINANCE = 0x1909;
1017
1018 static const int LUMINANCE_ALPHA = 0x190A;
1019
1020 static const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D;
1021
1022 static const int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C;
1023
1024 static const int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD;
1025
1026 static const int MAX_RENDERBUFFER_SIZE = 0x84E8;
1027
1028 static const int MAX_TEXTURE_IMAGE_UNITS = 0x8872;
1029
1030 static const int MAX_TEXTURE_SIZE = 0x0D33;
1031
1032 static const int MAX_VARYING_VECTORS = 0x8DFC;
1033
1034 static const int MAX_VERTEX_ATTRIBS = 0x8869;
1035
1036 static const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C;
1037
1038 static const int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB;
1039
1040 static const int MAX_VIEWPORT_DIMS = 0x0D3A;
1041
1042 static const int MEDIUM_FLOAT = 0x8DF1;
1043
1044 static const int MEDIUM_INT = 0x8DF4;
1045
1046 static const int MIRRORED_REPEAT = 0x8370;
1047
1048 static const int NEAREST = 0x2600;
1049
1050 static const int NEAREST_MIPMAP_LINEAR = 0x2702;
1051
1052 static const int NEAREST_MIPMAP_NEAREST = 0x2700;
1053
1054 static const int NEVER = 0x0200;
1055
1056 static const int NICEST = 0x1102;
1057
1058 static const int NONE = 0;
1059
1060 static const int NOTEQUAL = 0x0205;
1061
1062 static const int NO_ERROR = 0;
1063
1064 static const int ONE = 1;
1065
1066 static const int ONE_MINUS_CONSTANT_ALPHA = 0x8004;
1067
1068 static const int ONE_MINUS_CONSTANT_COLOR = 0x8002;
1069
1070 static const int ONE_MINUS_DST_ALPHA = 0x0305;
1071
1072 static const int ONE_MINUS_DST_COLOR = 0x0307;
1073
1074 static const int ONE_MINUS_SRC_ALPHA = 0x0303;
1075
1076 static const int ONE_MINUS_SRC_COLOR = 0x0301;
1077
1078 static const int OUT_OF_MEMORY = 0x0505;
1079
1080 static const int PACK_ALIGNMENT = 0x0D05;
1081
1082 static const int POINTS = 0x0000;
1083
1084 static const int POLYGON_OFFSET_FACTOR = 0x8038;
1085
1086 static const int POLYGON_OFFSET_FILL = 0x8037;
1087
1088 static const int POLYGON_OFFSET_UNITS = 0x2A00;
1089
1090 static const int RED_BITS = 0x0D52;
1091
1092 static const int RENDERBUFFER = 0x8D41;
1093
1094 static const int RENDERBUFFER_ALPHA_SIZE = 0x8D53;
1095
1096 static const int RENDERBUFFER_BINDING = 0x8CA7;
1097
1098 static const int RENDERBUFFER_BLUE_SIZE = 0x8D52;
1099
1100 static const int RENDERBUFFER_DEPTH_SIZE = 0x8D54;
1101
1102 static const int RENDERBUFFER_GREEN_SIZE = 0x8D51;
1103
1104 static const int RENDERBUFFER_HEIGHT = 0x8D43;
1105
1106 static const int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44;
1107
1108 static const int RENDERBUFFER_RED_SIZE = 0x8D50;
1109
1110 static const int RENDERBUFFER_STENCIL_SIZE = 0x8D55;
1111
1112 static const int RENDERBUFFER_WIDTH = 0x8D42;
1113
1114 static const int RENDERER = 0x1F01;
1115
1116 static const int REPEAT = 0x2901;
1117
1118 static const int REPLACE = 0x1E01;
1119
1120 static const int RGB = 0x1907;
1121
1122 static const int RGB565 = 0x8D62;
1123
1124 static const int RGB5_A1 = 0x8057;
1125
1126 static const int RGBA = 0x1908;
1127
1128 static const int RGBA4 = 0x8056;
1129
1130 static const int SAMPLER_2D = 0x8B5E;
1131
1132 static const int SAMPLER_CUBE = 0x8B60;
1133
1134 static const int SAMPLES = 0x80A9;
1135
1136 static const int SAMPLE_ALPHA_TO_COVERAGE = 0x809E;
1137
1138 static const int SAMPLE_BUFFERS = 0x80A8;
1139
1140 static const int SAMPLE_COVERAGE = 0x80A0;
1141
1142 static const int SAMPLE_COVERAGE_INVERT = 0x80AB;
1143
1144 static const int SAMPLE_COVERAGE_VALUE = 0x80AA;
1145
1146 static const int SCISSOR_BOX = 0x0C10;
1147
1148 static const int SCISSOR_TEST = 0x0C11;
1149
1150 static const int SHADER_TYPE = 0x8B4F;
1151
1152 static const int SHADING_LANGUAGE_VERSION = 0x8B8C;
1153
1154 static const int SHORT = 0x1402;
1155
1156 static const int SRC_ALPHA = 0x0302;
1157
1158 static const int SRC_ALPHA_SATURATE = 0x0308;
1159
1160 static const int SRC_COLOR = 0x0300;
1161
1162 static const int STATIC_DRAW = 0x88E4;
1163
1164 static const int STENCIL_ATTACHMENT = 0x8D20;
1165
1166 static const int STENCIL_BACK_FAIL = 0x8801;
1167
1168 static const int STENCIL_BACK_FUNC = 0x8800;
1169
1170 static const int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802;
1171
1172 static const int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803;
1173
1174 static const int STENCIL_BACK_REF = 0x8CA3;
1175
1176 static const int STENCIL_BACK_VALUE_MASK = 0x8CA4;
1177
1178 static const int STENCIL_BACK_WRITEMASK = 0x8CA5;
1179
1180 static const int STENCIL_BITS = 0x0D57;
1181
1182 static const int STENCIL_BUFFER_BIT = 0x00000400;
1183
1184 static const int STENCIL_CLEAR_VALUE = 0x0B91;
1185
1186 static const int STENCIL_FAIL = 0x0B94;
1187
1188 static const int STENCIL_FUNC = 0x0B92;
1189
1190 static const int STENCIL_INDEX = 0x1901;
1191
1192 static const int STENCIL_INDEX8 = 0x8D48;
1193
1194 static const int STENCIL_PASS_DEPTH_FAIL = 0x0B95;
1195
1196 static const int STENCIL_PASS_DEPTH_PASS = 0x0B96;
1197
1198 static const int STENCIL_REF = 0x0B97;
1199
1200 static const int STENCIL_TEST = 0x0B90;
1201
1202 static const int STENCIL_VALUE_MASK = 0x0B93;
1203
1204 static const int STENCIL_WRITEMASK = 0x0B98;
1205
1206 static const int STREAM_DRAW = 0x88E0;
1207
1208 static const int SUBPIXEL_BITS = 0x0D50;
1209
1210 static const int TEXTURE = 0x1702;
1211
1212 static const int TEXTURE0 = 0x84C0;
1213
1214 static const int TEXTURE1 = 0x84C1;
1215
1216 static const int TEXTURE10 = 0x84CA;
1217
1218 static const int TEXTURE11 = 0x84CB;
1219
1220 static const int TEXTURE12 = 0x84CC;
1221
1222 static const int TEXTURE13 = 0x84CD;
1223
1224 static const int TEXTURE14 = 0x84CE;
1225
1226 static const int TEXTURE15 = 0x84CF;
1227
1228 static const int TEXTURE16 = 0x84D0;
1229
1230 static const int TEXTURE17 = 0x84D1;
1231
1232 static const int TEXTURE18 = 0x84D2;
1233
1234 static const int TEXTURE19 = 0x84D3;
1235
1236 static const int TEXTURE2 = 0x84C2;
1237
1238 static const int TEXTURE20 = 0x84D4;
1239
1240 static const int TEXTURE21 = 0x84D5;
1241
1242 static const int TEXTURE22 = 0x84D6;
1243
1244 static const int TEXTURE23 = 0x84D7;
1245
1246 static const int TEXTURE24 = 0x84D8;
1247
1248 static const int TEXTURE25 = 0x84D9;
1249
1250 static const int TEXTURE26 = 0x84DA;
1251
1252 static const int TEXTURE27 = 0x84DB;
1253
1254 static const int TEXTURE28 = 0x84DC;
1255
1256 static const int TEXTURE29 = 0x84DD;
1257
1258 static const int TEXTURE3 = 0x84C3;
1259
1260 static const int TEXTURE30 = 0x84DE;
1261
1262 static const int TEXTURE31 = 0x84DF;
1263
1264 static const int TEXTURE4 = 0x84C4;
1265
1266 static const int TEXTURE5 = 0x84C5;
1267
1268 static const int TEXTURE6 = 0x84C6;
1269
1270 static const int TEXTURE7 = 0x84C7;
1271
1272 static const int TEXTURE8 = 0x84C8;
1273
1274 static const int TEXTURE9 = 0x84C9;
1275
1276 static const int TEXTURE_2D = 0x0DE1;
1277
1278 static const int TEXTURE_BINDING_2D = 0x8069;
1279
1280 static const int TEXTURE_BINDING_CUBE_MAP = 0x8514;
1281
1282 static const int TEXTURE_CUBE_MAP = 0x8513;
1283
1284 static const int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516;
1285
1286 static const int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518;
1287
1288 static const int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A;
1289
1290 static const int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515;
1291
1292 static const int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517;
1293
1294 static const int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519;
1295
1296 static const int TEXTURE_MAG_FILTER = 0x2800;
1297
1298 static const int TEXTURE_MIN_FILTER = 0x2801;
1299
1300 static const int TEXTURE_WRAP_S = 0x2802;
1301
1302 static const int TEXTURE_WRAP_T = 0x2803;
1303
1304 static const int TRIANGLES = 0x0004;
1305
1306 static const int TRIANGLE_FAN = 0x0006;
1307
1308 static const int TRIANGLE_STRIP = 0x0005;
1309
1310 static const int UNPACK_ALIGNMENT = 0x0CF5;
1311
1312 static const int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
1313
1314 static const int UNPACK_FLIP_Y_WEBGL = 0x9240;
1315
1316 static const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241;
1317
1318 static const int UNSIGNED_BYTE = 0x1401;
1319
1320 static const int UNSIGNED_INT = 0x1405;
1321
1322 static const int UNSIGNED_SHORT = 0x1403;
1323
1324 static const int UNSIGNED_SHORT_4_4_4_4 = 0x8033;
1325
1326 static const int UNSIGNED_SHORT_5_5_5_1 = 0x8034;
1327
1328 static const int UNSIGNED_SHORT_5_6_5 = 0x8363;
1329
1330 static const int VALIDATE_STATUS = 0x8B83;
1331
1332 static const int VENDOR = 0x1F00;
1333
1334 static const int VERSION = 0x1F02;
1335
1336 static const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F;
1337
1338 static const int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622;
1339
1340 static const int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A;
1341
1342 static const int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645;
1343
1344 static const int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623;
1345
1346 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
1347
1348 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
1349
1350 static const int VERTEX_SHADER = 0x8B31;
1351
1352 static const int VIEWPORT = 0x0BA2;
1353
1354 static const int ZERO = 0;
1355
1356 @DomName('WebGLRenderingContext.drawingBufferHeight')
1357 @DocsEditable
1358 int get drawingBufferHeight native "WebGLRenderingContext_drawingBufferHeight_ Getter";
1359
1360 @DomName('WebGLRenderingContext.drawingBufferWidth')
1361 @DocsEditable
1362 int get drawingBufferWidth native "WebGLRenderingContext_drawingBufferWidth_Ge tter";
1363
1364 @DomName('WebGLRenderingContext.activeTexture')
1365 @DocsEditable
1366 void activeTexture(int texture) native "WebGLRenderingContext_activeTexture_Ca llback";
1367
1368 @DomName('WebGLRenderingContext.attachShader')
1369 @DocsEditable
1370 void attachShader(Program program, Shader shader) native "WebGLRenderingContex t_attachShader_Callback";
1371
1372 @DomName('WebGLRenderingContext.bindAttribLocation')
1373 @DocsEditable
1374 void bindAttribLocation(Program program, int index, String name) native "WebGL RenderingContext_bindAttribLocation_Callback";
1375
1376 @DomName('WebGLRenderingContext.bindBuffer')
1377 @DocsEditable
1378 void bindBuffer(int target, Buffer buffer) native "WebGLRenderingContext_bindB uffer_Callback";
1379
1380 @DomName('WebGLRenderingContext.bindFramebuffer')
1381 @DocsEditable
1382 void bindFramebuffer(int target, Framebuffer framebuffer) native "WebGLRenderi ngContext_bindFramebuffer_Callback";
1383
1384 @DomName('WebGLRenderingContext.bindRenderbuffer')
1385 @DocsEditable
1386 void bindRenderbuffer(int target, Renderbuffer renderbuffer) native "WebGLRend eringContext_bindRenderbuffer_Callback";
1387
1388 @DomName('WebGLRenderingContext.bindTexture')
1389 @DocsEditable
1390 void bindTexture(int target, Texture texture) native "WebGLRenderingContext_bi ndTexture_Callback";
1391
1392 @DomName('WebGLRenderingContext.blendColor')
1393 @DocsEditable
1394 void blendColor(num red, num green, num blue, num alpha) native "WebGLRenderin gContext_blendColor_Callback";
1395
1396 @DomName('WebGLRenderingContext.blendEquation')
1397 @DocsEditable
1398 void blendEquation(int mode) native "WebGLRenderingContext_blendEquation_Callb ack";
1399
1400 @DomName('WebGLRenderingContext.blendEquationSeparate')
1401 @DocsEditable
1402 void blendEquationSeparate(int modeRGB, int modeAlpha) native "WebGLRenderingC ontext_blendEquationSeparate_Callback";
1403
1404 @DomName('WebGLRenderingContext.blendFunc')
1405 @DocsEditable
1406 void blendFunc(int sfactor, int dfactor) native "WebGLRenderingContext_blendFu nc_Callback";
1407
1408 @DomName('WebGLRenderingContext.blendFuncSeparate')
1409 @DocsEditable
1410 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive "WebGLRenderingContext_blendFuncSeparate_Callback";
1411
1412 void bufferData(int target, data_OR_size, int usage) {
1413 if ((target is int || target == null) && (data_OR_size is ArrayBufferView || data_OR_size is _typeddata.TypedData || data_OR_size == null) && (usage is int || usage == null)) {
1414 _bufferData_1(target, data_OR_size, usage);
1415 return;
1416 }
1417 if ((target is int || target == null) && (data_OR_size is ArrayBuffer || dat a_OR_size is _typeddata.ByteBuffer || data_OR_size == null) && (usage is int || usage == null)) {
1418 _bufferData_2(target, data_OR_size, usage);
1419 return;
1420 }
1421 if ((target is int || target == null) && (data_OR_size is int || data_OR_siz e == null) && (usage is int || usage == null)) {
1422 _bufferData_3(target, data_OR_size, usage);
1423 return;
1424 }
1425 throw new ArgumentError("Incorrect number or type of arguments");
1426 }
1427
1428 @DomName('WebGLRenderingContext._bufferData_1')
1429 @DocsEditable
1430 void _bufferData_1(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_1_Callback";
1431
1432 @DomName('WebGLRenderingContext._bufferData_2')
1433 @DocsEditable
1434 void _bufferData_2(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_2_Callback";
1435
1436 @DomName('WebGLRenderingContext._bufferData_3')
1437 @DocsEditable
1438 void _bufferData_3(target, data_OR_size, usage) native "WebGLRenderingContext_ _bufferData_3_Callback";
1439
1440 void bufferSubData(int target, int offset, /*ArrayBuffer*/ data) {
1441 if ((target is int || target == null) && (offset is int || offset == null) & & (data is ArrayBufferView || data is _typeddata.TypedData || data == null)) {
1442 _bufferSubData_1(target, offset, data);
1443 return;
1444 }
1445 if ((target is int || target == null) && (offset is int || offset == null) & & (data is ArrayBuffer || data is _typeddata.ByteBuffer || data == null)) {
1446 _bufferSubData_2(target, offset, data);
1447 return;
1448 }
1449 throw new ArgumentError("Incorrect number or type of arguments");
1450 }
1451
1452 @DomName('WebGLRenderingContext._bufferSubData_1')
1453 @DocsEditable
1454 void _bufferSubData_1(target, offset, data) native "WebGLRenderingContext__buf ferSubData_1_Callback";
1455
1456 @DomName('WebGLRenderingContext._bufferSubData_2')
1457 @DocsEditable
1458 void _bufferSubData_2(target, offset, data) native "WebGLRenderingContext__buf ferSubData_2_Callback";
1459
1460 @DomName('WebGLRenderingContext.checkFramebufferStatus')
1461 @DocsEditable
1462 int checkFramebufferStatus(int target) native "WebGLRenderingContext_checkFram ebufferStatus_Callback";
1463
1464 @DomName('WebGLRenderingContext.clear')
1465 @DocsEditable
1466 void clear(int mask) native "WebGLRenderingContext_clear_Callback";
1467
1468 @DomName('WebGLRenderingContext.clearColor')
1469 @DocsEditable
1470 void clearColor(num red, num green, num blue, num alpha) native "WebGLRenderin gContext_clearColor_Callback";
1471
1472 @DomName('WebGLRenderingContext.clearDepth')
1473 @DocsEditable
1474 void clearDepth(num depth) native "WebGLRenderingContext_clearDepth_Callback";
1475
1476 @DomName('WebGLRenderingContext.clearStencil')
1477 @DocsEditable
1478 void clearStencil(int s) native "WebGLRenderingContext_clearStencil_Callback";
1479
1480 @DomName('WebGLRenderingContext.colorMask')
1481 @DocsEditable
1482 void colorMask(bool red, bool green, bool blue, bool alpha) native "WebGLRende ringContext_colorMask_Callback";
1483
1484 @DomName('WebGLRenderingContext.compileShader')
1485 @DocsEditable
1486 void compileShader(Shader shader) native "WebGLRenderingContext_compileShader_ Callback";
1487
1488 @DomName('WebGLRenderingContext.compressedTexImage2D')
1489 @DocsEditable
1490 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, /*ArrayBufferView*/ data) native "WebGLRenderingContex t_compressedTexImage2D_Callback";
1491
1492 @DomName('WebGLRenderingContext.compressedTexSubImage2D')
1493 @DocsEditable
1494 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, /*ArrayBufferView*/ data) native "WebGLRender ingContext_compressedTexSubImage2D_Callback";
1495
1496 @DomName('WebGLRenderingContext.copyTexImage2D')
1497 @DocsEditable
1498 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native "WebGLRenderingContext_copyTexImage2D_C allback";
1499
1500 @DomName('WebGLRenderingContext.copyTexSubImage2D')
1501 @DocsEditable
1502 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native "WebGLRenderingContext_copyTexSubImage2D_C allback";
1503
1504 @DomName('WebGLRenderingContext.createBuffer')
1505 @DocsEditable
1506 Buffer createBuffer() native "WebGLRenderingContext_createBuffer_Callback";
1507
1508 @DomName('WebGLRenderingContext.createFramebuffer')
1509 @DocsEditable
1510 Framebuffer createFramebuffer() native "WebGLRenderingContext_createFramebuffe r_Callback";
1511
1512 @DomName('WebGLRenderingContext.createProgram')
1513 @DocsEditable
1514 Program createProgram() native "WebGLRenderingContext_createProgram_Callback";
1515
1516 @DomName('WebGLRenderingContext.createRenderbuffer')
1517 @DocsEditable
1518 Renderbuffer createRenderbuffer() native "WebGLRenderingContext_createRenderbu ffer_Callback";
1519
1520 @DomName('WebGLRenderingContext.createShader')
1521 @DocsEditable
1522 Shader createShader(int type) native "WebGLRenderingContext_createShader_Callb ack";
1523
1524 @DomName('WebGLRenderingContext.createTexture')
1525 @DocsEditable
1526 Texture createTexture() native "WebGLRenderingContext_createTexture_Callback";
1527
1528 @DomName('WebGLRenderingContext.cullFace')
1529 @DocsEditable
1530 void cullFace(int mode) native "WebGLRenderingContext_cullFace_Callback";
1531
1532 @DomName('WebGLRenderingContext.deleteBuffer')
1533 @DocsEditable
1534 void deleteBuffer(Buffer buffer) native "WebGLRenderingContext_deleteBuffer_Ca llback";
1535
1536 @DomName('WebGLRenderingContext.deleteFramebuffer')
1537 @DocsEditable
1538 void deleteFramebuffer(Framebuffer framebuffer) native "WebGLRenderingContext_ deleteFramebuffer_Callback";
1539
1540 @DomName('WebGLRenderingContext.deleteProgram')
1541 @DocsEditable
1542 void deleteProgram(Program program) native "WebGLRenderingContext_deleteProgra m_Callback";
1543
1544 @DomName('WebGLRenderingContext.deleteRenderbuffer')
1545 @DocsEditable
1546 void deleteRenderbuffer(Renderbuffer renderbuffer) native "WebGLRenderingConte xt_deleteRenderbuffer_Callback";
1547
1548 @DomName('WebGLRenderingContext.deleteShader')
1549 @DocsEditable
1550 void deleteShader(Shader shader) native "WebGLRenderingContext_deleteShader_Ca llback";
1551
1552 @DomName('WebGLRenderingContext.deleteTexture')
1553 @DocsEditable
1554 void deleteTexture(Texture texture) native "WebGLRenderingContext_deleteTextur e_Callback";
1555
1556 @DomName('WebGLRenderingContext.depthFunc')
1557 @DocsEditable
1558 void depthFunc(int func) native "WebGLRenderingContext_depthFunc_Callback";
1559
1560 @DomName('WebGLRenderingContext.depthMask')
1561 @DocsEditable
1562 void depthMask(bool flag) native "WebGLRenderingContext_depthMask_Callback";
1563
1564 @DomName('WebGLRenderingContext.depthRange')
1565 @DocsEditable
1566 void depthRange(num zNear, num zFar) native "WebGLRenderingContext_depthRange_ Callback";
1567
1568 @DomName('WebGLRenderingContext.detachShader')
1569 @DocsEditable
1570 void detachShader(Program program, Shader shader) native "WebGLRenderingContex t_detachShader_Callback";
1571
1572 @DomName('WebGLRenderingContext.disable')
1573 @DocsEditable
1574 void disable(int cap) native "WebGLRenderingContext_disable_Callback";
1575
1576 @DomName('WebGLRenderingContext.disableVertexAttribArray')
1577 @DocsEditable
1578 void disableVertexAttribArray(int index) native "WebGLRenderingContext_disable VertexAttribArray_Callback";
1579
1580 @DomName('WebGLRenderingContext.drawArrays')
1581 @DocsEditable
1582 void drawArrays(int mode, int first, int count) native "WebGLRenderingContext_ drawArrays_Callback";
1583
1584 @DomName('WebGLRenderingContext.drawElements')
1585 @DocsEditable
1586 void drawElements(int mode, int count, int type, int offset) native "WebGLRend eringContext_drawElements_Callback";
1587
1588 @DomName('WebGLRenderingContext.enable')
1589 @DocsEditable
1590 void enable(int cap) native "WebGLRenderingContext_enable_Callback";
1591
1592 @DomName('WebGLRenderingContext.enableVertexAttribArray')
1593 @DocsEditable
1594 void enableVertexAttribArray(int index) native "WebGLRenderingContext_enableVe rtexAttribArray_Callback";
1595
1596 @DomName('WebGLRenderingContext.finish')
1597 @DocsEditable
1598 void finish() native "WebGLRenderingContext_finish_Callback";
1599
1600 @DomName('WebGLRenderingContext.flush')
1601 @DocsEditable
1602 void flush() native "WebGLRenderingContext_flush_Callback";
1603
1604 @DomName('WebGLRenderingContext.framebufferRenderbuffer')
1605 @DocsEditable
1606 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, Renderbuffer renderbuffer) native "WebGLRenderingContext_framebufferRenderbuf fer_Callback";
1607
1608 @DomName('WebGLRenderingContext.framebufferTexture2D')
1609 @DocsEditable
1610 void framebufferTexture2D(int target, int attachment, int textarget, Texture t exture, int level) native "WebGLRenderingContext_framebufferTexture2D_Callback";
1611
1612 @DomName('WebGLRenderingContext.frontFace')
1613 @DocsEditable
1614 void frontFace(int mode) native "WebGLRenderingContext_frontFace_Callback";
1615
1616 @DomName('WebGLRenderingContext.generateMipmap')
1617 @DocsEditable
1618 void generateMipmap(int target) native "WebGLRenderingContext_generateMipmap_C allback";
1619
1620 @DomName('WebGLRenderingContext.getActiveAttrib')
1621 @DocsEditable
1622 ActiveInfo getActiveAttrib(Program program, int index) native "WebGLRenderingC ontext_getActiveAttrib_Callback";
1623
1624 @DomName('WebGLRenderingContext.getActiveUniform')
1625 @DocsEditable
1626 ActiveInfo getActiveUniform(Program program, int index) native "WebGLRendering Context_getActiveUniform_Callback";
1627
1628 @DomName('WebGLRenderingContext.getAttachedShaders')
1629 @DocsEditable
1630 void getAttachedShaders(Program program) native "WebGLRenderingContext_getAtta chedShaders_Callback";
1631
1632 @DomName('WebGLRenderingContext.getAttribLocation')
1633 @DocsEditable
1634 int getAttribLocation(Program program, String name) native "WebGLRenderingCont ext_getAttribLocation_Callback";
1635
1636 @DomName('WebGLRenderingContext.getBufferParameter')
1637 @DocsEditable
1638 Object getBufferParameter(int target, int pname) native "WebGLRenderingContext _getBufferParameter_Callback";
1639
1640 @DomName('WebGLRenderingContext.getContextAttributes')
1641 @DocsEditable
1642 ContextAttributes getContextAttributes() native "WebGLRenderingContext_getCont extAttributes_Callback";
1643
1644 @DomName('WebGLRenderingContext.getError')
1645 @DocsEditable
1646 int getError() native "WebGLRenderingContext_getError_Callback";
1647
1648 @DomName('WebGLRenderingContext.getExtension')
1649 @DocsEditable
1650 Object getExtension(String name) native "WebGLRenderingContext_getExtension_Ca llback";
1651
1652 @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter')
1653 @DocsEditable
1654 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native "WebGLRenderingContext_getFramebufferAttachmentParameter_Callback";
1655
1656 @DomName('WebGLRenderingContext.getParameter')
1657 @DocsEditable
1658 Object getParameter(int pname) native "WebGLRenderingContext_getParameter_Call back";
1659
1660 @DomName('WebGLRenderingContext.getProgramInfoLog')
1661 @DocsEditable
1662 String getProgramInfoLog(Program program) native "WebGLRenderingContext_getPro gramInfoLog_Callback";
1663
1664 @DomName('WebGLRenderingContext.getProgramParameter')
1665 @DocsEditable
1666 Object getProgramParameter(Program program, int pname) native "WebGLRenderingC ontext_getProgramParameter_Callback";
1667
1668 @DomName('WebGLRenderingContext.getRenderbufferParameter')
1669 @DocsEditable
1670 Object getRenderbufferParameter(int target, int pname) native "WebGLRenderingC ontext_getRenderbufferParameter_Callback";
1671
1672 @DomName('WebGLRenderingContext.getShaderInfoLog')
1673 @DocsEditable
1674 String getShaderInfoLog(Shader shader) native "WebGLRenderingContext_getShader InfoLog_Callback";
1675
1676 @DomName('WebGLRenderingContext.getShaderParameter')
1677 @DocsEditable
1678 Object getShaderParameter(Shader shader, int pname) native "WebGLRenderingCont ext_getShaderParameter_Callback";
1679
1680 @DomName('WebGLRenderingContext.getShaderPrecisionFormat')
1681 @DocsEditable
1682 ShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisionty pe) native "WebGLRenderingContext_getShaderPrecisionFormat_Callback";
1683
1684 @DomName('WebGLRenderingContext.getShaderSource')
1685 @DocsEditable
1686 String getShaderSource(Shader shader) native "WebGLRenderingContext_getShaderS ource_Callback";
1687
1688 @DomName('WebGLRenderingContext.getSupportedExtensions')
1689 @DocsEditable
1690 List<String> getSupportedExtensions() native "WebGLRenderingContext_getSupport edExtensions_Callback";
1691
1692 @DomName('WebGLRenderingContext.getTexParameter')
1693 @DocsEditable
1694 Object getTexParameter(int target, int pname) native "WebGLRenderingContext_ge tTexParameter_Callback";
1695
1696 @DomName('WebGLRenderingContext.getUniform')
1697 @DocsEditable
1698 Object getUniform(Program program, UniformLocation location) native "WebGLRend eringContext_getUniform_Callback";
1699
1700 @DomName('WebGLRenderingContext.getUniformLocation')
1701 @DocsEditable
1702 UniformLocation getUniformLocation(Program program, String name) native "WebGL RenderingContext_getUniformLocation_Callback";
1703
1704 @DomName('WebGLRenderingContext.getVertexAttrib')
1705 @DocsEditable
1706 Object getVertexAttrib(int index, int pname) native "WebGLRenderingContext_get VertexAttrib_Callback";
1707
1708 @DomName('WebGLRenderingContext.getVertexAttribOffset')
1709 @DocsEditable
1710 int getVertexAttribOffset(int index, int pname) native "WebGLRenderingContext_ getVertexAttribOffset_Callback";
1711
1712 @DomName('WebGLRenderingContext.hint')
1713 @DocsEditable
1714 void hint(int target, int mode) native "WebGLRenderingContext_hint_Callback";
1715
1716 @DomName('WebGLRenderingContext.isBuffer')
1717 @DocsEditable
1718 bool isBuffer(Buffer buffer) native "WebGLRenderingContext_isBuffer_Callback";
1719
1720 @DomName('WebGLRenderingContext.isContextLost')
1721 @DocsEditable
1722 bool isContextLost() native "WebGLRenderingContext_isContextLost_Callback";
1723
1724 @DomName('WebGLRenderingContext.isEnabled')
1725 @DocsEditable
1726 bool isEnabled(int cap) native "WebGLRenderingContext_isEnabled_Callback";
1727
1728 @DomName('WebGLRenderingContext.isFramebuffer')
1729 @DocsEditable
1730 bool isFramebuffer(Framebuffer framebuffer) native "WebGLRenderingContext_isFr amebuffer_Callback";
1731
1732 @DomName('WebGLRenderingContext.isProgram')
1733 @DocsEditable
1734 bool isProgram(Program program) native "WebGLRenderingContext_isProgram_Callba ck";
1735
1736 @DomName('WebGLRenderingContext.isRenderbuffer')
1737 @DocsEditable
1738 bool isRenderbuffer(Renderbuffer renderbuffer) native "WebGLRenderingContext_i sRenderbuffer_Callback";
1739
1740 @DomName('WebGLRenderingContext.isShader')
1741 @DocsEditable
1742 bool isShader(Shader shader) native "WebGLRenderingContext_isShader_Callback";
1743
1744 @DomName('WebGLRenderingContext.isTexture')
1745 @DocsEditable
1746 bool isTexture(Texture texture) native "WebGLRenderingContext_isTexture_Callba ck";
1747
1748 @DomName('WebGLRenderingContext.lineWidth')
1749 @DocsEditable
1750 void lineWidth(num width) native "WebGLRenderingContext_lineWidth_Callback";
1751
1752 @DomName('WebGLRenderingContext.linkProgram')
1753 @DocsEditable
1754 void linkProgram(Program program) native "WebGLRenderingContext_linkProgram_Ca llback";
1755
1756 @DomName('WebGLRenderingContext.pixelStorei')
1757 @DocsEditable
1758 void pixelStorei(int pname, int param) native "WebGLRenderingContext_pixelStor ei_Callback";
1759
1760 @DomName('WebGLRenderingContext.polygonOffset')
1761 @DocsEditable
1762 void polygonOffset(num factor, num units) native "WebGLRenderingContext_polygo nOffset_Callback";
1763
1764 @DomName('WebGLRenderingContext.readPixels')
1765 @DocsEditable
1766 void readPixels(int x, int y, int width, int height, int format, int type, /*A rrayBufferView*/ pixels) native "WebGLRenderingContext_readPixels_Callback";
1767
1768 @DomName('WebGLRenderingContext.releaseShaderCompiler')
1769 @DocsEditable
1770 void releaseShaderCompiler() native "WebGLRenderingContext_releaseShaderCompil er_Callback";
1771
1772 @DomName('WebGLRenderingContext.renderbufferStorage')
1773 @DocsEditable
1774 void renderbufferStorage(int target, int internalformat, int width, int height ) native "WebGLRenderingContext_renderbufferStorage_Callback";
1775
1776 @DomName('WebGLRenderingContext.sampleCoverage')
1777 @DocsEditable
1778 void sampleCoverage(num value, bool invert) native "WebGLRenderingContext_samp leCoverage_Callback";
1779
1780 @DomName('WebGLRenderingContext.scissor')
1781 @DocsEditable
1782 void scissor(int x, int y, int width, int height) native "WebGLRenderingContex t_scissor_Callback";
1783
1784 @DomName('WebGLRenderingContext.shaderSource')
1785 @DocsEditable
1786 void shaderSource(Shader shader, String string) native "WebGLRenderingContext_ shaderSource_Callback";
1787
1788 @DomName('WebGLRenderingContext.stencilFunc')
1789 @DocsEditable
1790 void stencilFunc(int func, int ref, int mask) native "WebGLRenderingContext_st encilFunc_Callback";
1791
1792 @DomName('WebGLRenderingContext.stencilFuncSeparate')
1793 @DocsEditable
1794 void stencilFuncSeparate(int face, int func, int ref, int mask) native "WebGLR enderingContext_stencilFuncSeparate_Callback";
1795
1796 @DomName('WebGLRenderingContext.stencilMask')
1797 @DocsEditable
1798 void stencilMask(int mask) native "WebGLRenderingContext_stencilMask_Callback" ;
1799
1800 @DomName('WebGLRenderingContext.stencilMaskSeparate')
1801 @DocsEditable
1802 void stencilMaskSeparate(int face, int mask) native "WebGLRenderingContext_ste ncilMaskSeparate_Callback";
1803
1804 @DomName('WebGLRenderingContext.stencilOp')
1805 @DocsEditable
1806 void stencilOp(int fail, int zfail, int zpass) native "WebGLRenderingContext_s tencilOp_Callback";
1807
1808 @DomName('WebGLRenderingContext.stencilOpSeparate')
1809 @DocsEditable
1810 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native "WebGL RenderingContext_stencilOpSeparate_Callback";
1811
1812 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, /*ArrayBufferView*/ pixels]) {
1813 if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas_OR_ima ge_OR_pixels_OR_video == null) && (format is int || format == null) && (type is int || type == null) && (pixels is ArrayBufferView || pixels is _typeddata.Typed Data || pixels == null)) {
1814 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels);
1815 return;
1816 }
1817 if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_canvas_ OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
1818 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
1819 return;
1820 }
1821 if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_OR_canv as_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
1822 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
1823 return;
1824 }
1825 if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border_OR_can vas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
1826 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
1827 return;
1828 }
1829 if ((target is int || target == null) && (level is int || level == null) && (internalformat is int || internalformat == null) && (format_OR_width is int || format_OR_width == null) && (height_OR_type is int || height_OR_type == null) && (border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_OR_canv as_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
1830 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
1831 return;
1832 }
1833 throw new ArgumentError("Incorrect number or type of arguments");
1834 }
1835
1836 @DomName('WebGLRenderingContext._texImage2D_1')
1837 @DocsEditable
1838 void _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_t ype, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels) native "WebGLRenderingContext__texImage2D_1_Callback";
1839
1840 @DomName('WebGLRenderingContext._texImage2D_2')
1841 @DocsEditable
1842 void _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_t ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext __texImage2D_2_Callback";
1843
1844 @DomName('WebGLRenderingContext._texImage2D_3')
1845 @DocsEditable
1846 void _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_t ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext __texImage2D_3_Callback";
1847
1848 @DomName('WebGLRenderingContext._texImage2D_4')
1849 @DocsEditable
1850 void _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_t ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext __texImage2D_4_Callback";
1851
1852 @DomName('WebGLRenderingContext._texImage2D_5')
1853 @DocsEditable
1854 void _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_t ype, border_OR_canvas_OR_image_OR_pixels_OR_video) native "WebGLRenderingContext __texImage2D_5_Callback";
1855
1856 @DomName('WebGLRenderingContext.texParameterf')
1857 @DocsEditable
1858 void texParameterf(int target, int pname, num param) native "WebGLRenderingCon text_texParameterf_Callback";
1859
1860 @DomName('WebGLRenderingContext.texParameteri')
1861 @DocsEditable
1862 void texParameteri(int target, int pname, int param) native "WebGLRenderingCon text_texParameteri_Callback";
1863
1864 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, /*ArrayBufferView*/ pixels]) {
1865 if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (f ormat_OR_width is int || format_OR_width == null) && (height_OR_type is int || h eight_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is int | | canvas_OR_format_OR_image_OR_pixels_OR_video == null) && (type is int || type == null) && (pixels is ArrayBufferView || pixels is _typeddata.TypedData || pixe ls == null)) {
1866 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels);
1867 return;
1868 }
1869 if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (f ormat_OR_width is int || format_OR_width == null) && (height_OR_type is int || h eight_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is Image Data || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pix els) {
1870 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
1871 return;
1872 }
1873 if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (f ormat_OR_width is int || format_OR_width == null) && (height_OR_type is int || h eight_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is Image Element || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !? pixels) {
1874 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
1875 return;
1876 }
1877 if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (f ormat_OR_width is int || format_OR_width == null) && (height_OR_type is int || h eight_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is Canva sElement || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && ! ?pixels) {
1878 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
1879 return;
1880 }
1881 if ((target is int || target == null) && (level is int || level == null) && (xoffset is int || xoffset == null) && (yoffset is int || yoffset == null) && (f ormat_OR_width is int || format_OR_width == null) && (height_OR_type is int || h eight_OR_type == null) && (canvas_OR_format_OR_image_OR_pixels_OR_video is Video Element || canvas_OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !? pixels) {
1882 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
1883 return;
1884 }
1885 throw new ArgumentError("Incorrect number or type of arguments");
1886 }
1887
1888 @DomName('WebGLRenderingContext._texSubImage2D_1')
1889 @DocsEditable
1890 void _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height _OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels) native "We bGLRenderingContext__texSubImage2D_1_Callback";
1891
1892 @DomName('WebGLRenderingContext._texSubImage2D_2')
1893 @DocsEditable
1894 void _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height _OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingCo ntext__texSubImage2D_2_Callback";
1895
1896 @DomName('WebGLRenderingContext._texSubImage2D_3')
1897 @DocsEditable
1898 void _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height _OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingCo ntext__texSubImage2D_3_Callback";
1899
1900 @DomName('WebGLRenderingContext._texSubImage2D_4')
1901 @DocsEditable
1902 void _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height _OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingCo ntext__texSubImage2D_4_Callback";
1903
1904 @DomName('WebGLRenderingContext._texSubImage2D_5')
1905 @DocsEditable
1906 void _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height _OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native "WebGLRenderingCo ntext__texSubImage2D_5_Callback";
1907
1908 @DomName('WebGLRenderingContext.uniform1f')
1909 @DocsEditable
1910 void uniform1f(UniformLocation location, num x) native "WebGLRenderingContext_ uniform1f_Callback";
1911
1912 @DomName('WebGLRenderingContext.uniform1fv')
1913 @DocsEditable
1914 void uniform1fv(UniformLocation location, List<double> v) native "WebGLRenderi ngContext_uniform1fv_Callback";
1915
1916 @DomName('WebGLRenderingContext.uniform1i')
1917 @DocsEditable
1918 void uniform1i(UniformLocation location, int x) native "WebGLRenderingContext_ uniform1i_Callback";
1919
1920 @DomName('WebGLRenderingContext.uniform1iv')
1921 @DocsEditable
1922 void uniform1iv(UniformLocation location, List<int> v) native "WebGLRenderingC ontext_uniform1iv_Callback";
1923
1924 @DomName('WebGLRenderingContext.uniform2f')
1925 @DocsEditable
1926 void uniform2f(UniformLocation location, num x, num y) native "WebGLRenderingC ontext_uniform2f_Callback";
1927
1928 @DomName('WebGLRenderingContext.uniform2fv')
1929 @DocsEditable
1930 void uniform2fv(UniformLocation location, List<double> v) native "WebGLRenderi ngContext_uniform2fv_Callback";
1931
1932 @DomName('WebGLRenderingContext.uniform2i')
1933 @DocsEditable
1934 void uniform2i(UniformLocation location, int x, int y) native "WebGLRenderingC ontext_uniform2i_Callback";
1935
1936 @DomName('WebGLRenderingContext.uniform2iv')
1937 @DocsEditable
1938 void uniform2iv(UniformLocation location, List<int> v) native "WebGLRenderingC ontext_uniform2iv_Callback";
1939
1940 @DomName('WebGLRenderingContext.uniform3f')
1941 @DocsEditable
1942 void uniform3f(UniformLocation location, num x, num y, num z) native "WebGLRen deringContext_uniform3f_Callback";
1943
1944 @DomName('WebGLRenderingContext.uniform3fv')
1945 @DocsEditable
1946 void uniform3fv(UniformLocation location, List<double> v) native "WebGLRenderi ngContext_uniform3fv_Callback";
1947
1948 @DomName('WebGLRenderingContext.uniform3i')
1949 @DocsEditable
1950 void uniform3i(UniformLocation location, int x, int y, int z) native "WebGLRen deringContext_uniform3i_Callback";
1951
1952 @DomName('WebGLRenderingContext.uniform3iv')
1953 @DocsEditable
1954 void uniform3iv(UniformLocation location, List<int> v) native "WebGLRenderingC ontext_uniform3iv_Callback";
1955
1956 @DomName('WebGLRenderingContext.uniform4f')
1957 @DocsEditable
1958 void uniform4f(UniformLocation location, num x, num y, num z, num w) native "W ebGLRenderingContext_uniform4f_Callback";
1959
1960 @DomName('WebGLRenderingContext.uniform4fv')
1961 @DocsEditable
1962 void uniform4fv(UniformLocation location, List<double> v) native "WebGLRenderi ngContext_uniform4fv_Callback";
1963
1964 @DomName('WebGLRenderingContext.uniform4i')
1965 @DocsEditable
1966 void uniform4i(UniformLocation location, int x, int y, int z, int w) native "W ebGLRenderingContext_uniform4i_Callback";
1967
1968 @DomName('WebGLRenderingContext.uniform4iv')
1969 @DocsEditable
1970 void uniform4iv(UniformLocation location, List<int> v) native "WebGLRenderingC ontext_uniform4iv_Callback";
1971
1972 @DomName('WebGLRenderingContext.uniformMatrix2fv')
1973 @DocsEditable
1974 void uniformMatrix2fv(UniformLocation location, bool transpose, List<double> a rray) native "WebGLRenderingContext_uniformMatrix2fv_Callback";
1975
1976 @DomName('WebGLRenderingContext.uniformMatrix3fv')
1977 @DocsEditable
1978 void uniformMatrix3fv(UniformLocation location, bool transpose, List<double> a rray) native "WebGLRenderingContext_uniformMatrix3fv_Callback";
1979
1980 @DomName('WebGLRenderingContext.uniformMatrix4fv')
1981 @DocsEditable
1982 void uniformMatrix4fv(UniformLocation location, bool transpose, List<double> a rray) native "WebGLRenderingContext_uniformMatrix4fv_Callback";
1983
1984 @DomName('WebGLRenderingContext.useProgram')
1985 @DocsEditable
1986 void useProgram(Program program) native "WebGLRenderingContext_useProgram_Call back";
1987
1988 @DomName('WebGLRenderingContext.validateProgram')
1989 @DocsEditable
1990 void validateProgram(Program program) native "WebGLRenderingContext_validatePr ogram_Callback";
1991
1992 @DomName('WebGLRenderingContext.vertexAttrib1f')
1993 @DocsEditable
1994 void vertexAttrib1f(int indx, num x) native "WebGLRenderingContext_vertexAttri b1f_Callback";
1995
1996 @DomName('WebGLRenderingContext.vertexAttrib1fv')
1997 @DocsEditable
1998 void vertexAttrib1fv(int indx, List<double> values) native "WebGLRenderingCont ext_vertexAttrib1fv_Callback";
1999
2000 @DomName('WebGLRenderingContext.vertexAttrib2f')
2001 @DocsEditable
2002 void vertexAttrib2f(int indx, num x, num y) native "WebGLRenderingContext_vert exAttrib2f_Callback";
2003
2004 @DomName('WebGLRenderingContext.vertexAttrib2fv')
2005 @DocsEditable
2006 void vertexAttrib2fv(int indx, List<double> values) native "WebGLRenderingCont ext_vertexAttrib2fv_Callback";
2007
2008 @DomName('WebGLRenderingContext.vertexAttrib3f')
2009 @DocsEditable
2010 void vertexAttrib3f(int indx, num x, num y, num z) native "WebGLRenderingConte xt_vertexAttrib3f_Callback";
2011
2012 @DomName('WebGLRenderingContext.vertexAttrib3fv')
2013 @DocsEditable
2014 void vertexAttrib3fv(int indx, List<double> values) native "WebGLRenderingCont ext_vertexAttrib3fv_Callback";
2015
2016 @DomName('WebGLRenderingContext.vertexAttrib4f')
2017 @DocsEditable
2018 void vertexAttrib4f(int indx, num x, num y, num z, num w) native "WebGLRenderi ngContext_vertexAttrib4f_Callback";
2019
2020 @DomName('WebGLRenderingContext.vertexAttrib4fv')
2021 @DocsEditable
2022 void vertexAttrib4fv(int indx, List<double> values) native "WebGLRenderingCont ext_vertexAttrib4fv_Callback";
2023
2024 @DomName('WebGLRenderingContext.vertexAttribPointer')
2025 @DocsEditable
2026 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native "WebGLRenderingContext_vertexAttribPointer_Callback";
2027
2028 @DomName('WebGLRenderingContext.viewport')
2029 @DocsEditable
2030 void viewport(int x, int y, int width, int height) native "WebGLRenderingConte xt_viewport_Callback";
2031
2032 }
2033 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2034 // for details. All rights reserved. Use of this source code is governed by a
2035 // BSD-style license that can be found in the LICENSE file.
2036
2037 // WARNING: Do not edit - generated code.
2038
2039
2040 @DocsEditable
2041 @DomName('WebGLShader')
2042 class Shader extends NativeFieldWrapperClass1 {
2043 Shader.internal();
2044
2045 }
2046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2047 // for details. All rights reserved. Use of this source code is governed by a
2048 // BSD-style license that can be found in the LICENSE file.
2049
2050 // WARNING: Do not edit - generated code.
2051
2052
2053 @DocsEditable
2054 @DomName('WebGLShaderPrecisionFormat')
2055 class ShaderPrecisionFormat extends NativeFieldWrapperClass1 {
2056 ShaderPrecisionFormat.internal();
2057
2058 @DomName('WebGLShaderPrecisionFormat.precision')
2059 @DocsEditable
2060 int get precision native "WebGLShaderPrecisionFormat_precision_Getter";
2061
2062 @DomName('WebGLShaderPrecisionFormat.rangeMax')
2063 @DocsEditable
2064 int get rangeMax native "WebGLShaderPrecisionFormat_rangeMax_Getter";
2065
2066 @DomName('WebGLShaderPrecisionFormat.rangeMin')
2067 @DocsEditable
2068 int get rangeMin native "WebGLShaderPrecisionFormat_rangeMin_Getter";
2069
2070 }
2071 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2072 // for details. All rights reserved. Use of this source code is governed by a
2073 // BSD-style license that can be found in the LICENSE file.
2074
2075 // WARNING: Do not edit - generated code.
2076
2077
2078 @DocsEditable
2079 @DomName('WebGLTexture')
2080 class Texture extends NativeFieldWrapperClass1 {
2081 Texture.internal();
2082
2083 }
2084 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2085 // for details. All rights reserved. Use of this source code is governed by a
2086 // BSD-style license that can be found in the LICENSE file.
2087
2088 // WARNING: Do not edit - generated code.
2089
2090
2091 @DocsEditable
2092 @DomName('WebGLUniformLocation')
2093 class UniformLocation extends NativeFieldWrapperClass1 {
2094 UniformLocation.internal();
2095
2096 }
2097 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2098 // for details. All rights reserved. Use of this source code is governed by a
2099 // BSD-style license that can be found in the LICENSE file.
2100
2101 // WARNING: Do not edit - generated code.
2102
2103
2104 @DocsEditable
2105 @DomName('WebGLVertexArrayObjectOES')
2106 class WebGLVertexArrayObject extends NativeFieldWrapperClass1 {
2107 WebGLVertexArrayObject.internal();
2108
2109 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698