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

Side by Side Diff: sdk/lib/web_gl/dart2js/web_gl_dart2js.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:collection';
4 import 'dart:html';
5 import 'dart:html_common';
6 import 'dart:_js_helper' show Creates, Returns, convertDartClosureToJS;
7 import 'dart:_foreign_helper' show JS;
8 // DO NOT EDIT - unless you are editing documentation as per:
9 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
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
322 @DocsEditable
323 @DomName('WebGLActiveInfo')
324 class ActiveInfo native "*WebGLActiveInfo" {
325
326 @DomName('WebGLActiveInfo.name')
327 @DocsEditable
328 final String name;
329
330 @DomName('WebGLActiveInfo.size')
331 @DocsEditable
332 final int size;
333
334 @DomName('WebGLActiveInfo.type')
335 @DocsEditable
336 final int type;
337 }
338 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
339 // for details. All rights reserved. Use of this source code is governed by a
340 // BSD-style license that can be found in the LICENSE file.
341
342
343 @DocsEditable
344 @DomName('WebGLBuffer')
345 class Buffer native "*WebGLBuffer" {
346 }
347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
348 // for details. All rights reserved. Use of this source code is governed by a
349 // BSD-style license that can be found in the LICENSE file.
350
351
352 @DocsEditable
353 @DomName('WebGLCompressedTextureS3TC')
354 class CompressedTextureS3TC native "*WebGLCompressedTextureS3TC" {
355
356 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
357
358 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
359
360 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
361
362 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
363 }
364 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
365 // for details. All rights reserved. Use of this source code is governed by a
366 // BSD-style license that can be found in the LICENSE file.
367
368
369 @DocsEditable
370 @DomName('WebGLContextAttributes')
371 class ContextAttributes native "*WebGLContextAttributes" {
372
373 @DomName('WebGLContextAttributes.alpha')
374 @DocsEditable
375 bool alpha;
376
377 @DomName('WebGLContextAttributes.antialias')
378 @DocsEditable
379 bool antialias;
380
381 @DomName('WebGLContextAttributes.depth')
382 @DocsEditable
383 bool depth;
384
385 @DomName('WebGLContextAttributes.premultipliedAlpha')
386 @DocsEditable
387 bool premultipliedAlpha;
388
389 @DomName('WebGLContextAttributes.preserveDrawingBuffer')
390 @DocsEditable
391 bool preserveDrawingBuffer;
392
393 @DomName('WebGLContextAttributes.stencil')
394 @DocsEditable
395 bool stencil;
396 }
397 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
398 // for details. All rights reserved. Use of this source code is governed by a
399 // BSD-style license that can be found in the LICENSE file.
400
401
402 @DocsEditable
403 @DomName('WebGLContextEvent')
404 class ContextEvent extends Event native "*WebGLContextEvent" {
405
406 @DomName('WebGLContextEvent.statusMessage')
407 @DocsEditable
408 final String statusMessage;
409 }
410 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
411 // for details. All rights reserved. Use of this source code is governed by a
412 // BSD-style license that can be found in the LICENSE file.
413
414
415 @DocsEditable
416 @DomName('WebGLDebugRendererInfo')
417 class DebugRendererInfo native "*WebGLDebugRendererInfo" {
418
419 static const int UNMASKED_RENDERER_WEBGL = 0x9246;
420
421 static const int UNMASKED_VENDOR_WEBGL = 0x9245;
422 }
423 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
424 // for details. All rights reserved. Use of this source code is governed by a
425 // BSD-style license that can be found in the LICENSE file.
426
427
428 @DocsEditable
429 @DomName('WebGLDebugShaders')
430 class DebugShaders native "*WebGLDebugShaders" {
431
432 @DomName('WebGLDebugShaders.getTranslatedShaderSource')
433 @DocsEditable
434 String getTranslatedShaderSource(Shader shader) native;
435 }
436 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
437 // for details. All rights reserved. Use of this source code is governed by a
438 // BSD-style license that can be found in the LICENSE file.
439
440
441 @DocsEditable
442 @DomName('WebGLDepthTexture')
443 class DepthTexture native "*WebGLDepthTexture" {
444
445 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA;
446 }
447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
448 // for details. All rights reserved. Use of this source code is governed by a
449 // BSD-style license that can be found in the LICENSE file.
450
451
452 @DocsEditable
453 @DomName('EXTDrawBuffers')
454 class ExtDrawBuffers native "*EXTDrawBuffers" {
455
456 static const int COLOR_ATTACHMENT0_EXT = 0x8CE0;
457
458 static const int COLOR_ATTACHMENT10_EXT = 0x8CEA;
459
460 static const int COLOR_ATTACHMENT11_EXT = 0x8CEB;
461
462 static const int COLOR_ATTACHMENT12_EXT = 0x8CEC;
463
464 static const int COLOR_ATTACHMENT13_EXT = 0x8CED;
465
466 static const int COLOR_ATTACHMENT14_EXT = 0x8CEE;
467
468 static const int COLOR_ATTACHMENT15_EXT = 0x8CEF;
469
470 static const int COLOR_ATTACHMENT1_EXT = 0x8CE1;
471
472 static const int COLOR_ATTACHMENT2_EXT = 0x8CE2;
473
474 static const int COLOR_ATTACHMENT3_EXT = 0x8CE3;
475
476 static const int COLOR_ATTACHMENT4_EXT = 0x8CE4;
477
478 static const int COLOR_ATTACHMENT5_EXT = 0x8CE5;
479
480 static const int COLOR_ATTACHMENT6_EXT = 0x8CE6;
481
482 static const int COLOR_ATTACHMENT7_EXT = 0x8CE7;
483
484 static const int COLOR_ATTACHMENT8_EXT = 0x8CE8;
485
486 static const int COLOR_ATTACHMENT9_EXT = 0x8CE9;
487
488 static const int DRAW_BUFFER0_EXT = 0x8825;
489
490 static const int DRAW_BUFFER10_EXT = 0x882F;
491
492 static const int DRAW_BUFFER11_EXT = 0x8830;
493
494 static const int DRAW_BUFFER12_EXT = 0x8831;
495
496 static const int DRAW_BUFFER13_EXT = 0x8832;
497
498 static const int DRAW_BUFFER14_EXT = 0x8833;
499
500 static const int DRAW_BUFFER15_EXT = 0x8834;
501
502 static const int DRAW_BUFFER1_EXT = 0x8826;
503
504 static const int DRAW_BUFFER2_EXT = 0x8827;
505
506 static const int DRAW_BUFFER3_EXT = 0x8828;
507
508 static const int DRAW_BUFFER4_EXT = 0x8829;
509
510 static const int DRAW_BUFFER5_EXT = 0x882A;
511
512 static const int DRAW_BUFFER6_EXT = 0x882B;
513
514 static const int DRAW_BUFFER7_EXT = 0x882C;
515
516 static const int DRAW_BUFFER8_EXT = 0x882D;
517
518 static const int DRAW_BUFFER9_EXT = 0x882E;
519
520 static const int MAX_COLOR_ATTACHMENTS_EXT = 0x8CDF;
521
522 static const int MAX_DRAW_BUFFERS_EXT = 0x8824;
523 }
524 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
525 // for details. All rights reserved. Use of this source code is governed by a
526 // BSD-style license that can be found in the LICENSE file.
527
528
529 @DocsEditable
530 @DomName('EXTTextureFilterAnisotropic')
531 class ExtTextureFilterAnisotropic native "*EXTTextureFilterAnisotropic" {
532
533 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
534
535 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
536 }
537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
538 // for details. All rights reserved. Use of this source code is governed by a
539 // BSD-style license that can be found in the LICENSE file.
540
541
542 @DocsEditable
543 @DomName('WebGLFramebuffer')
544 class Framebuffer native "*WebGLFramebuffer" {
545 }
546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
547 // for details. All rights reserved. Use of this source code is governed by a
548 // BSD-style license that can be found in the LICENSE file.
549
550
551 @DocsEditable
552 @DomName('WebGLLoseContext')
553 class LoseContext native "*WebGLLoseContext" {
554
555 @DomName('WebGLLoseContext.loseContext')
556 @DocsEditable
557 void loseContext() native;
558
559 @DomName('WebGLLoseContext.restoreContext')
560 @DocsEditable
561 void restoreContext() native;
562 }
563 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
564 // for details. All rights reserved. Use of this source code is governed by a
565 // BSD-style license that can be found in the LICENSE file.
566
567
568 @DocsEditable
569 @DomName('OESElementIndexUint')
570 class OesElementIndexUint native "*OESElementIndexUint" {
571 }
572 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
573 // for details. All rights reserved. Use of this source code is governed by a
574 // BSD-style license that can be found in the LICENSE file.
575
576
577 @DocsEditable
578 @DomName('OESStandardDerivatives')
579 class OesStandardDerivatives native "*OESStandardDerivatives" {
580
581 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
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('OESTextureFloat')
590 class OesTextureFloat native "*OESTextureFloat" {
591 }
592 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
593 // for details. All rights reserved. Use of this source code is governed by a
594 // BSD-style license that can be found in the LICENSE file.
595
596
597 @DocsEditable
598 @DomName('OESTextureHalfFloat')
599 class OesTextureHalfFloat native "*OESTextureHalfFloat" {
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
606 @DocsEditable
607 @DomName('OESVertexArrayObject')
608 class OesVertexArrayObject native "*OESVertexArrayObject" {
609
610 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
611
612 @JSName('bindVertexArrayOES')
613 @DomName('OESVertexArrayObject.bindVertexArrayOES')
614 @DocsEditable
615 void bindVertexArray(WebGLVertexArrayObject arrayObject) native;
616
617 @JSName('createVertexArrayOES')
618 @DomName('OESVertexArrayObject.createVertexArrayOES')
619 @DocsEditable
620 WebGLVertexArrayObject createVertexArray() native;
621
622 @JSName('deleteVertexArrayOES')
623 @DomName('OESVertexArrayObject.deleteVertexArrayOES')
624 @DocsEditable
625 void deleteVertexArray(WebGLVertexArrayObject arrayObject) native;
626
627 @JSName('isVertexArrayOES')
628 @DomName('OESVertexArrayObject.isVertexArrayOES')
629 @DocsEditable
630 bool isVertexArray(WebGLVertexArrayObject arrayObject) native;
631 }
632 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
633 // for details. All rights reserved. Use of this source code is governed by a
634 // BSD-style license that can be found in the LICENSE file.
635
636
637 @DocsEditable
638 @DomName('WebGLProgram')
639 class Program native "*WebGLProgram" {
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('WebGLRenderbuffer')
648 class Renderbuffer native "*WebGLRenderbuffer" {
649 }
650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
651 // for details. All rights reserved. Use of this source code is governed by a
652 // BSD-style license that can be found in the LICENSE file.
653
654
655 @DocsEditable
656 @DomName('WebGLRenderingContext')
657 @SupportedBrowser(SupportedBrowser.CHROME)
658 @SupportedBrowser(SupportedBrowser.FIREFOX)
659 @Experimental
660 class RenderingContext extends CanvasRenderingContext native "*WebGLRenderingCon text" {
661
662 /// Checks if this type is supported on the current platform.
663 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)');
664
665 static const int ACTIVE_ATTRIBUTES = 0x8B89;
666
667 static const int ACTIVE_TEXTURE = 0x84E0;
668
669 static const int ACTIVE_UNIFORMS = 0x8B86;
670
671 static const int ALIASED_LINE_WIDTH_RANGE = 0x846E;
672
673 static const int ALIASED_POINT_SIZE_RANGE = 0x846D;
674
675 static const int ALPHA = 0x1906;
676
677 static const int ALPHA_BITS = 0x0D55;
678
679 static const int ALWAYS = 0x0207;
680
681 static const int ARRAY_BUFFER = 0x8892;
682
683 static const int ARRAY_BUFFER_BINDING = 0x8894;
684
685 static const int ATTACHED_SHADERS = 0x8B85;
686
687 static const int BACK = 0x0405;
688
689 static const int BLEND = 0x0BE2;
690
691 static const int BLEND_COLOR = 0x8005;
692
693 static const int BLEND_DST_ALPHA = 0x80CA;
694
695 static const int BLEND_DST_RGB = 0x80C8;
696
697 static const int BLEND_EQUATION = 0x8009;
698
699 static const int BLEND_EQUATION_ALPHA = 0x883D;
700
701 static const int BLEND_EQUATION_RGB = 0x8009;
702
703 static const int BLEND_SRC_ALPHA = 0x80CB;
704
705 static const int BLEND_SRC_RGB = 0x80C9;
706
707 static const int BLUE_BITS = 0x0D54;
708
709 static const int BOOL = 0x8B56;
710
711 static const int BOOL_VEC2 = 0x8B57;
712
713 static const int BOOL_VEC3 = 0x8B58;
714
715 static const int BOOL_VEC4 = 0x8B59;
716
717 static const int BROWSER_DEFAULT_WEBGL = 0x9244;
718
719 static const int BUFFER_SIZE = 0x8764;
720
721 static const int BUFFER_USAGE = 0x8765;
722
723 static const int BYTE = 0x1400;
724
725 static const int CCW = 0x0901;
726
727 static const int CLAMP_TO_EDGE = 0x812F;
728
729 static const int COLOR_ATTACHMENT0 = 0x8CE0;
730
731 static const int COLOR_BUFFER_BIT = 0x00004000;
732
733 static const int COLOR_CLEAR_VALUE = 0x0C22;
734
735 static const int COLOR_WRITEMASK = 0x0C23;
736
737 static const int COMPILE_STATUS = 0x8B81;
738
739 static const int COMPRESSED_TEXTURE_FORMATS = 0x86A3;
740
741 static const int CONSTANT_ALPHA = 0x8003;
742
743 static const int CONSTANT_COLOR = 0x8001;
744
745 static const int CONTEXT_LOST_WEBGL = 0x9242;
746
747 static const int CULL_FACE = 0x0B44;
748
749 static const int CULL_FACE_MODE = 0x0B45;
750
751 static const int CURRENT_PROGRAM = 0x8B8D;
752
753 static const int CURRENT_VERTEX_ATTRIB = 0x8626;
754
755 static const int CW = 0x0900;
756
757 static const int DECR = 0x1E03;
758
759 static const int DECR_WRAP = 0x8508;
760
761 static const int DELETE_STATUS = 0x8B80;
762
763 static const int DEPTH_ATTACHMENT = 0x8D00;
764
765 static const int DEPTH_BITS = 0x0D56;
766
767 static const int DEPTH_BUFFER_BIT = 0x00000100;
768
769 static const int DEPTH_CLEAR_VALUE = 0x0B73;
770
771 static const int DEPTH_COMPONENT = 0x1902;
772
773 static const int DEPTH_COMPONENT16 = 0x81A5;
774
775 static const int DEPTH_FUNC = 0x0B74;
776
777 static const int DEPTH_RANGE = 0x0B70;
778
779 static const int DEPTH_STENCIL = 0x84F9;
780
781 static const int DEPTH_STENCIL_ATTACHMENT = 0x821A;
782
783 static const int DEPTH_TEST = 0x0B71;
784
785 static const int DEPTH_WRITEMASK = 0x0B72;
786
787 static const int DITHER = 0x0BD0;
788
789 static const int DONT_CARE = 0x1100;
790
791 static const int DST_ALPHA = 0x0304;
792
793 static const int DST_COLOR = 0x0306;
794
795 static const int DYNAMIC_DRAW = 0x88E8;
796
797 static const int ELEMENT_ARRAY_BUFFER = 0x8893;
798
799 static const int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895;
800
801 static const int EQUAL = 0x0202;
802
803 static const int FASTEST = 0x1101;
804
805 static const int FLOAT = 0x1406;
806
807 static const int FLOAT_MAT2 = 0x8B5A;
808
809 static const int FLOAT_MAT3 = 0x8B5B;
810
811 static const int FLOAT_MAT4 = 0x8B5C;
812
813 static const int FLOAT_VEC2 = 0x8B50;
814
815 static const int FLOAT_VEC3 = 0x8B51;
816
817 static const int FLOAT_VEC4 = 0x8B52;
818
819 static const int FRAGMENT_SHADER = 0x8B30;
820
821 static const int FRAMEBUFFER = 0x8D40;
822
823 static const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1;
824
825 static const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0;
826
827 static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3;
828
829 static const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2;
830
831 static const int FRAMEBUFFER_BINDING = 0x8CA6;
832
833 static const int FRAMEBUFFER_COMPLETE = 0x8CD5;
834
835 static const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6;
836
837 static const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9;
838
839 static const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7;
840
841 static const int FRAMEBUFFER_UNSUPPORTED = 0x8CDD;
842
843 static const int FRONT = 0x0404;
844
845 static const int FRONT_AND_BACK = 0x0408;
846
847 static const int FRONT_FACE = 0x0B46;
848
849 static const int FUNC_ADD = 0x8006;
850
851 static const int FUNC_REVERSE_SUBTRACT = 0x800B;
852
853 static const int FUNC_SUBTRACT = 0x800A;
854
855 static const int GENERATE_MIPMAP_HINT = 0x8192;
856
857 static const int GEQUAL = 0x0206;
858
859 static const int GREATER = 0x0204;
860
861 static const int GREEN_BITS = 0x0D53;
862
863 static const int HALF_FLOAT_OES = 0x8D61;
864
865 static const int HIGH_FLOAT = 0x8DF2;
866
867 static const int HIGH_INT = 0x8DF5;
868
869 static const int INCR = 0x1E02;
870
871 static const int INCR_WRAP = 0x8507;
872
873 static const int INT = 0x1404;
874
875 static const int INT_VEC2 = 0x8B53;
876
877 static const int INT_VEC3 = 0x8B54;
878
879 static const int INT_VEC4 = 0x8B55;
880
881 static const int INVALID_ENUM = 0x0500;
882
883 static const int INVALID_FRAMEBUFFER_OPERATION = 0x0506;
884
885 static const int INVALID_OPERATION = 0x0502;
886
887 static const int INVALID_VALUE = 0x0501;
888
889 static const int INVERT = 0x150A;
890
891 static const int KEEP = 0x1E00;
892
893 static const int LEQUAL = 0x0203;
894
895 static const int LESS = 0x0201;
896
897 static const int LINEAR = 0x2601;
898
899 static const int LINEAR_MIPMAP_LINEAR = 0x2703;
900
901 static const int LINEAR_MIPMAP_NEAREST = 0x2701;
902
903 static const int LINES = 0x0001;
904
905 static const int LINE_LOOP = 0x0002;
906
907 static const int LINE_STRIP = 0x0003;
908
909 static const int LINE_WIDTH = 0x0B21;
910
911 static const int LINK_STATUS = 0x8B82;
912
913 static const int LOW_FLOAT = 0x8DF0;
914
915 static const int LOW_INT = 0x8DF3;
916
917 static const int LUMINANCE = 0x1909;
918
919 static const int LUMINANCE_ALPHA = 0x190A;
920
921 static const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D;
922
923 static const int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C;
924
925 static const int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD;
926
927 static const int MAX_RENDERBUFFER_SIZE = 0x84E8;
928
929 static const int MAX_TEXTURE_IMAGE_UNITS = 0x8872;
930
931 static const int MAX_TEXTURE_SIZE = 0x0D33;
932
933 static const int MAX_VARYING_VECTORS = 0x8DFC;
934
935 static const int MAX_VERTEX_ATTRIBS = 0x8869;
936
937 static const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C;
938
939 static const int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB;
940
941 static const int MAX_VIEWPORT_DIMS = 0x0D3A;
942
943 static const int MEDIUM_FLOAT = 0x8DF1;
944
945 static const int MEDIUM_INT = 0x8DF4;
946
947 static const int MIRRORED_REPEAT = 0x8370;
948
949 static const int NEAREST = 0x2600;
950
951 static const int NEAREST_MIPMAP_LINEAR = 0x2702;
952
953 static const int NEAREST_MIPMAP_NEAREST = 0x2700;
954
955 static const int NEVER = 0x0200;
956
957 static const int NICEST = 0x1102;
958
959 static const int NONE = 0;
960
961 static const int NOTEQUAL = 0x0205;
962
963 static const int NO_ERROR = 0;
964
965 static const int ONE = 1;
966
967 static const int ONE_MINUS_CONSTANT_ALPHA = 0x8004;
968
969 static const int ONE_MINUS_CONSTANT_COLOR = 0x8002;
970
971 static const int ONE_MINUS_DST_ALPHA = 0x0305;
972
973 static const int ONE_MINUS_DST_COLOR = 0x0307;
974
975 static const int ONE_MINUS_SRC_ALPHA = 0x0303;
976
977 static const int ONE_MINUS_SRC_COLOR = 0x0301;
978
979 static const int OUT_OF_MEMORY = 0x0505;
980
981 static const int PACK_ALIGNMENT = 0x0D05;
982
983 static const int POINTS = 0x0000;
984
985 static const int POLYGON_OFFSET_FACTOR = 0x8038;
986
987 static const int POLYGON_OFFSET_FILL = 0x8037;
988
989 static const int POLYGON_OFFSET_UNITS = 0x2A00;
990
991 static const int RED_BITS = 0x0D52;
992
993 static const int RENDERBUFFER = 0x8D41;
994
995 static const int RENDERBUFFER_ALPHA_SIZE = 0x8D53;
996
997 static const int RENDERBUFFER_BINDING = 0x8CA7;
998
999 static const int RENDERBUFFER_BLUE_SIZE = 0x8D52;
1000
1001 static const int RENDERBUFFER_DEPTH_SIZE = 0x8D54;
1002
1003 static const int RENDERBUFFER_GREEN_SIZE = 0x8D51;
1004
1005 static const int RENDERBUFFER_HEIGHT = 0x8D43;
1006
1007 static const int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44;
1008
1009 static const int RENDERBUFFER_RED_SIZE = 0x8D50;
1010
1011 static const int RENDERBUFFER_STENCIL_SIZE = 0x8D55;
1012
1013 static const int RENDERBUFFER_WIDTH = 0x8D42;
1014
1015 static const int RENDERER = 0x1F01;
1016
1017 static const int REPEAT = 0x2901;
1018
1019 static const int REPLACE = 0x1E01;
1020
1021 static const int RGB = 0x1907;
1022
1023 static const int RGB565 = 0x8D62;
1024
1025 static const int RGB5_A1 = 0x8057;
1026
1027 static const int RGBA = 0x1908;
1028
1029 static const int RGBA4 = 0x8056;
1030
1031 static const int SAMPLER_2D = 0x8B5E;
1032
1033 static const int SAMPLER_CUBE = 0x8B60;
1034
1035 static const int SAMPLES = 0x80A9;
1036
1037 static const int SAMPLE_ALPHA_TO_COVERAGE = 0x809E;
1038
1039 static const int SAMPLE_BUFFERS = 0x80A8;
1040
1041 static const int SAMPLE_COVERAGE = 0x80A0;
1042
1043 static const int SAMPLE_COVERAGE_INVERT = 0x80AB;
1044
1045 static const int SAMPLE_COVERAGE_VALUE = 0x80AA;
1046
1047 static const int SCISSOR_BOX = 0x0C10;
1048
1049 static const int SCISSOR_TEST = 0x0C11;
1050
1051 static const int SHADER_TYPE = 0x8B4F;
1052
1053 static const int SHADING_LANGUAGE_VERSION = 0x8B8C;
1054
1055 static const int SHORT = 0x1402;
1056
1057 static const int SRC_ALPHA = 0x0302;
1058
1059 static const int SRC_ALPHA_SATURATE = 0x0308;
1060
1061 static const int SRC_COLOR = 0x0300;
1062
1063 static const int STATIC_DRAW = 0x88E4;
1064
1065 static const int STENCIL_ATTACHMENT = 0x8D20;
1066
1067 static const int STENCIL_BACK_FAIL = 0x8801;
1068
1069 static const int STENCIL_BACK_FUNC = 0x8800;
1070
1071 static const int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802;
1072
1073 static const int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803;
1074
1075 static const int STENCIL_BACK_REF = 0x8CA3;
1076
1077 static const int STENCIL_BACK_VALUE_MASK = 0x8CA4;
1078
1079 static const int STENCIL_BACK_WRITEMASK = 0x8CA5;
1080
1081 static const int STENCIL_BITS = 0x0D57;
1082
1083 static const int STENCIL_BUFFER_BIT = 0x00000400;
1084
1085 static const int STENCIL_CLEAR_VALUE = 0x0B91;
1086
1087 static const int STENCIL_FAIL = 0x0B94;
1088
1089 static const int STENCIL_FUNC = 0x0B92;
1090
1091 static const int STENCIL_INDEX = 0x1901;
1092
1093 static const int STENCIL_INDEX8 = 0x8D48;
1094
1095 static const int STENCIL_PASS_DEPTH_FAIL = 0x0B95;
1096
1097 static const int STENCIL_PASS_DEPTH_PASS = 0x0B96;
1098
1099 static const int STENCIL_REF = 0x0B97;
1100
1101 static const int STENCIL_TEST = 0x0B90;
1102
1103 static const int STENCIL_VALUE_MASK = 0x0B93;
1104
1105 static const int STENCIL_WRITEMASK = 0x0B98;
1106
1107 static const int STREAM_DRAW = 0x88E0;
1108
1109 static const int SUBPIXEL_BITS = 0x0D50;
1110
1111 static const int TEXTURE = 0x1702;
1112
1113 static const int TEXTURE0 = 0x84C0;
1114
1115 static const int TEXTURE1 = 0x84C1;
1116
1117 static const int TEXTURE10 = 0x84CA;
1118
1119 static const int TEXTURE11 = 0x84CB;
1120
1121 static const int TEXTURE12 = 0x84CC;
1122
1123 static const int TEXTURE13 = 0x84CD;
1124
1125 static const int TEXTURE14 = 0x84CE;
1126
1127 static const int TEXTURE15 = 0x84CF;
1128
1129 static const int TEXTURE16 = 0x84D0;
1130
1131 static const int TEXTURE17 = 0x84D1;
1132
1133 static const int TEXTURE18 = 0x84D2;
1134
1135 static const int TEXTURE19 = 0x84D3;
1136
1137 static const int TEXTURE2 = 0x84C2;
1138
1139 static const int TEXTURE20 = 0x84D4;
1140
1141 static const int TEXTURE21 = 0x84D5;
1142
1143 static const int TEXTURE22 = 0x84D6;
1144
1145 static const int TEXTURE23 = 0x84D7;
1146
1147 static const int TEXTURE24 = 0x84D8;
1148
1149 static const int TEXTURE25 = 0x84D9;
1150
1151 static const int TEXTURE26 = 0x84DA;
1152
1153 static const int TEXTURE27 = 0x84DB;
1154
1155 static const int TEXTURE28 = 0x84DC;
1156
1157 static const int TEXTURE29 = 0x84DD;
1158
1159 static const int TEXTURE3 = 0x84C3;
1160
1161 static const int TEXTURE30 = 0x84DE;
1162
1163 static const int TEXTURE31 = 0x84DF;
1164
1165 static const int TEXTURE4 = 0x84C4;
1166
1167 static const int TEXTURE5 = 0x84C5;
1168
1169 static const int TEXTURE6 = 0x84C6;
1170
1171 static const int TEXTURE7 = 0x84C7;
1172
1173 static const int TEXTURE8 = 0x84C8;
1174
1175 static const int TEXTURE9 = 0x84C9;
1176
1177 static const int TEXTURE_2D = 0x0DE1;
1178
1179 static const int TEXTURE_BINDING_2D = 0x8069;
1180
1181 static const int TEXTURE_BINDING_CUBE_MAP = 0x8514;
1182
1183 static const int TEXTURE_CUBE_MAP = 0x8513;
1184
1185 static const int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516;
1186
1187 static const int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518;
1188
1189 static const int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A;
1190
1191 static const int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515;
1192
1193 static const int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517;
1194
1195 static const int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519;
1196
1197 static const int TEXTURE_MAG_FILTER = 0x2800;
1198
1199 static const int TEXTURE_MIN_FILTER = 0x2801;
1200
1201 static const int TEXTURE_WRAP_S = 0x2802;
1202
1203 static const int TEXTURE_WRAP_T = 0x2803;
1204
1205 static const int TRIANGLES = 0x0004;
1206
1207 static const int TRIANGLE_FAN = 0x0006;
1208
1209 static const int TRIANGLE_STRIP = 0x0005;
1210
1211 static const int UNPACK_ALIGNMENT = 0x0CF5;
1212
1213 static const int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
1214
1215 static const int UNPACK_FLIP_Y_WEBGL = 0x9240;
1216
1217 static const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241;
1218
1219 static const int UNSIGNED_BYTE = 0x1401;
1220
1221 static const int UNSIGNED_INT = 0x1405;
1222
1223 static const int UNSIGNED_SHORT = 0x1403;
1224
1225 static const int UNSIGNED_SHORT_4_4_4_4 = 0x8033;
1226
1227 static const int UNSIGNED_SHORT_5_5_5_1 = 0x8034;
1228
1229 static const int UNSIGNED_SHORT_5_6_5 = 0x8363;
1230
1231 static const int VALIDATE_STATUS = 0x8B83;
1232
1233 static const int VENDOR = 0x1F00;
1234
1235 static const int VERSION = 0x1F02;
1236
1237 static const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F;
1238
1239 static const int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622;
1240
1241 static const int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A;
1242
1243 static const int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645;
1244
1245 static const int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623;
1246
1247 static const int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
1248
1249 static const int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
1250
1251 static const int VERTEX_SHADER = 0x8B31;
1252
1253 static const int VIEWPORT = 0x0BA2;
1254
1255 static const int ZERO = 0;
1256
1257 @DomName('WebGLRenderingContext.drawingBufferHeight')
1258 @DocsEditable
1259 final int drawingBufferHeight;
1260
1261 @DomName('WebGLRenderingContext.drawingBufferWidth')
1262 @DocsEditable
1263 final int drawingBufferWidth;
1264
1265 @DomName('WebGLRenderingContext.activeTexture')
1266 @DocsEditable
1267 void activeTexture(int texture) native;
1268
1269 @DomName('WebGLRenderingContext.attachShader')
1270 @DocsEditable
1271 void attachShader(Program program, Shader shader) native;
1272
1273 @DomName('WebGLRenderingContext.bindAttribLocation')
1274 @DocsEditable
1275 void bindAttribLocation(Program program, int index, String name) native;
1276
1277 @DomName('WebGLRenderingContext.bindBuffer')
1278 @DocsEditable
1279 void bindBuffer(int target, Buffer buffer) native;
1280
1281 @DomName('WebGLRenderingContext.bindFramebuffer')
1282 @DocsEditable
1283 void bindFramebuffer(int target, Framebuffer framebuffer) native;
1284
1285 @DomName('WebGLRenderingContext.bindRenderbuffer')
1286 @DocsEditable
1287 void bindRenderbuffer(int target, Renderbuffer renderbuffer) native;
1288
1289 @DomName('WebGLRenderingContext.bindTexture')
1290 @DocsEditable
1291 void bindTexture(int target, Texture texture) native;
1292
1293 @DomName('WebGLRenderingContext.blendColor')
1294 @DocsEditable
1295 void blendColor(num red, num green, num blue, num alpha) native;
1296
1297 @DomName('WebGLRenderingContext.blendEquation')
1298 @DocsEditable
1299 void blendEquation(int mode) native;
1300
1301 @DomName('WebGLRenderingContext.blendEquationSeparate')
1302 @DocsEditable
1303 void blendEquationSeparate(int modeRGB, int modeAlpha) native;
1304
1305 @DomName('WebGLRenderingContext.blendFunc')
1306 @DocsEditable
1307 void blendFunc(int sfactor, int dfactor) native;
1308
1309 @DomName('WebGLRenderingContext.blendFuncSeparate')
1310 @DocsEditable
1311 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive;
1312
1313 @DomName('WebGLRenderingContext.bufferData')
1314 @DocsEditable
1315 void bufferData(int target, data_OR_size, int usage) native;
1316
1317 @DomName('WebGLRenderingContext.bufferSubData')
1318 @DocsEditable
1319 void bufferSubData(int target, int offset, /*ArrayBuffer*/ data) native;
1320
1321 @DomName('WebGLRenderingContext.checkFramebufferStatus')
1322 @DocsEditable
1323 int checkFramebufferStatus(int target) native;
1324
1325 @DomName('WebGLRenderingContext.clear')
1326 @DocsEditable
1327 void clear(int mask) native;
1328
1329 @DomName('WebGLRenderingContext.clearColor')
1330 @DocsEditable
1331 void clearColor(num red, num green, num blue, num alpha) native;
1332
1333 @DomName('WebGLRenderingContext.clearDepth')
1334 @DocsEditable
1335 void clearDepth(num depth) native;
1336
1337 @DomName('WebGLRenderingContext.clearStencil')
1338 @DocsEditable
1339 void clearStencil(int s) native;
1340
1341 @DomName('WebGLRenderingContext.colorMask')
1342 @DocsEditable
1343 void colorMask(bool red, bool green, bool blue, bool alpha) native;
1344
1345 @DomName('WebGLRenderingContext.compileShader')
1346 @DocsEditable
1347 void compileShader(Shader shader) native;
1348
1349 @DomName('WebGLRenderingContext.compressedTexImage2D')
1350 @DocsEditable
1351 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, /*ArrayBufferView*/ data) native;
1352
1353 @DomName('WebGLRenderingContext.compressedTexSubImage2D')
1354 @DocsEditable
1355 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, /*ArrayBufferView*/ data) native;
1356
1357 @DomName('WebGLRenderingContext.copyTexImage2D')
1358 @DocsEditable
1359 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native;
1360
1361 @DomName('WebGLRenderingContext.copyTexSubImage2D')
1362 @DocsEditable
1363 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native;
1364
1365 @DomName('WebGLRenderingContext.createBuffer')
1366 @DocsEditable
1367 Buffer createBuffer() native;
1368
1369 @DomName('WebGLRenderingContext.createFramebuffer')
1370 @DocsEditable
1371 Framebuffer createFramebuffer() native;
1372
1373 @DomName('WebGLRenderingContext.createProgram')
1374 @DocsEditable
1375 Program createProgram() native;
1376
1377 @DomName('WebGLRenderingContext.createRenderbuffer')
1378 @DocsEditable
1379 Renderbuffer createRenderbuffer() native;
1380
1381 @DomName('WebGLRenderingContext.createShader')
1382 @DocsEditable
1383 Shader createShader(int type) native;
1384
1385 @DomName('WebGLRenderingContext.createTexture')
1386 @DocsEditable
1387 Texture createTexture() native;
1388
1389 @DomName('WebGLRenderingContext.cullFace')
1390 @DocsEditable
1391 void cullFace(int mode) native;
1392
1393 @DomName('WebGLRenderingContext.deleteBuffer')
1394 @DocsEditable
1395 void deleteBuffer(Buffer buffer) native;
1396
1397 @DomName('WebGLRenderingContext.deleteFramebuffer')
1398 @DocsEditable
1399 void deleteFramebuffer(Framebuffer framebuffer) native;
1400
1401 @DomName('WebGLRenderingContext.deleteProgram')
1402 @DocsEditable
1403 void deleteProgram(Program program) native;
1404
1405 @DomName('WebGLRenderingContext.deleteRenderbuffer')
1406 @DocsEditable
1407 void deleteRenderbuffer(Renderbuffer renderbuffer) native;
1408
1409 @DomName('WebGLRenderingContext.deleteShader')
1410 @DocsEditable
1411 void deleteShader(Shader shader) native;
1412
1413 @DomName('WebGLRenderingContext.deleteTexture')
1414 @DocsEditable
1415 void deleteTexture(Texture texture) native;
1416
1417 @DomName('WebGLRenderingContext.depthFunc')
1418 @DocsEditable
1419 void depthFunc(int func) native;
1420
1421 @DomName('WebGLRenderingContext.depthMask')
1422 @DocsEditable
1423 void depthMask(bool flag) native;
1424
1425 @DomName('WebGLRenderingContext.depthRange')
1426 @DocsEditable
1427 void depthRange(num zNear, num zFar) native;
1428
1429 @DomName('WebGLRenderingContext.detachShader')
1430 @DocsEditable
1431 void detachShader(Program program, Shader shader) native;
1432
1433 @DomName('WebGLRenderingContext.disable')
1434 @DocsEditable
1435 void disable(int cap) native;
1436
1437 @DomName('WebGLRenderingContext.disableVertexAttribArray')
1438 @DocsEditable
1439 void disableVertexAttribArray(int index) native;
1440
1441 @DomName('WebGLRenderingContext.drawArrays')
1442 @DocsEditable
1443 void drawArrays(int mode, int first, int count) native;
1444
1445 @DomName('WebGLRenderingContext.drawElements')
1446 @DocsEditable
1447 void drawElements(int mode, int count, int type, int offset) native;
1448
1449 @DomName('WebGLRenderingContext.enable')
1450 @DocsEditable
1451 void enable(int cap) native;
1452
1453 @DomName('WebGLRenderingContext.enableVertexAttribArray')
1454 @DocsEditable
1455 void enableVertexAttribArray(int index) native;
1456
1457 @DomName('WebGLRenderingContext.finish')
1458 @DocsEditable
1459 void finish() native;
1460
1461 @DomName('WebGLRenderingContext.flush')
1462 @DocsEditable
1463 void flush() native;
1464
1465 @DomName('WebGLRenderingContext.framebufferRenderbuffer')
1466 @DocsEditable
1467 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, Renderbuffer renderbuffer) native;
1468
1469 @DomName('WebGLRenderingContext.framebufferTexture2D')
1470 @DocsEditable
1471 void framebufferTexture2D(int target, int attachment, int textarget, Texture t exture, int level) native;
1472
1473 @DomName('WebGLRenderingContext.frontFace')
1474 @DocsEditable
1475 void frontFace(int mode) native;
1476
1477 @DomName('WebGLRenderingContext.generateMipmap')
1478 @DocsEditable
1479 void generateMipmap(int target) native;
1480
1481 @DomName('WebGLRenderingContext.getActiveAttrib')
1482 @DocsEditable
1483 ActiveInfo getActiveAttrib(Program program, int index) native;
1484
1485 @DomName('WebGLRenderingContext.getActiveUniform')
1486 @DocsEditable
1487 ActiveInfo getActiveUniform(Program program, int index) native;
1488
1489 @DomName('WebGLRenderingContext.getAttachedShaders')
1490 @DocsEditable
1491 void getAttachedShaders(Program program) native;
1492
1493 @DomName('WebGLRenderingContext.getAttribLocation')
1494 @DocsEditable
1495 int getAttribLocation(Program program, String name) native;
1496
1497 @DomName('WebGLRenderingContext.getBufferParameter')
1498 @DocsEditable
1499 Object getBufferParameter(int target, int pname) native;
1500
1501 @DomName('WebGLRenderingContext.getContextAttributes')
1502 @DocsEditable
1503 ContextAttributes getContextAttributes() native;
1504
1505 @DomName('WebGLRenderingContext.getError')
1506 @DocsEditable
1507 int getError() native;
1508
1509 @DomName('WebGLRenderingContext.getExtension')
1510 @DocsEditable
1511 Object getExtension(String name) native;
1512
1513 @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter')
1514 @DocsEditable
1515 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native;
1516
1517 @DomName('WebGLRenderingContext.getParameter')
1518 @DocsEditable
1519 @Creates('Null|num|String|bool|=List|Float32Array|Int32Array|Uint32Array|WebGL Framebuffer|WebGLRenderbuffer|WebGLTexture')
1520 @Returns('Null|num|String|bool|=List|Float32Array|Int32Array|Uint32Array|WebGL Framebuffer|WebGLRenderbuffer|WebGLTexture')
1521 Object getParameter(int pname) native;
1522
1523 @DomName('WebGLRenderingContext.getProgramInfoLog')
1524 @DocsEditable
1525 String getProgramInfoLog(Program program) native;
1526
1527 @DomName('WebGLRenderingContext.getProgramParameter')
1528 @DocsEditable
1529 Object getProgramParameter(Program program, int pname) native;
1530
1531 @DomName('WebGLRenderingContext.getRenderbufferParameter')
1532 @DocsEditable
1533 Object getRenderbufferParameter(int target, int pname) native;
1534
1535 @DomName('WebGLRenderingContext.getShaderInfoLog')
1536 @DocsEditable
1537 String getShaderInfoLog(Shader shader) native;
1538
1539 @DomName('WebGLRenderingContext.getShaderParameter')
1540 @DocsEditable
1541 Object getShaderParameter(Shader shader, int pname) native;
1542
1543 @DomName('WebGLRenderingContext.getShaderPrecisionFormat')
1544 @DocsEditable
1545 ShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisionty pe) native;
1546
1547 @DomName('WebGLRenderingContext.getShaderSource')
1548 @DocsEditable
1549 String getShaderSource(Shader shader) native;
1550
1551 @DomName('WebGLRenderingContext.getSupportedExtensions')
1552 @DocsEditable
1553 List<String> getSupportedExtensions() native;
1554
1555 @DomName('WebGLRenderingContext.getTexParameter')
1556 @DocsEditable
1557 Object getTexParameter(int target, int pname) native;
1558
1559 @DomName('WebGLRenderingContext.getUniform')
1560 @DocsEditable
1561 Object getUniform(Program program, UniformLocation location) native;
1562
1563 @DomName('WebGLRenderingContext.getUniformLocation')
1564 @DocsEditable
1565 UniformLocation getUniformLocation(Program program, String name) native;
1566
1567 @DomName('WebGLRenderingContext.getVertexAttrib')
1568 @DocsEditable
1569 Object getVertexAttrib(int index, int pname) native;
1570
1571 @DomName('WebGLRenderingContext.getVertexAttribOffset')
1572 @DocsEditable
1573 int getVertexAttribOffset(int index, int pname) native;
1574
1575 @DomName('WebGLRenderingContext.hint')
1576 @DocsEditable
1577 void hint(int target, int mode) native;
1578
1579 @DomName('WebGLRenderingContext.isBuffer')
1580 @DocsEditable
1581 bool isBuffer(Buffer buffer) native;
1582
1583 @DomName('WebGLRenderingContext.isContextLost')
1584 @DocsEditable
1585 bool isContextLost() native;
1586
1587 @DomName('WebGLRenderingContext.isEnabled')
1588 @DocsEditable
1589 bool isEnabled(int cap) native;
1590
1591 @DomName('WebGLRenderingContext.isFramebuffer')
1592 @DocsEditable
1593 bool isFramebuffer(Framebuffer framebuffer) native;
1594
1595 @DomName('WebGLRenderingContext.isProgram')
1596 @DocsEditable
1597 bool isProgram(Program program) native;
1598
1599 @DomName('WebGLRenderingContext.isRenderbuffer')
1600 @DocsEditable
1601 bool isRenderbuffer(Renderbuffer renderbuffer) native;
1602
1603 @DomName('WebGLRenderingContext.isShader')
1604 @DocsEditable
1605 bool isShader(Shader shader) native;
1606
1607 @DomName('WebGLRenderingContext.isTexture')
1608 @DocsEditable
1609 bool isTexture(Texture texture) native;
1610
1611 @DomName('WebGLRenderingContext.lineWidth')
1612 @DocsEditable
1613 void lineWidth(num width) native;
1614
1615 @DomName('WebGLRenderingContext.linkProgram')
1616 @DocsEditable
1617 void linkProgram(Program program) native;
1618
1619 @DomName('WebGLRenderingContext.pixelStorei')
1620 @DocsEditable
1621 void pixelStorei(int pname, int param) native;
1622
1623 @DomName('WebGLRenderingContext.polygonOffset')
1624 @DocsEditable
1625 void polygonOffset(num factor, num units) native;
1626
1627 @DomName('WebGLRenderingContext.readPixels')
1628 @DocsEditable
1629 void readPixels(int x, int y, int width, int height, int format, int type, /*A rrayBufferView*/ pixels) native;
1630
1631 @DomName('WebGLRenderingContext.releaseShaderCompiler')
1632 @DocsEditable
1633 void releaseShaderCompiler() native;
1634
1635 @DomName('WebGLRenderingContext.renderbufferStorage')
1636 @DocsEditable
1637 void renderbufferStorage(int target, int internalformat, int width, int height ) native;
1638
1639 @DomName('WebGLRenderingContext.sampleCoverage')
1640 @DocsEditable
1641 void sampleCoverage(num value, bool invert) native;
1642
1643 @DomName('WebGLRenderingContext.scissor')
1644 @DocsEditable
1645 void scissor(int x, int y, int width, int height) native;
1646
1647 @DomName('WebGLRenderingContext.shaderSource')
1648 @DocsEditable
1649 void shaderSource(Shader shader, String string) native;
1650
1651 @DomName('WebGLRenderingContext.stencilFunc')
1652 @DocsEditable
1653 void stencilFunc(int func, int ref, int mask) native;
1654
1655 @DomName('WebGLRenderingContext.stencilFuncSeparate')
1656 @DocsEditable
1657 void stencilFuncSeparate(int face, int func, int ref, int mask) native;
1658
1659 @DomName('WebGLRenderingContext.stencilMask')
1660 @DocsEditable
1661 void stencilMask(int mask) native;
1662
1663 @DomName('WebGLRenderingContext.stencilMaskSeparate')
1664 @DocsEditable
1665 void stencilMaskSeparate(int face, int mask) native;
1666
1667 @DomName('WebGLRenderingContext.stencilOp')
1668 @DocsEditable
1669 void stencilOp(int fail, int zfail, int zpass) native;
1670
1671 @DomName('WebGLRenderingContext.stencilOpSeparate')
1672 @DocsEditable
1673 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native;
1674
1675 @DomName('WebGLRenderingContext.texImage2D')
1676 @DocsEditable
1677 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]) {
1678 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is int || border_OR_canvas _OR_image_OR_pixels_OR_video == null) && ?pixels) {
1679 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels);
1680 return;
1681 }
1682 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_ canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels) {
1683 var pixels_1 = _convertDartToNative_ImageData(border_OR_canvas_OR_image_OR _pixels_OR_video);
1684 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty pe, pixels_1);
1685 return;
1686 }
1687 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement || border_ OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels ) {
1688 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
1689 return;
1690 }
1691 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement || border _OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixel s) {
1692 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
1693 return;
1694 }
1695 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement || border_ OR_canvas_OR_image_OR_pixels_OR_video == null) && !?format && !?type && !?pixels ) {
1696 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video);
1697 return;
1698 }
1699 throw new ArgumentError("Incorrect number or type of arguments");
1700 }
1701 @JSName('texImage2D')
1702 @DomName('WebGLRenderingContext.texImage2D')
1703 @DocsEditable
1704 void _texImage2D_1(target, level, internalformat, width, height, int border, f ormat, type, pixels) native;
1705 @JSName('texImage2D')
1706 @DomName('WebGLRenderingContext.texImage2D')
1707 @DocsEditable
1708 void _texImage2D_2(target, level, internalformat, format, type, pixels) native ;
1709 @JSName('texImage2D')
1710 @DomName('WebGLRenderingContext.texImage2D')
1711 @DocsEditable
1712 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i mage) native;
1713 @JSName('texImage2D')
1714 @DomName('WebGLRenderingContext.texImage2D')
1715 @DocsEditable
1716 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native;
1717 @JSName('texImage2D')
1718 @DomName('WebGLRenderingContext.texImage2D')
1719 @DocsEditable
1720 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v ideo) native;
1721
1722 @DomName('WebGLRenderingContext.texParameterf')
1723 @DocsEditable
1724 void texParameterf(int target, int pname, num param) native;
1725
1726 @DomName('WebGLRenderingContext.texParameteri')
1727 @DocsEditable
1728 void texParameteri(int target, int pname, int param) native;
1729
1730 @DomName('WebGLRenderingContext.texSubImage2D')
1731 @DocsEditable
1732 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]) {
1733 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is int || canvas_OR_format _OR_image_OR_pixels_OR_video == null) && ?pixels) {
1734 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels);
1735 return;
1736 }
1737 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_ format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
1738 var pixels_1 = _convertDartToNative_ImageData(canvas_OR_format_OR_image_OR _pixels_OR_video);
1739 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, pixels_1);
1740 return;
1741 }
1742 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement || canvas_ OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
1743 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
1744 return;
1745 }
1746 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement || canvas _OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
1747 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
1748 return;
1749 }
1750 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement || canvas_ OR_format_OR_image_OR_pixels_OR_video == null) && !?type && !?pixels) {
1751 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
1752 return;
1753 }
1754 throw new ArgumentError("Incorrect number or type of arguments");
1755 }
1756 @JSName('texSubImage2D')
1757 @DomName('WebGLRenderingContext.texSubImage2D')
1758 @DocsEditable
1759 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form at, type, pixels) native;
1760 @JSName('texSubImage2D')
1761 @DomName('WebGLRenderingContext.texSubImage2D')
1762 @DocsEditable
1763 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n ative;
1764 @JSName('texSubImage2D')
1765 @DomName('WebGLRenderingContext.texSubImage2D')
1766 @DocsEditable
1767 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem ent image) native;
1768 @JSName('texSubImage2D')
1769 @DomName('WebGLRenderingContext.texSubImage2D')
1770 @DocsEditable
1771 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle ment canvas) native;
1772 @JSName('texSubImage2D')
1773 @DomName('WebGLRenderingContext.texSubImage2D')
1774 @DocsEditable
1775 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem ent video) native;
1776
1777 @DomName('WebGLRenderingContext.uniform1f')
1778 @DocsEditable
1779 void uniform1f(UniformLocation location, num x) native;
1780
1781 @DomName('WebGLRenderingContext.uniform1fv')
1782 @DocsEditable
1783 void uniform1fv(UniformLocation location, Float32Array v) native;
1784
1785 @DomName('WebGLRenderingContext.uniform1i')
1786 @DocsEditable
1787 void uniform1i(UniformLocation location, int x) native;
1788
1789 @DomName('WebGLRenderingContext.uniform1iv')
1790 @DocsEditable
1791 void uniform1iv(UniformLocation location, Int32Array v) native;
1792
1793 @DomName('WebGLRenderingContext.uniform2f')
1794 @DocsEditable
1795 void uniform2f(UniformLocation location, num x, num y) native;
1796
1797 @DomName('WebGLRenderingContext.uniform2fv')
1798 @DocsEditable
1799 void uniform2fv(UniformLocation location, Float32Array v) native;
1800
1801 @DomName('WebGLRenderingContext.uniform2i')
1802 @DocsEditable
1803 void uniform2i(UniformLocation location, int x, int y) native;
1804
1805 @DomName('WebGLRenderingContext.uniform2iv')
1806 @DocsEditable
1807 void uniform2iv(UniformLocation location, Int32Array v) native;
1808
1809 @DomName('WebGLRenderingContext.uniform3f')
1810 @DocsEditable
1811 void uniform3f(UniformLocation location, num x, num y, num z) native;
1812
1813 @DomName('WebGLRenderingContext.uniform3fv')
1814 @DocsEditable
1815 void uniform3fv(UniformLocation location, Float32Array v) native;
1816
1817 @DomName('WebGLRenderingContext.uniform3i')
1818 @DocsEditable
1819 void uniform3i(UniformLocation location, int x, int y, int z) native;
1820
1821 @DomName('WebGLRenderingContext.uniform3iv')
1822 @DocsEditable
1823 void uniform3iv(UniformLocation location, Int32Array v) native;
1824
1825 @DomName('WebGLRenderingContext.uniform4f')
1826 @DocsEditable
1827 void uniform4f(UniformLocation location, num x, num y, num z, num w) native;
1828
1829 @DomName('WebGLRenderingContext.uniform4fv')
1830 @DocsEditable
1831 void uniform4fv(UniformLocation location, Float32Array v) native;
1832
1833 @DomName('WebGLRenderingContext.uniform4i')
1834 @DocsEditable
1835 void uniform4i(UniformLocation location, int x, int y, int z, int w) native;
1836
1837 @DomName('WebGLRenderingContext.uniform4iv')
1838 @DocsEditable
1839 void uniform4iv(UniformLocation location, Int32Array v) native;
1840
1841 @DomName('WebGLRenderingContext.uniformMatrix2fv')
1842 @DocsEditable
1843 void uniformMatrix2fv(UniformLocation location, bool transpose, Float32Array a rray) native;
1844
1845 @DomName('WebGLRenderingContext.uniformMatrix3fv')
1846 @DocsEditable
1847 void uniformMatrix3fv(UniformLocation location, bool transpose, Float32Array a rray) native;
1848
1849 @DomName('WebGLRenderingContext.uniformMatrix4fv')
1850 @DocsEditable
1851 void uniformMatrix4fv(UniformLocation location, bool transpose, Float32Array a rray) native;
1852
1853 @DomName('WebGLRenderingContext.useProgram')
1854 @DocsEditable
1855 void useProgram(Program program) native;
1856
1857 @DomName('WebGLRenderingContext.validateProgram')
1858 @DocsEditable
1859 void validateProgram(Program program) native;
1860
1861 @DomName('WebGLRenderingContext.vertexAttrib1f')
1862 @DocsEditable
1863 void vertexAttrib1f(int indx, num x) native;
1864
1865 @DomName('WebGLRenderingContext.vertexAttrib1fv')
1866 @DocsEditable
1867 void vertexAttrib1fv(int indx, Float32Array values) native;
1868
1869 @DomName('WebGLRenderingContext.vertexAttrib2f')
1870 @DocsEditable
1871 void vertexAttrib2f(int indx, num x, num y) native;
1872
1873 @DomName('WebGLRenderingContext.vertexAttrib2fv')
1874 @DocsEditable
1875 void vertexAttrib2fv(int indx, Float32Array values) native;
1876
1877 @DomName('WebGLRenderingContext.vertexAttrib3f')
1878 @DocsEditable
1879 void vertexAttrib3f(int indx, num x, num y, num z) native;
1880
1881 @DomName('WebGLRenderingContext.vertexAttrib3fv')
1882 @DocsEditable
1883 void vertexAttrib3fv(int indx, Float32Array values) native;
1884
1885 @DomName('WebGLRenderingContext.vertexAttrib4f')
1886 @DocsEditable
1887 void vertexAttrib4f(int indx, num x, num y, num z, num w) native;
1888
1889 @DomName('WebGLRenderingContext.vertexAttrib4fv')
1890 @DocsEditable
1891 void vertexAttrib4fv(int indx, Float32Array values) native;
1892
1893 @DomName('WebGLRenderingContext.vertexAttribPointer')
1894 @DocsEditable
1895 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native;
1896
1897 @DomName('WebGLRenderingContext.viewport')
1898 @DocsEditable
1899 void viewport(int x, int y, int width, int height) native;
1900 }
1901 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1902 // for details. All rights reserved. Use of this source code is governed by a
1903 // BSD-style license that can be found in the LICENSE file.
1904
1905
1906 @DocsEditable
1907 @DomName('WebGLShader')
1908 class Shader native "*WebGLShader" {
1909 }
1910 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1911 // for details. All rights reserved. Use of this source code is governed by a
1912 // BSD-style license that can be found in the LICENSE file.
1913
1914
1915 @DocsEditable
1916 @DomName('WebGLShaderPrecisionFormat')
1917 class ShaderPrecisionFormat native "*WebGLShaderPrecisionFormat" {
1918
1919 @DomName('WebGLShaderPrecisionFormat.precision')
1920 @DocsEditable
1921 final int precision;
1922
1923 @DomName('WebGLShaderPrecisionFormat.rangeMax')
1924 @DocsEditable
1925 final int rangeMax;
1926
1927 @DomName('WebGLShaderPrecisionFormat.rangeMin')
1928 @DocsEditable
1929 final int rangeMin;
1930 }
1931 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1932 // for details. All rights reserved. Use of this source code is governed by a
1933 // BSD-style license that can be found in the LICENSE file.
1934
1935
1936 @DocsEditable
1937 @DomName('WebGLTexture')
1938 class Texture native "*WebGLTexture" {
1939 }
1940 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1941 // for details. All rights reserved. Use of this source code is governed by a
1942 // BSD-style license that can be found in the LICENSE file.
1943
1944
1945 @DocsEditable
1946 @DomName('WebGLUniformLocation')
1947 class UniformLocation native "*WebGLUniformLocation" {
1948 }
1949 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1950 // for details. All rights reserved. Use of this source code is governed by a
1951 // BSD-style license that can be found in the LICENSE file.
1952
1953
1954 @DocsEditable
1955 @DomName('WebGLVertexArrayObjectOES')
1956 class WebGLVertexArrayObject native "*WebGLVertexArrayObjectOES" {
1957 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698