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

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

Powered by Google App Engine
This is Rietveld 408576698