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

Side by Side Diff: pkg/dev_compiler/tool/input_sdk/lib/web_gl/dart2js/web_gl_dart2js.dart

Issue 2752163002: Format all dart dev compiler files (Closed)
Patch Set: Created 3 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
OLDNEW
1 /** 1 /**
2 * 3D programming in the browser. 2 * 3D programming in the browser.
3 */ 3 */
4 library dart.dom.web_gl; 4 library dart.dom.web_gl;
5 5
6 import 'dart:collection'; 6 import 'dart:collection';
7 import 'dart:_internal'; 7 import 'dart:_internal';
8 import 'dart:html'; 8 import 'dart:html';
9 import 'dart:html_common'; 9 import 'dart:html_common';
10 import 'dart:_native_typed_data'; 10 import 'dart:_native_typed_data';
11 import 'dart:typed_data'; 11 import 'dart:typed_data';
12 import 'dart:_js_helper' show Creates, JSName, Native, Returns, convertDartClosu reToJS; 12 import 'dart:_js_helper'
13 show Creates, JSName, Native, Returns, convertDartClosureToJS;
13 import 'dart:_foreign_helper' show JS; 14 import 'dart:_foreign_helper' show JS;
14 import 'dart:_interceptors' show Interceptor, JSExtendableArray; 15 import 'dart:_interceptors' show Interceptor, JSExtendableArray;
15 // DO NOT EDIT - unless you are editing documentation as per: 16 // DO NOT EDIT - unless you are editing documentation as per:
16 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation 17 // https://code.google.com/p/dart/wiki/ContributingHTMLDocumentation
17 // Auto-generated dart:web_gl library. 18 // Auto-generated dart:web_gl library.
18 19
19
20
21
22
23 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 20 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
24 // for details. All rights reserved. Use of this source code is governed by a 21 // for details. All rights reserved. Use of this source code is governed by a
25 // BSD-style license that can be found in the LICENSE file. 22 // BSD-style license that can be found in the LICENSE file.
26 23
27
28 const int ACTIVE_ATTRIBUTES = RenderingContext.ACTIVE_ATTRIBUTES; 24 const int ACTIVE_ATTRIBUTES = RenderingContext.ACTIVE_ATTRIBUTES;
29 const int ACTIVE_TEXTURE = RenderingContext.ACTIVE_TEXTURE; 25 const int ACTIVE_TEXTURE = RenderingContext.ACTIVE_TEXTURE;
30 const int ACTIVE_UNIFORMS = RenderingContext.ACTIVE_UNIFORMS; 26 const int ACTIVE_UNIFORMS = RenderingContext.ACTIVE_UNIFORMS;
31 const int ALIASED_LINE_WIDTH_RANGE = RenderingContext.ALIASED_LINE_WIDTH_RANGE; 27 const int ALIASED_LINE_WIDTH_RANGE = RenderingContext.ALIASED_LINE_WIDTH_RANGE;
32 const int ALIASED_POINT_SIZE_RANGE = RenderingContext.ALIASED_POINT_SIZE_RANGE; 28 const int ALIASED_POINT_SIZE_RANGE = RenderingContext.ALIASED_POINT_SIZE_RANGE;
33 const int ALPHA = RenderingContext.ALPHA; 29 const int ALPHA = RenderingContext.ALPHA;
34 const int ALPHA_BITS = RenderingContext.ALPHA_BITS; 30 const int ALPHA_BITS = RenderingContext.ALPHA_BITS;
35 const int ALWAYS = RenderingContext.ALWAYS; 31 const int ALWAYS = RenderingContext.ALWAYS;
36 const int ARRAY_BUFFER = RenderingContext.ARRAY_BUFFER; 32 const int ARRAY_BUFFER = RenderingContext.ARRAY_BUFFER;
37 const int ARRAY_BUFFER_BINDING = RenderingContext.ARRAY_BUFFER_BINDING; 33 const int ARRAY_BUFFER_BINDING = RenderingContext.ARRAY_BUFFER_BINDING;
(...skipping 17 matching lines...) Expand all
55 const int BUFFER_SIZE = RenderingContext.BUFFER_SIZE; 51 const int BUFFER_SIZE = RenderingContext.BUFFER_SIZE;
56 const int BUFFER_USAGE = RenderingContext.BUFFER_USAGE; 52 const int BUFFER_USAGE = RenderingContext.BUFFER_USAGE;
57 const int BYTE = RenderingContext.BYTE; 53 const int BYTE = RenderingContext.BYTE;
58 const int CCW = RenderingContext.CCW; 54 const int CCW = RenderingContext.CCW;
59 const int CLAMP_TO_EDGE = RenderingContext.CLAMP_TO_EDGE; 55 const int CLAMP_TO_EDGE = RenderingContext.CLAMP_TO_EDGE;
60 const int COLOR_ATTACHMENT0 = RenderingContext.COLOR_ATTACHMENT0; 56 const int COLOR_ATTACHMENT0 = RenderingContext.COLOR_ATTACHMENT0;
61 const int COLOR_BUFFER_BIT = RenderingContext.COLOR_BUFFER_BIT; 57 const int COLOR_BUFFER_BIT = RenderingContext.COLOR_BUFFER_BIT;
62 const int COLOR_CLEAR_VALUE = RenderingContext.COLOR_CLEAR_VALUE; 58 const int COLOR_CLEAR_VALUE = RenderingContext.COLOR_CLEAR_VALUE;
63 const int COLOR_WRITEMASK = RenderingContext.COLOR_WRITEMASK; 59 const int COLOR_WRITEMASK = RenderingContext.COLOR_WRITEMASK;
64 const int COMPILE_STATUS = RenderingContext.COMPILE_STATUS; 60 const int COMPILE_STATUS = RenderingContext.COMPILE_STATUS;
65 const int COMPRESSED_TEXTURE_FORMATS = RenderingContext.COMPRESSED_TEXTURE_FORMA TS; 61 const int COMPRESSED_TEXTURE_FORMATS =
62 RenderingContext.COMPRESSED_TEXTURE_FORMATS;
66 const int CONSTANT_ALPHA = RenderingContext.CONSTANT_ALPHA; 63 const int CONSTANT_ALPHA = RenderingContext.CONSTANT_ALPHA;
67 const int CONSTANT_COLOR = RenderingContext.CONSTANT_COLOR; 64 const int CONSTANT_COLOR = RenderingContext.CONSTANT_COLOR;
68 const int CONTEXT_LOST_WEBGL = RenderingContext.CONTEXT_LOST_WEBGL; 65 const int CONTEXT_LOST_WEBGL = RenderingContext.CONTEXT_LOST_WEBGL;
69 const int CULL_FACE = RenderingContext.CULL_FACE; 66 const int CULL_FACE = RenderingContext.CULL_FACE;
70 const int CULL_FACE_MODE = RenderingContext.CULL_FACE_MODE; 67 const int CULL_FACE_MODE = RenderingContext.CULL_FACE_MODE;
71 const int CURRENT_PROGRAM = RenderingContext.CURRENT_PROGRAM; 68 const int CURRENT_PROGRAM = RenderingContext.CURRENT_PROGRAM;
72 const int CURRENT_VERTEX_ATTRIB = RenderingContext.CURRENT_VERTEX_ATTRIB; 69 const int CURRENT_VERTEX_ATTRIB = RenderingContext.CURRENT_VERTEX_ATTRIB;
73 const int CW = RenderingContext.CW; 70 const int CW = RenderingContext.CW;
74 const int DECR = RenderingContext.DECR; 71 const int DECR = RenderingContext.DECR;
75 const int DECR_WRAP = RenderingContext.DECR_WRAP; 72 const int DECR_WRAP = RenderingContext.DECR_WRAP;
76 const int DELETE_STATUS = RenderingContext.DELETE_STATUS; 73 const int DELETE_STATUS = RenderingContext.DELETE_STATUS;
77 const int DEPTH_ATTACHMENT = RenderingContext.DEPTH_ATTACHMENT; 74 const int DEPTH_ATTACHMENT = RenderingContext.DEPTH_ATTACHMENT;
78 const int DEPTH_BITS = RenderingContext.DEPTH_BITS; 75 const int DEPTH_BITS = RenderingContext.DEPTH_BITS;
79 const int DEPTH_BUFFER_BIT = RenderingContext.DEPTH_BUFFER_BIT; 76 const int DEPTH_BUFFER_BIT = RenderingContext.DEPTH_BUFFER_BIT;
80 const int DEPTH_CLEAR_VALUE = RenderingContext.DEPTH_CLEAR_VALUE; 77 const int DEPTH_CLEAR_VALUE = RenderingContext.DEPTH_CLEAR_VALUE;
81 const int DEPTH_COMPONENT = RenderingContext.DEPTH_COMPONENT; 78 const int DEPTH_COMPONENT = RenderingContext.DEPTH_COMPONENT;
82 const int DEPTH_COMPONENT16 = RenderingContext.DEPTH_COMPONENT16; 79 const int DEPTH_COMPONENT16 = RenderingContext.DEPTH_COMPONENT16;
83 const int DEPTH_FUNC = RenderingContext.DEPTH_FUNC; 80 const int DEPTH_FUNC = RenderingContext.DEPTH_FUNC;
84 const int DEPTH_RANGE = RenderingContext.DEPTH_RANGE; 81 const int DEPTH_RANGE = RenderingContext.DEPTH_RANGE;
85 const int DEPTH_STENCIL = RenderingContext.DEPTH_STENCIL; 82 const int DEPTH_STENCIL = RenderingContext.DEPTH_STENCIL;
86 const int DEPTH_STENCIL_ATTACHMENT = RenderingContext.DEPTH_STENCIL_ATTACHMENT; 83 const int DEPTH_STENCIL_ATTACHMENT = RenderingContext.DEPTH_STENCIL_ATTACHMENT;
87 const int DEPTH_TEST = RenderingContext.DEPTH_TEST; 84 const int DEPTH_TEST = RenderingContext.DEPTH_TEST;
88 const int DEPTH_WRITEMASK = RenderingContext.DEPTH_WRITEMASK; 85 const int DEPTH_WRITEMASK = RenderingContext.DEPTH_WRITEMASK;
89 const int DITHER = RenderingContext.DITHER; 86 const int DITHER = RenderingContext.DITHER;
90 const int DONT_CARE = RenderingContext.DONT_CARE; 87 const int DONT_CARE = RenderingContext.DONT_CARE;
91 const int DST_ALPHA = RenderingContext.DST_ALPHA; 88 const int DST_ALPHA = RenderingContext.DST_ALPHA;
92 const int DST_COLOR = RenderingContext.DST_COLOR; 89 const int DST_COLOR = RenderingContext.DST_COLOR;
93 const int DYNAMIC_DRAW = RenderingContext.DYNAMIC_DRAW; 90 const int DYNAMIC_DRAW = RenderingContext.DYNAMIC_DRAW;
94 const int ELEMENT_ARRAY_BUFFER = RenderingContext.ELEMENT_ARRAY_BUFFER; 91 const int ELEMENT_ARRAY_BUFFER = RenderingContext.ELEMENT_ARRAY_BUFFER;
95 const int ELEMENT_ARRAY_BUFFER_BINDING = RenderingContext.ELEMENT_ARRAY_BUFFER_B INDING; 92 const int ELEMENT_ARRAY_BUFFER_BINDING =
93 RenderingContext.ELEMENT_ARRAY_BUFFER_BINDING;
96 const int EQUAL = RenderingContext.EQUAL; 94 const int EQUAL = RenderingContext.EQUAL;
97 const int FASTEST = RenderingContext.FASTEST; 95 const int FASTEST = RenderingContext.FASTEST;
98 const int FLOAT = RenderingContext.FLOAT; 96 const int FLOAT = RenderingContext.FLOAT;
99 const int FLOAT_MAT2 = RenderingContext.FLOAT_MAT2; 97 const int FLOAT_MAT2 = RenderingContext.FLOAT_MAT2;
100 const int FLOAT_MAT3 = RenderingContext.FLOAT_MAT3; 98 const int FLOAT_MAT3 = RenderingContext.FLOAT_MAT3;
101 const int FLOAT_MAT4 = RenderingContext.FLOAT_MAT4; 99 const int FLOAT_MAT4 = RenderingContext.FLOAT_MAT4;
102 const int FLOAT_VEC2 = RenderingContext.FLOAT_VEC2; 100 const int FLOAT_VEC2 = RenderingContext.FLOAT_VEC2;
103 const int FLOAT_VEC3 = RenderingContext.FLOAT_VEC3; 101 const int FLOAT_VEC3 = RenderingContext.FLOAT_VEC3;
104 const int FLOAT_VEC4 = RenderingContext.FLOAT_VEC4; 102 const int FLOAT_VEC4 = RenderingContext.FLOAT_VEC4;
105 const int FRAGMENT_SHADER = RenderingContext.FRAGMENT_SHADER; 103 const int FRAGMENT_SHADER = RenderingContext.FRAGMENT_SHADER;
106 const int FRAMEBUFFER = RenderingContext.FRAMEBUFFER; 104 const int FRAMEBUFFER = RenderingContext.FRAMEBUFFER;
107 const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = RenderingContext.FRAMEBUFFER_ATTA CHMENT_OBJECT_NAME; 105 const int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME =
108 const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = RenderingContext.FRAMEBUFFER_ATTA CHMENT_OBJECT_TYPE; 106 RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME;
109 const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = RenderingContext.FRAMEB UFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE; 107 const int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE =
110 const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = RenderingContext.FRAMEBUFFER_AT TACHMENT_TEXTURE_LEVEL; 108 RenderingContext.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE;
109 const int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE =
110 RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE;
111 const int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL =
112 RenderingContext.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL;
111 const int FRAMEBUFFER_BINDING = RenderingContext.FRAMEBUFFER_BINDING; 113 const int FRAMEBUFFER_BINDING = RenderingContext.FRAMEBUFFER_BINDING;
112 const int FRAMEBUFFER_COMPLETE = RenderingContext.FRAMEBUFFER_COMPLETE; 114 const int FRAMEBUFFER_COMPLETE = RenderingContext.FRAMEBUFFER_COMPLETE;
113 const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = RenderingContext.FRAMEBUFFER_INCOM PLETE_ATTACHMENT; 115 const int FRAMEBUFFER_INCOMPLETE_ATTACHMENT =
114 const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = RenderingContext.FRAMEBUFFER_INCOM PLETE_DIMENSIONS; 116 RenderingContext.FRAMEBUFFER_INCOMPLETE_ATTACHMENT;
115 const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = RenderingContext.FRAMEBUFF ER_INCOMPLETE_MISSING_ATTACHMENT; 117 const int FRAMEBUFFER_INCOMPLETE_DIMENSIONS =
118 RenderingContext.FRAMEBUFFER_INCOMPLETE_DIMENSIONS;
119 const int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT =
120 RenderingContext.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT;
116 const int FRAMEBUFFER_UNSUPPORTED = RenderingContext.FRAMEBUFFER_UNSUPPORTED; 121 const int FRAMEBUFFER_UNSUPPORTED = RenderingContext.FRAMEBUFFER_UNSUPPORTED;
117 const int FRONT = RenderingContext.FRONT; 122 const int FRONT = RenderingContext.FRONT;
118 const int FRONT_AND_BACK = RenderingContext.FRONT_AND_BACK; 123 const int FRONT_AND_BACK = RenderingContext.FRONT_AND_BACK;
119 const int FRONT_FACE = RenderingContext.FRONT_FACE; 124 const int FRONT_FACE = RenderingContext.FRONT_FACE;
120 const int FUNC_ADD = RenderingContext.FUNC_ADD; 125 const int FUNC_ADD = RenderingContext.FUNC_ADD;
121 const int FUNC_REVERSE_SUBTRACT = RenderingContext.FUNC_REVERSE_SUBTRACT; 126 const int FUNC_REVERSE_SUBTRACT = RenderingContext.FUNC_REVERSE_SUBTRACT;
122 const int FUNC_SUBTRACT = RenderingContext.FUNC_SUBTRACT; 127 const int FUNC_SUBTRACT = RenderingContext.FUNC_SUBTRACT;
123 const int GENERATE_MIPMAP_HINT = RenderingContext.GENERATE_MIPMAP_HINT; 128 const int GENERATE_MIPMAP_HINT = RenderingContext.GENERATE_MIPMAP_HINT;
124 const int GEQUAL = RenderingContext.GEQUAL; 129 const int GEQUAL = RenderingContext.GEQUAL;
125 const int GREATER = RenderingContext.GREATER; 130 const int GREATER = RenderingContext.GREATER;
126 const int GREEN_BITS = RenderingContext.GREEN_BITS; 131 const int GREEN_BITS = RenderingContext.GREEN_BITS;
127 const int HALF_FLOAT_OES = OesTextureHalfFloat.HALF_FLOAT_OES; 132 const int HALF_FLOAT_OES = OesTextureHalfFloat.HALF_FLOAT_OES;
128 const int HIGH_FLOAT = RenderingContext.HIGH_FLOAT; 133 const int HIGH_FLOAT = RenderingContext.HIGH_FLOAT;
129 const int HIGH_INT = RenderingContext.HIGH_INT; 134 const int HIGH_INT = RenderingContext.HIGH_INT;
130 const int INCR = RenderingContext.INCR; 135 const int INCR = RenderingContext.INCR;
131 const int INCR_WRAP = RenderingContext.INCR_WRAP; 136 const int INCR_WRAP = RenderingContext.INCR_WRAP;
132 const int INT = RenderingContext.INT; 137 const int INT = RenderingContext.INT;
133 const int INT_VEC2 = RenderingContext.INT_VEC2; 138 const int INT_VEC2 = RenderingContext.INT_VEC2;
134 const int INT_VEC3 = RenderingContext.INT_VEC3; 139 const int INT_VEC3 = RenderingContext.INT_VEC3;
135 const int INT_VEC4 = RenderingContext.INT_VEC4; 140 const int INT_VEC4 = RenderingContext.INT_VEC4;
136 const int INVALID_ENUM = RenderingContext.INVALID_ENUM; 141 const int INVALID_ENUM = RenderingContext.INVALID_ENUM;
137 const int INVALID_FRAMEBUFFER_OPERATION = RenderingContext.INVALID_FRAMEBUFFER_O PERATION; 142 const int INVALID_FRAMEBUFFER_OPERATION =
143 RenderingContext.INVALID_FRAMEBUFFER_OPERATION;
138 const int INVALID_OPERATION = RenderingContext.INVALID_OPERATION; 144 const int INVALID_OPERATION = RenderingContext.INVALID_OPERATION;
139 const int INVALID_VALUE = RenderingContext.INVALID_VALUE; 145 const int INVALID_VALUE = RenderingContext.INVALID_VALUE;
140 const int INVERT = RenderingContext.INVERT; 146 const int INVERT = RenderingContext.INVERT;
141 const int KEEP = RenderingContext.KEEP; 147 const int KEEP = RenderingContext.KEEP;
142 const int LEQUAL = RenderingContext.LEQUAL; 148 const int LEQUAL = RenderingContext.LEQUAL;
143 const int LESS = RenderingContext.LESS; 149 const int LESS = RenderingContext.LESS;
144 const int LINEAR = RenderingContext.LINEAR; 150 const int LINEAR = RenderingContext.LINEAR;
145 const int LINEAR_MIPMAP_LINEAR = RenderingContext.LINEAR_MIPMAP_LINEAR; 151 const int LINEAR_MIPMAP_LINEAR = RenderingContext.LINEAR_MIPMAP_LINEAR;
146 const int LINEAR_MIPMAP_NEAREST = RenderingContext.LINEAR_MIPMAP_NEAREST; 152 const int LINEAR_MIPMAP_NEAREST = RenderingContext.LINEAR_MIPMAP_NEAREST;
147 const int LINES = RenderingContext.LINES; 153 const int LINES = RenderingContext.LINES;
148 const int LINE_LOOP = RenderingContext.LINE_LOOP; 154 const int LINE_LOOP = RenderingContext.LINE_LOOP;
149 const int LINE_STRIP = RenderingContext.LINE_STRIP; 155 const int LINE_STRIP = RenderingContext.LINE_STRIP;
150 const int LINE_WIDTH = RenderingContext.LINE_WIDTH; 156 const int LINE_WIDTH = RenderingContext.LINE_WIDTH;
151 const int LINK_STATUS = RenderingContext.LINK_STATUS; 157 const int LINK_STATUS = RenderingContext.LINK_STATUS;
152 const int LOW_FLOAT = RenderingContext.LOW_FLOAT; 158 const int LOW_FLOAT = RenderingContext.LOW_FLOAT;
153 const int LOW_INT = RenderingContext.LOW_INT; 159 const int LOW_INT = RenderingContext.LOW_INT;
154 const int LUMINANCE = RenderingContext.LUMINANCE; 160 const int LUMINANCE = RenderingContext.LUMINANCE;
155 const int LUMINANCE_ALPHA = RenderingContext.LUMINANCE_ALPHA; 161 const int LUMINANCE_ALPHA = RenderingContext.LUMINANCE_ALPHA;
156 const int MAX_COMBINED_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_COMBINED_TEXTU RE_IMAGE_UNITS; 162 const int MAX_COMBINED_TEXTURE_IMAGE_UNITS =
157 const int MAX_CUBE_MAP_TEXTURE_SIZE = RenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE ; 163 RenderingContext.MAX_COMBINED_TEXTURE_IMAGE_UNITS;
158 const int MAX_FRAGMENT_UNIFORM_VECTORS = RenderingContext.MAX_FRAGMENT_UNIFORM_V ECTORS; 164 const int MAX_CUBE_MAP_TEXTURE_SIZE =
165 RenderingContext.MAX_CUBE_MAP_TEXTURE_SIZE;
166 const int MAX_FRAGMENT_UNIFORM_VECTORS =
167 RenderingContext.MAX_FRAGMENT_UNIFORM_VECTORS;
159 const int MAX_RENDERBUFFER_SIZE = RenderingContext.MAX_RENDERBUFFER_SIZE; 168 const int MAX_RENDERBUFFER_SIZE = RenderingContext.MAX_RENDERBUFFER_SIZE;
160 const int MAX_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_TEXTURE_IMAGE_UNITS; 169 const int MAX_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_TEXTURE_IMAGE_UNITS;
161 const int MAX_TEXTURE_SIZE = RenderingContext.MAX_TEXTURE_SIZE; 170 const int MAX_TEXTURE_SIZE = RenderingContext.MAX_TEXTURE_SIZE;
162 const int MAX_VARYING_VECTORS = RenderingContext.MAX_VARYING_VECTORS; 171 const int MAX_VARYING_VECTORS = RenderingContext.MAX_VARYING_VECTORS;
163 const int MAX_VERTEX_ATTRIBS = RenderingContext.MAX_VERTEX_ATTRIBS; 172 const int MAX_VERTEX_ATTRIBS = RenderingContext.MAX_VERTEX_ATTRIBS;
164 const int MAX_VERTEX_TEXTURE_IMAGE_UNITS = RenderingContext.MAX_VERTEX_TEXTURE_I MAGE_UNITS; 173 const int MAX_VERTEX_TEXTURE_IMAGE_UNITS =
165 const int MAX_VERTEX_UNIFORM_VECTORS = RenderingContext.MAX_VERTEX_UNIFORM_VECTO RS; 174 RenderingContext.MAX_VERTEX_TEXTURE_IMAGE_UNITS;
175 const int MAX_VERTEX_UNIFORM_VECTORS =
176 RenderingContext.MAX_VERTEX_UNIFORM_VECTORS;
166 const int MAX_VIEWPORT_DIMS = RenderingContext.MAX_VIEWPORT_DIMS; 177 const int MAX_VIEWPORT_DIMS = RenderingContext.MAX_VIEWPORT_DIMS;
167 const int MEDIUM_FLOAT = RenderingContext.MEDIUM_FLOAT; 178 const int MEDIUM_FLOAT = RenderingContext.MEDIUM_FLOAT;
168 const int MEDIUM_INT = RenderingContext.MEDIUM_INT; 179 const int MEDIUM_INT = RenderingContext.MEDIUM_INT;
169 const int MIRRORED_REPEAT = RenderingContext.MIRRORED_REPEAT; 180 const int MIRRORED_REPEAT = RenderingContext.MIRRORED_REPEAT;
170 const int NEAREST = RenderingContext.NEAREST; 181 const int NEAREST = RenderingContext.NEAREST;
171 const int NEAREST_MIPMAP_LINEAR = RenderingContext.NEAREST_MIPMAP_LINEAR; 182 const int NEAREST_MIPMAP_LINEAR = RenderingContext.NEAREST_MIPMAP_LINEAR;
172 const int NEAREST_MIPMAP_NEAREST = RenderingContext.NEAREST_MIPMAP_NEAREST; 183 const int NEAREST_MIPMAP_NEAREST = RenderingContext.NEAREST_MIPMAP_NEAREST;
173 const int NEVER = RenderingContext.NEVER; 184 const int NEVER = RenderingContext.NEVER;
174 const int NICEST = RenderingContext.NICEST; 185 const int NICEST = RenderingContext.NICEST;
175 const int NONE = RenderingContext.NONE; 186 const int NONE = RenderingContext.NONE;
(...skipping 13 matching lines...) Expand all
189 const int POLYGON_OFFSET_FILL = RenderingContext.POLYGON_OFFSET_FILL; 200 const int POLYGON_OFFSET_FILL = RenderingContext.POLYGON_OFFSET_FILL;
190 const int POLYGON_OFFSET_UNITS = RenderingContext.POLYGON_OFFSET_UNITS; 201 const int POLYGON_OFFSET_UNITS = RenderingContext.POLYGON_OFFSET_UNITS;
191 const int RED_BITS = RenderingContext.RED_BITS; 202 const int RED_BITS = RenderingContext.RED_BITS;
192 const int RENDERBUFFER = RenderingContext.RENDERBUFFER; 203 const int RENDERBUFFER = RenderingContext.RENDERBUFFER;
193 const int RENDERBUFFER_ALPHA_SIZE = RenderingContext.RENDERBUFFER_ALPHA_SIZE; 204 const int RENDERBUFFER_ALPHA_SIZE = RenderingContext.RENDERBUFFER_ALPHA_SIZE;
194 const int RENDERBUFFER_BINDING = RenderingContext.RENDERBUFFER_BINDING; 205 const int RENDERBUFFER_BINDING = RenderingContext.RENDERBUFFER_BINDING;
195 const int RENDERBUFFER_BLUE_SIZE = RenderingContext.RENDERBUFFER_BLUE_SIZE; 206 const int RENDERBUFFER_BLUE_SIZE = RenderingContext.RENDERBUFFER_BLUE_SIZE;
196 const int RENDERBUFFER_DEPTH_SIZE = RenderingContext.RENDERBUFFER_DEPTH_SIZE; 207 const int RENDERBUFFER_DEPTH_SIZE = RenderingContext.RENDERBUFFER_DEPTH_SIZE;
197 const int RENDERBUFFER_GREEN_SIZE = RenderingContext.RENDERBUFFER_GREEN_SIZE; 208 const int RENDERBUFFER_GREEN_SIZE = RenderingContext.RENDERBUFFER_GREEN_SIZE;
198 const int RENDERBUFFER_HEIGHT = RenderingContext.RENDERBUFFER_HEIGHT; 209 const int RENDERBUFFER_HEIGHT = RenderingContext.RENDERBUFFER_HEIGHT;
199 const int RENDERBUFFER_INTERNAL_FORMAT = RenderingContext.RENDERBUFFER_INTERNAL_ FORMAT; 210 const int RENDERBUFFER_INTERNAL_FORMAT =
211 RenderingContext.RENDERBUFFER_INTERNAL_FORMAT;
200 const int RENDERBUFFER_RED_SIZE = RenderingContext.RENDERBUFFER_RED_SIZE; 212 const int RENDERBUFFER_RED_SIZE = RenderingContext.RENDERBUFFER_RED_SIZE;
201 const int RENDERBUFFER_STENCIL_SIZE = RenderingContext.RENDERBUFFER_STENCIL_SIZE ; 213 const int RENDERBUFFER_STENCIL_SIZE =
214 RenderingContext.RENDERBUFFER_STENCIL_SIZE;
202 const int RENDERBUFFER_WIDTH = RenderingContext.RENDERBUFFER_WIDTH; 215 const int RENDERBUFFER_WIDTH = RenderingContext.RENDERBUFFER_WIDTH;
203 const int RENDERER = RenderingContext.RENDERER; 216 const int RENDERER = RenderingContext.RENDERER;
204 const int REPEAT = RenderingContext.REPEAT; 217 const int REPEAT = RenderingContext.REPEAT;
205 const int REPLACE = RenderingContext.REPLACE; 218 const int REPLACE = RenderingContext.REPLACE;
206 const int RGB = RenderingContext.RGB; 219 const int RGB = RenderingContext.RGB;
207 const int RGB565 = RenderingContext.RGB565; 220 const int RGB565 = RenderingContext.RGB565;
208 const int RGB5_A1 = RenderingContext.RGB5_A1; 221 const int RGB5_A1 = RenderingContext.RGB5_A1;
209 const int RGBA = RenderingContext.RGBA; 222 const int RGBA = RenderingContext.RGBA;
210 const int RGBA4 = RenderingContext.RGBA4; 223 const int RGBA4 = RenderingContext.RGBA4;
211 const int SAMPLER_2D = RenderingContext.SAMPLER_2D; 224 const int SAMPLER_2D = RenderingContext.SAMPLER_2D;
212 const int SAMPLER_CUBE = RenderingContext.SAMPLER_CUBE; 225 const int SAMPLER_CUBE = RenderingContext.SAMPLER_CUBE;
213 const int SAMPLES = RenderingContext.SAMPLES; 226 const int SAMPLES = RenderingContext.SAMPLES;
214 const int SAMPLE_ALPHA_TO_COVERAGE = RenderingContext.SAMPLE_ALPHA_TO_COVERAGE; 227 const int SAMPLE_ALPHA_TO_COVERAGE = RenderingContext.SAMPLE_ALPHA_TO_COVERAGE;
215 const int SAMPLE_BUFFERS = RenderingContext.SAMPLE_BUFFERS; 228 const int SAMPLE_BUFFERS = RenderingContext.SAMPLE_BUFFERS;
216 const int SAMPLE_COVERAGE = RenderingContext.SAMPLE_COVERAGE; 229 const int SAMPLE_COVERAGE = RenderingContext.SAMPLE_COVERAGE;
217 const int SAMPLE_COVERAGE_INVERT = RenderingContext.SAMPLE_COVERAGE_INVERT; 230 const int SAMPLE_COVERAGE_INVERT = RenderingContext.SAMPLE_COVERAGE_INVERT;
218 const int SAMPLE_COVERAGE_VALUE = RenderingContext.SAMPLE_COVERAGE_VALUE; 231 const int SAMPLE_COVERAGE_VALUE = RenderingContext.SAMPLE_COVERAGE_VALUE;
219 const int SCISSOR_BOX = RenderingContext.SCISSOR_BOX; 232 const int SCISSOR_BOX = RenderingContext.SCISSOR_BOX;
220 const int SCISSOR_TEST = RenderingContext.SCISSOR_TEST; 233 const int SCISSOR_TEST = RenderingContext.SCISSOR_TEST;
221 const int SHADER_TYPE = RenderingContext.SHADER_TYPE; 234 const int SHADER_TYPE = RenderingContext.SHADER_TYPE;
222 const int SHADING_LANGUAGE_VERSION = RenderingContext.SHADING_LANGUAGE_VERSION; 235 const int SHADING_LANGUAGE_VERSION = RenderingContext.SHADING_LANGUAGE_VERSION;
223 const int SHORT = RenderingContext.SHORT; 236 const int SHORT = RenderingContext.SHORT;
224 const int SRC_ALPHA = RenderingContext.SRC_ALPHA; 237 const int SRC_ALPHA = RenderingContext.SRC_ALPHA;
225 const int SRC_ALPHA_SATURATE = RenderingContext.SRC_ALPHA_SATURATE; 238 const int SRC_ALPHA_SATURATE = RenderingContext.SRC_ALPHA_SATURATE;
226 const int SRC_COLOR = RenderingContext.SRC_COLOR; 239 const int SRC_COLOR = RenderingContext.SRC_COLOR;
227 const int STATIC_DRAW = RenderingContext.STATIC_DRAW; 240 const int STATIC_DRAW = RenderingContext.STATIC_DRAW;
228 const int STENCIL_ATTACHMENT = RenderingContext.STENCIL_ATTACHMENT; 241 const int STENCIL_ATTACHMENT = RenderingContext.STENCIL_ATTACHMENT;
229 const int STENCIL_BACK_FAIL = RenderingContext.STENCIL_BACK_FAIL; 242 const int STENCIL_BACK_FAIL = RenderingContext.STENCIL_BACK_FAIL;
230 const int STENCIL_BACK_FUNC = RenderingContext.STENCIL_BACK_FUNC; 243 const int STENCIL_BACK_FUNC = RenderingContext.STENCIL_BACK_FUNC;
231 const int STENCIL_BACK_PASS_DEPTH_FAIL = RenderingContext.STENCIL_BACK_PASS_DEPT H_FAIL; 244 const int STENCIL_BACK_PASS_DEPTH_FAIL =
232 const int STENCIL_BACK_PASS_DEPTH_PASS = RenderingContext.STENCIL_BACK_PASS_DEPT H_PASS; 245 RenderingContext.STENCIL_BACK_PASS_DEPTH_FAIL;
246 const int STENCIL_BACK_PASS_DEPTH_PASS =
247 RenderingContext.STENCIL_BACK_PASS_DEPTH_PASS;
233 const int STENCIL_BACK_REF = RenderingContext.STENCIL_BACK_REF; 248 const int STENCIL_BACK_REF = RenderingContext.STENCIL_BACK_REF;
234 const int STENCIL_BACK_VALUE_MASK = RenderingContext.STENCIL_BACK_VALUE_MASK; 249 const int STENCIL_BACK_VALUE_MASK = RenderingContext.STENCIL_BACK_VALUE_MASK;
235 const int STENCIL_BACK_WRITEMASK = RenderingContext.STENCIL_BACK_WRITEMASK; 250 const int STENCIL_BACK_WRITEMASK = RenderingContext.STENCIL_BACK_WRITEMASK;
236 const int STENCIL_BITS = RenderingContext.STENCIL_BITS; 251 const int STENCIL_BITS = RenderingContext.STENCIL_BITS;
237 const int STENCIL_BUFFER_BIT = RenderingContext.STENCIL_BUFFER_BIT; 252 const int STENCIL_BUFFER_BIT = RenderingContext.STENCIL_BUFFER_BIT;
238 const int STENCIL_CLEAR_VALUE = RenderingContext.STENCIL_CLEAR_VALUE; 253 const int STENCIL_CLEAR_VALUE = RenderingContext.STENCIL_CLEAR_VALUE;
239 const int STENCIL_FAIL = RenderingContext.STENCIL_FAIL; 254 const int STENCIL_FAIL = RenderingContext.STENCIL_FAIL;
240 const int STENCIL_FUNC = RenderingContext.STENCIL_FUNC; 255 const int STENCIL_FUNC = RenderingContext.STENCIL_FUNC;
241 const int STENCIL_INDEX = RenderingContext.STENCIL_INDEX; 256 const int STENCIL_INDEX = RenderingContext.STENCIL_INDEX;
242 const int STENCIL_INDEX8 = RenderingContext.STENCIL_INDEX8; 257 const int STENCIL_INDEX8 = RenderingContext.STENCIL_INDEX8;
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
278 const int TEXTURE4 = RenderingContext.TEXTURE4; 293 const int TEXTURE4 = RenderingContext.TEXTURE4;
279 const int TEXTURE5 = RenderingContext.TEXTURE5; 294 const int TEXTURE5 = RenderingContext.TEXTURE5;
280 const int TEXTURE6 = RenderingContext.TEXTURE6; 295 const int TEXTURE6 = RenderingContext.TEXTURE6;
281 const int TEXTURE7 = RenderingContext.TEXTURE7; 296 const int TEXTURE7 = RenderingContext.TEXTURE7;
282 const int TEXTURE8 = RenderingContext.TEXTURE8; 297 const int TEXTURE8 = RenderingContext.TEXTURE8;
283 const int TEXTURE9 = RenderingContext.TEXTURE9; 298 const int TEXTURE9 = RenderingContext.TEXTURE9;
284 const int TEXTURE_2D = RenderingContext.TEXTURE_2D; 299 const int TEXTURE_2D = RenderingContext.TEXTURE_2D;
285 const int TEXTURE_BINDING_2D = RenderingContext.TEXTURE_BINDING_2D; 300 const int TEXTURE_BINDING_2D = RenderingContext.TEXTURE_BINDING_2D;
286 const int TEXTURE_BINDING_CUBE_MAP = RenderingContext.TEXTURE_BINDING_CUBE_MAP; 301 const int TEXTURE_BINDING_CUBE_MAP = RenderingContext.TEXTURE_BINDING_CUBE_MAP;
287 const int TEXTURE_CUBE_MAP = RenderingContext.TEXTURE_CUBE_MAP; 302 const int TEXTURE_CUBE_MAP = RenderingContext.TEXTURE_CUBE_MAP;
288 const int TEXTURE_CUBE_MAP_NEGATIVE_X = RenderingContext.TEXTURE_CUBE_MAP_NEGATI VE_X; 303 const int TEXTURE_CUBE_MAP_NEGATIVE_X =
289 const int TEXTURE_CUBE_MAP_NEGATIVE_Y = RenderingContext.TEXTURE_CUBE_MAP_NEGATI VE_Y; 304 RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_X;
290 const int TEXTURE_CUBE_MAP_NEGATIVE_Z = RenderingContext.TEXTURE_CUBE_MAP_NEGATI VE_Z; 305 const int TEXTURE_CUBE_MAP_NEGATIVE_Y =
291 const int TEXTURE_CUBE_MAP_POSITIVE_X = RenderingContext.TEXTURE_CUBE_MAP_POSITI VE_X; 306 RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Y;
292 const int TEXTURE_CUBE_MAP_POSITIVE_Y = RenderingContext.TEXTURE_CUBE_MAP_POSITI VE_Y; 307 const int TEXTURE_CUBE_MAP_NEGATIVE_Z =
293 const int TEXTURE_CUBE_MAP_POSITIVE_Z = RenderingContext.TEXTURE_CUBE_MAP_POSITI VE_Z; 308 RenderingContext.TEXTURE_CUBE_MAP_NEGATIVE_Z;
309 const int TEXTURE_CUBE_MAP_POSITIVE_X =
310 RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_X;
311 const int TEXTURE_CUBE_MAP_POSITIVE_Y =
312 RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Y;
313 const int TEXTURE_CUBE_MAP_POSITIVE_Z =
314 RenderingContext.TEXTURE_CUBE_MAP_POSITIVE_Z;
294 const int TEXTURE_MAG_FILTER = RenderingContext.TEXTURE_MAG_FILTER; 315 const int TEXTURE_MAG_FILTER = RenderingContext.TEXTURE_MAG_FILTER;
295 const int TEXTURE_MIN_FILTER = RenderingContext.TEXTURE_MIN_FILTER; 316 const int TEXTURE_MIN_FILTER = RenderingContext.TEXTURE_MIN_FILTER;
296 const int TEXTURE_WRAP_S = RenderingContext.TEXTURE_WRAP_S; 317 const int TEXTURE_WRAP_S = RenderingContext.TEXTURE_WRAP_S;
297 const int TEXTURE_WRAP_T = RenderingContext.TEXTURE_WRAP_T; 318 const int TEXTURE_WRAP_T = RenderingContext.TEXTURE_WRAP_T;
298 const int TRIANGLES = RenderingContext.TRIANGLES; 319 const int TRIANGLES = RenderingContext.TRIANGLES;
299 const int TRIANGLE_FAN = RenderingContext.TRIANGLE_FAN; 320 const int TRIANGLE_FAN = RenderingContext.TRIANGLE_FAN;
300 const int TRIANGLE_STRIP = RenderingContext.TRIANGLE_STRIP; 321 const int TRIANGLE_STRIP = RenderingContext.TRIANGLE_STRIP;
301 const int UNPACK_ALIGNMENT = RenderingContext.UNPACK_ALIGNMENT; 322 const int UNPACK_ALIGNMENT = RenderingContext.UNPACK_ALIGNMENT;
302 const int UNPACK_COLORSPACE_CONVERSION_WEBGL = RenderingContext.UNPACK_COLORSPAC E_CONVERSION_WEBGL; 323 const int UNPACK_COLORSPACE_CONVERSION_WEBGL =
324 RenderingContext.UNPACK_COLORSPACE_CONVERSION_WEBGL;
303 const int UNPACK_FLIP_Y_WEBGL = RenderingContext.UNPACK_FLIP_Y_WEBGL; 325 const int UNPACK_FLIP_Y_WEBGL = RenderingContext.UNPACK_FLIP_Y_WEBGL;
304 const int UNPACK_PREMULTIPLY_ALPHA_WEBGL = RenderingContext.UNPACK_PREMULTIPLY_A LPHA_WEBGL; 326 const int UNPACK_PREMULTIPLY_ALPHA_WEBGL =
327 RenderingContext.UNPACK_PREMULTIPLY_ALPHA_WEBGL;
305 const int UNSIGNED_BYTE = RenderingContext.UNSIGNED_BYTE; 328 const int UNSIGNED_BYTE = RenderingContext.UNSIGNED_BYTE;
306 const int UNSIGNED_INT = RenderingContext.UNSIGNED_INT; 329 const int UNSIGNED_INT = RenderingContext.UNSIGNED_INT;
307 const int UNSIGNED_SHORT = RenderingContext.UNSIGNED_SHORT; 330 const int UNSIGNED_SHORT = RenderingContext.UNSIGNED_SHORT;
308 const int UNSIGNED_SHORT_4_4_4_4 = RenderingContext.UNSIGNED_SHORT_4_4_4_4; 331 const int UNSIGNED_SHORT_4_4_4_4 = RenderingContext.UNSIGNED_SHORT_4_4_4_4;
309 const int UNSIGNED_SHORT_5_5_5_1 = RenderingContext.UNSIGNED_SHORT_5_5_5_1; 332 const int UNSIGNED_SHORT_5_5_5_1 = RenderingContext.UNSIGNED_SHORT_5_5_5_1;
310 const int UNSIGNED_SHORT_5_6_5 = RenderingContext.UNSIGNED_SHORT_5_6_5; 333 const int UNSIGNED_SHORT_5_6_5 = RenderingContext.UNSIGNED_SHORT_5_6_5;
311 const int VALIDATE_STATUS = RenderingContext.VALIDATE_STATUS; 334 const int VALIDATE_STATUS = RenderingContext.VALIDATE_STATUS;
312 const int VENDOR = RenderingContext.VENDOR; 335 const int VENDOR = RenderingContext.VENDOR;
313 const int VERSION = RenderingContext.VERSION; 336 const int VERSION = RenderingContext.VERSION;
314 const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = RenderingContext.VERTEX_ATTRIB_AR RAY_BUFFER_BINDING; 337 const int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING =
315 const int VERTEX_ATTRIB_ARRAY_ENABLED = RenderingContext.VERTEX_ATTRIB_ARRAY_ENA BLED; 338 RenderingContext.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING;
316 const int VERTEX_ATTRIB_ARRAY_NORMALIZED = RenderingContext.VERTEX_ATTRIB_ARRAY_ NORMALIZED; 339 const int VERTEX_ATTRIB_ARRAY_ENABLED =
317 const int VERTEX_ATTRIB_ARRAY_POINTER = RenderingContext.VERTEX_ATTRIB_ARRAY_POI NTER; 340 RenderingContext.VERTEX_ATTRIB_ARRAY_ENABLED;
341 const int VERTEX_ATTRIB_ARRAY_NORMALIZED =
342 RenderingContext.VERTEX_ATTRIB_ARRAY_NORMALIZED;
343 const int VERTEX_ATTRIB_ARRAY_POINTER =
344 RenderingContext.VERTEX_ATTRIB_ARRAY_POINTER;
318 const int VERTEX_ATTRIB_ARRAY_SIZE = RenderingContext.VERTEX_ATTRIB_ARRAY_SIZE; 345 const int VERTEX_ATTRIB_ARRAY_SIZE = RenderingContext.VERTEX_ATTRIB_ARRAY_SIZE;
319 const int VERTEX_ATTRIB_ARRAY_STRIDE = RenderingContext.VERTEX_ATTRIB_ARRAY_STRI DE; 346 const int VERTEX_ATTRIB_ARRAY_STRIDE =
347 RenderingContext.VERTEX_ATTRIB_ARRAY_STRIDE;
320 const int VERTEX_ATTRIB_ARRAY_TYPE = RenderingContext.VERTEX_ATTRIB_ARRAY_TYPE; 348 const int VERTEX_ATTRIB_ARRAY_TYPE = RenderingContext.VERTEX_ATTRIB_ARRAY_TYPE;
321 const int VERTEX_SHADER = RenderingContext.VERTEX_SHADER; 349 const int VERTEX_SHADER = RenderingContext.VERTEX_SHADER;
322 const int VIEWPORT = RenderingContext.VIEWPORT; 350 const int VIEWPORT = RenderingContext.VIEWPORT;
323 const int ZERO = RenderingContext.ZERO; 351 const int ZERO = RenderingContext.ZERO;
324 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 352 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
325 // for details. All rights reserved. Use of this source code is governed by a 353 // for details. All rights reserved. Use of this source code is governed by a
326 // BSD-style license that can be found in the LICENSE file. 354 // BSD-style license that can be found in the LICENSE file.
327 355
328
329 @DocsEditable() 356 @DocsEditable()
330 @DomName('WebGLActiveInfo') 357 @DomName('WebGLActiveInfo')
331 @Unstable() 358 @Unstable()
332 @Native("WebGLActiveInfo") 359 @Native("WebGLActiveInfo")
333 class ActiveInfo extends Interceptor { 360 class ActiveInfo extends Interceptor {
334 // To suppress missing implicit constructor warnings. 361 // To suppress missing implicit constructor warnings.
335 factory ActiveInfo._() { throw new UnsupportedError("Not supported"); } 362 factory ActiveInfo._() {
363 throw new UnsupportedError("Not supported");
364 }
336 365
337 @DomName('WebGLActiveInfo.name') 366 @DomName('WebGLActiveInfo.name')
338 @DocsEditable() 367 @DocsEditable()
339 final String name; 368 final String name;
340 369
341 @DomName('WebGLActiveInfo.size') 370 @DomName('WebGLActiveInfo.size')
342 @DocsEditable() 371 @DocsEditable()
343 final int size; 372 final int size;
344 373
345 @DomName('WebGLActiveInfo.type') 374 @DomName('WebGLActiveInfo.type')
346 @DocsEditable() 375 @DocsEditable()
347 final int type; 376 final int type;
348 } 377 }
349 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 378 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
350 // for details. All rights reserved. Use of this source code is governed by a 379 // for details. All rights reserved. Use of this source code is governed by a
351 // BSD-style license that can be found in the LICENSE file. 380 // BSD-style license that can be found in the LICENSE file.
352 381
353
354 @DocsEditable() 382 @DocsEditable()
355 @DomName('ANGLEInstancedArrays') 383 @DomName('ANGLEInstancedArrays')
356 @Experimental() // untriaged 384 @Experimental() // untriaged
357 @Native("ANGLEInstancedArrays") 385 @Native("ANGLEInstancedArrays")
358 class AngleInstancedArrays extends Interceptor { 386 class AngleInstancedArrays extends Interceptor {
359 // To suppress missing implicit constructor warnings. 387 // To suppress missing implicit constructor warnings.
360 factory AngleInstancedArrays._() { throw new UnsupportedError("Not supported") ; } 388 factory AngleInstancedArrays._() {
389 throw new UnsupportedError("Not supported");
390 }
361 391
362 @DomName('ANGLEInstancedArrays.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE') 392 @DomName('ANGLEInstancedArrays.VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE')
363 @DocsEditable() 393 @DocsEditable()
364 @Experimental() // untriaged 394 @Experimental() // untriaged
365 static const int VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE; 395 static const int VERTEX_ATTRIB_ARRAY_DIVISOR_ANGLE = 0x88FE;
366 396
367 @JSName('drawArraysInstancedANGLE') 397 @JSName('drawArraysInstancedANGLE')
368 @DomName('ANGLEInstancedArrays.drawArraysInstancedANGLE') 398 @DomName('ANGLEInstancedArrays.drawArraysInstancedANGLE')
369 @DocsEditable() 399 @DocsEditable()
370 @Experimental() // untriaged 400 @Experimental() // untriaged
371 void drawArraysInstancedAngle(int mode, int first, int count, int primcount) n ative; 401 void drawArraysInstancedAngle(int mode, int first, int count, int primcount)
402 native ;
372 403
373 @JSName('drawElementsInstancedANGLE') 404 @JSName('drawElementsInstancedANGLE')
374 @DomName('ANGLEInstancedArrays.drawElementsInstancedANGLE') 405 @DomName('ANGLEInstancedArrays.drawElementsInstancedANGLE')
375 @DocsEditable() 406 @DocsEditable()
376 @Experimental() // untriaged 407 @Experimental() // untriaged
377 void drawElementsInstancedAngle(int mode, int count, int type, int offset, int primcount) native; 408 void drawElementsInstancedAngle(
409 int mode, int count, int type, int offset, int primcount) native ;
378 410
379 @JSName('vertexAttribDivisorANGLE') 411 @JSName('vertexAttribDivisorANGLE')
380 @DomName('ANGLEInstancedArrays.vertexAttribDivisorANGLE') 412 @DomName('ANGLEInstancedArrays.vertexAttribDivisorANGLE')
381 @DocsEditable() 413 @DocsEditable()
382 @Experimental() // untriaged 414 @Experimental() // untriaged
383 void vertexAttribDivisorAngle(int index, int divisor) native; 415 void vertexAttribDivisorAngle(int index, int divisor) native ;
384 } 416 }
385 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 417 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
386 // for details. All rights reserved. Use of this source code is governed by a 418 // for details. All rights reserved. Use of this source code is governed by a
387 // BSD-style license that can be found in the LICENSE file. 419 // BSD-style license that can be found in the LICENSE file.
388 420
389
390 @DocsEditable() 421 @DocsEditable()
391 @DomName('WebGLBuffer') 422 @DomName('WebGLBuffer')
392 @Unstable() 423 @Unstable()
393 @Native("WebGLBuffer") 424 @Native("WebGLBuffer")
394 class Buffer extends Interceptor { 425 class Buffer extends Interceptor {
395 // To suppress missing implicit constructor warnings. 426 // To suppress missing implicit constructor warnings.
396 factory Buffer._() { throw new UnsupportedError("Not supported"); } 427 factory Buffer._() {
428 throw new UnsupportedError("Not supported");
429 }
397 } 430 }
398 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
399 // for details. All rights reserved. Use of this source code is governed by a 432 // for details. All rights reserved. Use of this source code is governed by a
400 // BSD-style license that can be found in the LICENSE file. 433 // BSD-style license that can be found in the LICENSE file.
401 434
402
403 @DocsEditable() 435 @DocsEditable()
404 @DomName('WebGLCompressedTextureATC') 436 @DomName('WebGLCompressedTextureATC')
405 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc / 437 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_atc /
406 @Experimental() 438 @Experimental()
407 @Native("WebGLCompressedTextureATC") 439 @Native("WebGLCompressedTextureATC")
408 class CompressedTextureAtc extends Interceptor { 440 class CompressedTextureAtc extends Interceptor {
409 // To suppress missing implicit constructor warnings. 441 // To suppress missing implicit constructor warnings.
410 factory CompressedTextureAtc._() { throw new UnsupportedError("Not supported") ; } 442 factory CompressedTextureAtc._() {
443 throw new UnsupportedError("Not supported");
444 }
411 445
412 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL') 446 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL')
413 @DocsEditable() 447 @DocsEditable()
414 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93; 448 static const int COMPRESSED_RGBA_ATC_EXPLICIT_ALPHA_WEBGL = 0x8C93;
415 449
416 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEB GL') 450 @DomName(
451 'WebGLCompressedTextureATC.COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL')
417 @DocsEditable() 452 @DocsEditable()
418 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE; 453 static const int COMPRESSED_RGBA_ATC_INTERPOLATED_ALPHA_WEBGL = 0x87EE;
419 454
420 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL') 455 @DomName('WebGLCompressedTextureATC.COMPRESSED_RGB_ATC_WEBGL')
421 @DocsEditable() 456 @DocsEditable()
422 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92; 457 static const int COMPRESSED_RGB_ATC_WEBGL = 0x8C92;
423 } 458 }
424 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 459 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
425 // for details. All rights reserved. Use of this source code is governed by a 460 // for details. All rights reserved. Use of this source code is governed by a
426 // BSD-style license that can be found in the LICENSE file. 461 // BSD-style license that can be found in the LICENSE file.
427 462
428
429 @DocsEditable() 463 @DocsEditable()
430 @DomName('WebGLCompressedTextureETC1') 464 @DomName('WebGLCompressedTextureETC1')
431 @Experimental() // untriaged 465 @Experimental() // untriaged
432 @Native("WebGLCompressedTextureETC1") 466 @Native("WebGLCompressedTextureETC1")
433 class CompressedTextureETC1 extends Interceptor { 467 class CompressedTextureETC1 extends Interceptor {
434 // To suppress missing implicit constructor warnings. 468 // To suppress missing implicit constructor warnings.
435 factory CompressedTextureETC1._() { throw new UnsupportedError("Not supported" ); } 469 factory CompressedTextureETC1._() {
470 throw new UnsupportedError("Not supported");
471 }
436 472
437 @DomName('WebGLCompressedTextureETC1.COMPRESSED_RGB_ETC1_WEBGL') 473 @DomName('WebGLCompressedTextureETC1.COMPRESSED_RGB_ETC1_WEBGL')
438 @DocsEditable() 474 @DocsEditable()
439 @Experimental() // untriaged 475 @Experimental() // untriaged
440 static const int COMPRESSED_RGB_ETC1_WEBGL = 0x8D64; 476 static const int COMPRESSED_RGB_ETC1_WEBGL = 0x8D64;
441 } 477 }
442 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 478 // 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 479 // 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. 480 // BSD-style license that can be found in the LICENSE file.
445 481
446
447 @DocsEditable() 482 @DocsEditable()
448 @DomName('WebGLCompressedTexturePVRTC') 483 @DomName('WebGLCompressedTexturePVRTC')
449 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr tc/ 484 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_pvr tc/
450 @Experimental() // experimental 485 @Experimental() // experimental
451 @Native("WebGLCompressedTexturePVRTC") 486 @Native("WebGLCompressedTexturePVRTC")
452 class CompressedTexturePvrtc extends Interceptor { 487 class CompressedTexturePvrtc extends Interceptor {
453 // To suppress missing implicit constructor warnings. 488 // To suppress missing implicit constructor warnings.
454 factory CompressedTexturePvrtc._() { throw new UnsupportedError("Not supported "); } 489 factory CompressedTexturePvrtc._() {
490 throw new UnsupportedError("Not supported");
491 }
455 492
456 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG') 493 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG')
457 @DocsEditable() 494 @DocsEditable()
458 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03; 495 static const int COMPRESSED_RGBA_PVRTC_2BPPV1_IMG = 0x8C03;
459 496
460 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG') 497 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG')
461 @DocsEditable() 498 @DocsEditable()
462 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02; 499 static const int COMPRESSED_RGBA_PVRTC_4BPPV1_IMG = 0x8C02;
463 500
464 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG') 501 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_2BPPV1_IMG')
465 @DocsEditable() 502 @DocsEditable()
466 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01; 503 static const int COMPRESSED_RGB_PVRTC_2BPPV1_IMG = 0x8C01;
467 504
468 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG') 505 @DomName('WebGLCompressedTexturePVRTC.COMPRESSED_RGB_PVRTC_4BPPV1_IMG')
469 @DocsEditable() 506 @DocsEditable()
470 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00; 507 static const int COMPRESSED_RGB_PVRTC_4BPPV1_IMG = 0x8C00;
471 } 508 }
472 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 509 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
473 // for details. All rights reserved. Use of this source code is governed by a 510 // for details. All rights reserved. Use of this source code is governed by a
474 // BSD-style license that can be found in the LICENSE file. 511 // BSD-style license that can be found in the LICENSE file.
475 512
476
477 @DocsEditable() 513 @DocsEditable()
478 @DomName('WebGLCompressedTextureS3TC') 514 @DomName('WebGLCompressedTextureS3TC')
479 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t c/ 515 // http://www.khronos.org/registry/webgl/extensions/WEBGL_compressed_texture_s3t c/
480 @Experimental() // experimental 516 @Experimental() // experimental
481 @Native("WebGLCompressedTextureS3TC") 517 @Native("WebGLCompressedTextureS3TC")
482 class CompressedTextureS3TC extends Interceptor { 518 class CompressedTextureS3TC extends Interceptor {
483 // To suppress missing implicit constructor warnings. 519 // To suppress missing implicit constructor warnings.
484 factory CompressedTextureS3TC._() { throw new UnsupportedError("Not supported" ); } 520 factory CompressedTextureS3TC._() {
521 throw new UnsupportedError("Not supported");
522 }
485 523
486 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT') 524 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT1_EXT')
487 @DocsEditable() 525 @DocsEditable()
488 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1; 526 static const int COMPRESSED_RGBA_S3TC_DXT1_EXT = 0x83F1;
489 527
490 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT') 528 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT3_EXT')
491 @DocsEditable() 529 @DocsEditable()
492 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2; 530 static const int COMPRESSED_RGBA_S3TC_DXT3_EXT = 0x83F2;
493 531
494 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT') 532 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGBA_S3TC_DXT5_EXT')
495 @DocsEditable() 533 @DocsEditable()
496 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3; 534 static const int COMPRESSED_RGBA_S3TC_DXT5_EXT = 0x83F3;
497 535
498 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT') 536 @DomName('WebGLCompressedTextureS3TC.COMPRESSED_RGB_S3TC_DXT1_EXT')
499 @DocsEditable() 537 @DocsEditable()
500 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0; 538 static const int COMPRESSED_RGB_S3TC_DXT1_EXT = 0x83F0;
501 } 539 }
502 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 540 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
503 // for details. All rights reserved. Use of this source code is governed by a 541 // for details. All rights reserved. Use of this source code is governed by a
504 // BSD-style license that can be found in the LICENSE file. 542 // BSD-style license that can be found in the LICENSE file.
505 543
506
507 @DocsEditable() 544 @DocsEditable()
508 /** 545 /**
509 * The properties of a WebGL rendering context. 546 * The properties of a WebGL rendering context.
510 * 547 *
511 * If [alpha] is `true`, then the context has an alpha channel. 548 * If [alpha] is `true`, then the context has an alpha channel.
512 * 549 *
513 * If [antialias] is `true`, then antialiasing is performed by the browser, but 550 * If [antialias] is `true`, then antialiasing is performed by the browser, but
514 * only if the browser's implementation of WebGL supports antialiasing. 551 * only if the browser's implementation of WebGL supports antialiasing.
515 * 552 *
516 * If [depth] is `true`, then the context has a depth buffer of at least 16 553 * If [depth] is `true`, then the context has a depth buffer of at least 16
517 * bits. 554 * bits.
518 * 555 *
519 * If [premultipliedAlpha] is `true`, then the context's colors are assumed to 556 * If [premultipliedAlpha] is `true`, then the context's colors are assumed to
520 * be premultiplied. This means that color values are assumed to have been 557 * be premultiplied. This means that color values are assumed to have been
521 * multiplied by their alpha values. If [alpha] is `false`, then this flag is 558 * multiplied by their alpha values. If [alpha] is `false`, then this flag is
522 * ignored. 559 * ignored.
523 * 560 *
524 * If [preserveDrawingBuffer] is `false`, then all contents of the context are 561 * If [preserveDrawingBuffer] is `false`, then all contents of the context are
525 * cleared. If `true`, then all values will remain until changed or cleared. 562 * cleared. If `true`, then all values will remain until changed or cleared.
526 * 563 *
527 * If [stencil] is `true`, then the context has a stencil buffer of at least 8 564 * If [stencil] is `true`, then the context has a stencil buffer of at least 8
528 * bits. 565 * bits.
529 */ 566 */
530 @DomName('WebGLContextAttributes') 567 @DomName('WebGLContextAttributes')
531 @Unstable() 568 @Unstable()
532 @Native("WebGLContextAttributes") 569 @Native("WebGLContextAttributes")
533 class ContextAttributes extends Interceptor { 570 class ContextAttributes extends Interceptor {
534 // To suppress missing implicit constructor warnings. 571 // To suppress missing implicit constructor warnings.
535 factory ContextAttributes._() { throw new UnsupportedError("Not supported"); } 572 factory ContextAttributes._() {
573 throw new UnsupportedError("Not supported");
574 }
536 575
537 @DomName('WebGLContextAttributes.alpha') 576 @DomName('WebGLContextAttributes.alpha')
538 @DocsEditable() 577 @DocsEditable()
539 bool alpha; 578 bool alpha;
540 579
541 @DomName('WebGLContextAttributes.antialias') 580 @DomName('WebGLContextAttributes.antialias')
542 @DocsEditable() 581 @DocsEditable()
543 bool antialias; 582 bool antialias;
544 583
545 @DomName('WebGLContextAttributes.depth') 584 @DomName('WebGLContextAttributes.depth')
(...skipping 14 matching lines...) Expand all
560 bool preserveDrawingBuffer; 599 bool preserveDrawingBuffer;
561 600
562 @DomName('WebGLContextAttributes.stencil') 601 @DomName('WebGLContextAttributes.stencil')
563 @DocsEditable() 602 @DocsEditable()
564 bool stencil; 603 bool stencil;
565 } 604 }
566 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
567 // for details. All rights reserved. Use of this source code is governed by a 606 // for details. All rights reserved. Use of this source code is governed by a
568 // BSD-style license that can be found in the LICENSE file. 607 // BSD-style license that can be found in the LICENSE file.
569 608
570
571 @DocsEditable() 609 @DocsEditable()
572 @DomName('WebGLContextEvent') 610 @DomName('WebGLContextEvent')
573 @Unstable() 611 @Unstable()
574 @Native("WebGLContextEvent") 612 @Native("WebGLContextEvent")
575 class ContextEvent extends Event { 613 class ContextEvent extends Event {
576 // To suppress missing implicit constructor warnings. 614 // To suppress missing implicit constructor warnings.
577 factory ContextEvent._() { throw new UnsupportedError("Not supported"); } 615 factory ContextEvent._() {
616 throw new UnsupportedError("Not supported");
617 }
578 618
579 @DomName('WebGLContextEvent.statusMessage') 619 @DomName('WebGLContextEvent.statusMessage')
580 @DocsEditable() 620 @DocsEditable()
581 final String statusMessage; 621 final String statusMessage;
582 } 622 }
583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 623 // 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 624 // 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. 625 // BSD-style license that can be found in the LICENSE file.
586 626
587
588 @DocsEditable() 627 @DocsEditable()
589 @DomName('WebGLDebugRendererInfo') 628 @DomName('WebGLDebugRendererInfo')
590 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/ 629 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_renderer_info/
591 @Experimental() // experimental 630 @Experimental() // experimental
592 @Native("WebGLDebugRendererInfo") 631 @Native("WebGLDebugRendererInfo")
593 class DebugRendererInfo extends Interceptor { 632 class DebugRendererInfo extends Interceptor {
594 // To suppress missing implicit constructor warnings. 633 // To suppress missing implicit constructor warnings.
595 factory DebugRendererInfo._() { throw new UnsupportedError("Not supported"); } 634 factory DebugRendererInfo._() {
635 throw new UnsupportedError("Not supported");
636 }
596 637
597 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL') 638 @DomName('WebGLDebugRendererInfo.UNMASKED_RENDERER_WEBGL')
598 @DocsEditable() 639 @DocsEditable()
599 static const int UNMASKED_RENDERER_WEBGL = 0x9246; 640 static const int UNMASKED_RENDERER_WEBGL = 0x9246;
600 641
601 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL') 642 @DomName('WebGLDebugRendererInfo.UNMASKED_VENDOR_WEBGL')
602 @DocsEditable() 643 @DocsEditable()
603 static const int UNMASKED_VENDOR_WEBGL = 0x9245; 644 static const int UNMASKED_VENDOR_WEBGL = 0x9245;
604 } 645 }
605 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 646 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
606 // for details. All rights reserved. Use of this source code is governed by a 647 // for details. All rights reserved. Use of this source code is governed by a
607 // BSD-style license that can be found in the LICENSE file. 648 // BSD-style license that can be found in the LICENSE file.
608 649
609
610 @DocsEditable() 650 @DocsEditable()
611 @DomName('WebGLDebugShaders') 651 @DomName('WebGLDebugShaders')
612 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/ 652 // http://www.khronos.org/registry/webgl/extensions/WEBGL_debug_shaders/
613 @Experimental() // experimental 653 @Experimental() // experimental
614 @Native("WebGLDebugShaders") 654 @Native("WebGLDebugShaders")
615 class DebugShaders extends Interceptor { 655 class DebugShaders extends Interceptor {
616 // To suppress missing implicit constructor warnings. 656 // To suppress missing implicit constructor warnings.
617 factory DebugShaders._() { throw new UnsupportedError("Not supported"); } 657 factory DebugShaders._() {
658 throw new UnsupportedError("Not supported");
659 }
618 660
619 @DomName('WebGLDebugShaders.getTranslatedShaderSource') 661 @DomName('WebGLDebugShaders.getTranslatedShaderSource')
620 @DocsEditable() 662 @DocsEditable()
621 String getTranslatedShaderSource(Shader shader) native; 663 String getTranslatedShaderSource(Shader shader) native ;
622 } 664 }
623 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 665 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
624 // for details. All rights reserved. Use of this source code is governed by a 666 // for details. All rights reserved. Use of this source code is governed by a
625 // BSD-style license that can be found in the LICENSE file. 667 // BSD-style license that can be found in the LICENSE file.
626 668
627
628 @DocsEditable() 669 @DocsEditable()
629 @DomName('WebGLDepthTexture') 670 @DomName('WebGLDepthTexture')
630 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/ 671 // http://www.khronos.org/registry/webgl/extensions/WEBGL_depth_texture/
631 @Experimental() // experimental 672 @Experimental() // experimental
632 @Native("WebGLDepthTexture") 673 @Native("WebGLDepthTexture")
633 class DepthTexture extends Interceptor { 674 class DepthTexture extends Interceptor {
634 // To suppress missing implicit constructor warnings. 675 // To suppress missing implicit constructor warnings.
635 factory DepthTexture._() { throw new UnsupportedError("Not supported"); } 676 factory DepthTexture._() {
677 throw new UnsupportedError("Not supported");
678 }
636 679
637 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL') 680 @DomName('WebGLDepthTexture.UNSIGNED_INT_24_8_WEBGL')
638 @DocsEditable() 681 @DocsEditable()
639 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA; 682 static const int UNSIGNED_INT_24_8_WEBGL = 0x84FA;
640 } 683 }
641 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 684 // 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 685 // 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. 686 // BSD-style license that can be found in the LICENSE file.
644 687
645
646 @DocsEditable() 688 @DocsEditable()
647 @DomName('WebGLDrawBuffers') 689 @DomName('WebGLDrawBuffers')
648 // http://www.khronos.org/registry/webgl/specs/latest/ 690 // http://www.khronos.org/registry/webgl/specs/latest/
649 @Experimental() // stable 691 @Experimental() // stable
650 @Native("WebGLDrawBuffers") 692 @Native("WebGLDrawBuffers")
651 class DrawBuffers extends Interceptor { 693 class DrawBuffers extends Interceptor {
652 // To suppress missing implicit constructor warnings. 694 // To suppress missing implicit constructor warnings.
653 factory DrawBuffers._() { throw new UnsupportedError("Not supported"); } 695 factory DrawBuffers._() {
696 throw new UnsupportedError("Not supported");
697 }
654 698
655 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT0_WEBGL') 699 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT0_WEBGL')
656 @DocsEditable() 700 @DocsEditable()
657 static const int COLOR_ATTACHMENT0_WEBGL = 0x8CE0; 701 static const int COLOR_ATTACHMENT0_WEBGL = 0x8CE0;
658 702
659 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT10_WEBGL') 703 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT10_WEBGL')
660 @DocsEditable() 704 @DocsEditable()
661 static const int COLOR_ATTACHMENT10_WEBGL = 0x8CEA; 705 static const int COLOR_ATTACHMENT10_WEBGL = 0x8CEA;
662 706
663 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT11_WEBGL') 707 @DomName('WebGLDrawBuffers.COLOR_ATTACHMENT11_WEBGL')
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
784 @DocsEditable() 828 @DocsEditable()
785 static const int MAX_COLOR_ATTACHMENTS_WEBGL = 0x8CDF; 829 static const int MAX_COLOR_ATTACHMENTS_WEBGL = 0x8CDF;
786 830
787 @DomName('WebGLDrawBuffers.MAX_DRAW_BUFFERS_WEBGL') 831 @DomName('WebGLDrawBuffers.MAX_DRAW_BUFFERS_WEBGL')
788 @DocsEditable() 832 @DocsEditable()
789 static const int MAX_DRAW_BUFFERS_WEBGL = 0x8824; 833 static const int MAX_DRAW_BUFFERS_WEBGL = 0x8824;
790 834
791 @JSName('drawBuffersWEBGL') 835 @JSName('drawBuffersWEBGL')
792 @DomName('WebGLDrawBuffers.drawBuffersWEBGL') 836 @DomName('WebGLDrawBuffers.drawBuffersWEBGL')
793 @DocsEditable() 837 @DocsEditable()
794 void drawBuffersWebgl(List<int> buffers) native; 838 void drawBuffersWebgl(List<int> buffers) native ;
795 } 839 }
796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 840 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
797 // for details. All rights reserved. Use of this source code is governed by a 841 // for details. All rights reserved. Use of this source code is governed by a
798 // BSD-style license that can be found in the LICENSE file. 842 // BSD-style license that can be found in the LICENSE file.
799 843
800
801 @DocsEditable() 844 @DocsEditable()
802 @DomName('EXTBlendMinMax') 845 @DomName('EXTBlendMinMax')
803 @Experimental() // untriaged 846 @Experimental() // untriaged
804 @Native("EXTBlendMinMax") 847 @Native("EXTBlendMinMax")
805 class ExtBlendMinMax extends Interceptor { 848 class ExtBlendMinMax extends Interceptor {
806 // To suppress missing implicit constructor warnings. 849 // To suppress missing implicit constructor warnings.
807 factory ExtBlendMinMax._() { throw new UnsupportedError("Not supported"); } 850 factory ExtBlendMinMax._() {
851 throw new UnsupportedError("Not supported");
852 }
808 853
809 @DomName('EXTBlendMinMax.MAX_EXT') 854 @DomName('EXTBlendMinMax.MAX_EXT')
810 @DocsEditable() 855 @DocsEditable()
811 @Experimental() // untriaged 856 @Experimental() // untriaged
812 static const int MAX_EXT = 0x8008; 857 static const int MAX_EXT = 0x8008;
813 858
814 @DomName('EXTBlendMinMax.MIN_EXT') 859 @DomName('EXTBlendMinMax.MIN_EXT')
815 @DocsEditable() 860 @DocsEditable()
816 @Experimental() // untriaged 861 @Experimental() // untriaged
817 static const int MIN_EXT = 0x8007; 862 static const int MIN_EXT = 0x8007;
818 } 863 }
819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 864 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
820 // for details. All rights reserved. Use of this source code is governed by a 865 // for details. All rights reserved. Use of this source code is governed by a
821 // BSD-style license that can be found in the LICENSE file. 866 // BSD-style license that can be found in the LICENSE file.
822 867
823
824 @DocsEditable() 868 @DocsEditable()
825 @DomName('EXTFragDepth') 869 @DomName('EXTFragDepth')
826 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/ 870 // http://www.khronos.org/registry/webgl/extensions/EXT_frag_depth/
827 @Experimental() 871 @Experimental()
828 @Native("EXTFragDepth") 872 @Native("EXTFragDepth")
829 class ExtFragDepth extends Interceptor { 873 class ExtFragDepth extends Interceptor {
830 // To suppress missing implicit constructor warnings. 874 // To suppress missing implicit constructor warnings.
831 factory ExtFragDepth._() { throw new UnsupportedError("Not supported"); } 875 factory ExtFragDepth._() {
876 throw new UnsupportedError("Not supported");
877 }
832 } 878 }
833 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 879 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
834 // for details. All rights reserved. Use of this source code is governed by a 880 // for details. All rights reserved. Use of this source code is governed by a
835 // BSD-style license that can be found in the LICENSE file. 881 // BSD-style license that can be found in the LICENSE file.
836 882
837
838 @DocsEditable() 883 @DocsEditable()
839 @DomName('EXTShaderTextureLOD') 884 @DomName('EXTShaderTextureLOD')
840 @Experimental() // untriaged 885 @Experimental() // untriaged
841 @Native("EXTShaderTextureLOD") 886 @Native("EXTShaderTextureLOD")
842 class ExtShaderTextureLod extends Interceptor { 887 class ExtShaderTextureLod extends Interceptor {
843 // To suppress missing implicit constructor warnings. 888 // To suppress missing implicit constructor warnings.
844 factory ExtShaderTextureLod._() { throw new UnsupportedError("Not supported"); } 889 factory ExtShaderTextureLod._() {
890 throw new UnsupportedError("Not supported");
891 }
845 } 892 }
846 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 893 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
847 // for details. All rights reserved. Use of this source code is governed by a 894 // for details. All rights reserved. Use of this source code is governed by a
848 // BSD-style license that can be found in the LICENSE file. 895 // BSD-style license that can be found in the LICENSE file.
849 896
850
851 @DocsEditable() 897 @DocsEditable()
852 @DomName('EXTTextureFilterAnisotropic') 898 @DomName('EXTTextureFilterAnisotropic')
853 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop ic/ 899 // http://www.khronos.org/registry/webgl/extensions/EXT_texture_filter_anisotrop ic/
854 @Experimental() 900 @Experimental()
855 @Native("EXTTextureFilterAnisotropic") 901 @Native("EXTTextureFilterAnisotropic")
856 class ExtTextureFilterAnisotropic extends Interceptor { 902 class ExtTextureFilterAnisotropic extends Interceptor {
857 // To suppress missing implicit constructor warnings. 903 // To suppress missing implicit constructor warnings.
858 factory ExtTextureFilterAnisotropic._() { throw new UnsupportedError("Not supp orted"); } 904 factory ExtTextureFilterAnisotropic._() {
905 throw new UnsupportedError("Not supported");
906 }
859 907
860 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT') 908 @DomName('EXTTextureFilterAnisotropic.MAX_TEXTURE_MAX_ANISOTROPY_EXT')
861 @DocsEditable() 909 @DocsEditable()
862 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF; 910 static const int MAX_TEXTURE_MAX_ANISOTROPY_EXT = 0x84FF;
863 911
864 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT') 912 @DomName('EXTTextureFilterAnisotropic.TEXTURE_MAX_ANISOTROPY_EXT')
865 @DocsEditable() 913 @DocsEditable()
866 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE; 914 static const int TEXTURE_MAX_ANISOTROPY_EXT = 0x84FE;
867 } 915 }
868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 916 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
869 // for details. All rights reserved. Use of this source code is governed by a 917 // for details. All rights reserved. Use of this source code is governed by a
870 // BSD-style license that can be found in the LICENSE file. 918 // BSD-style license that can be found in the LICENSE file.
871 919
872
873 @DocsEditable() 920 @DocsEditable()
874 @DomName('WebGLFramebuffer') 921 @DomName('WebGLFramebuffer')
875 @Unstable() 922 @Unstable()
876 @Native("WebGLFramebuffer") 923 @Native("WebGLFramebuffer")
877 class Framebuffer extends Interceptor { 924 class Framebuffer extends Interceptor {
878 // To suppress missing implicit constructor warnings. 925 // To suppress missing implicit constructor warnings.
879 factory Framebuffer._() { throw new UnsupportedError("Not supported"); } 926 factory Framebuffer._() {
927 throw new UnsupportedError("Not supported");
928 }
880 } 929 }
881 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
882 // for details. All rights reserved. Use of this source code is governed by a 931 // for details. All rights reserved. Use of this source code is governed by a
883 // BSD-style license that can be found in the LICENSE file. 932 // BSD-style license that can be found in the LICENSE file.
884 933
885
886 @DocsEditable() 934 @DocsEditable()
887 @DomName('WebGLLoseContext') 935 @DomName('WebGLLoseContext')
888 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/ 936 // http://www.khronos.org/registry/webgl/extensions/WEBGL_lose_context/
889 @Experimental() 937 @Experimental()
890 @Native("WebGLLoseContext,WebGLExtensionLoseContext") 938 @Native("WebGLLoseContext,WebGLExtensionLoseContext")
891 class LoseContext extends Interceptor { 939 class LoseContext extends Interceptor {
892 // To suppress missing implicit constructor warnings. 940 // To suppress missing implicit constructor warnings.
893 factory LoseContext._() { throw new UnsupportedError("Not supported"); } 941 factory LoseContext._() {
942 throw new UnsupportedError("Not supported");
943 }
894 944
895 @DomName('WebGLLoseContext.loseContext') 945 @DomName('WebGLLoseContext.loseContext')
896 @DocsEditable() 946 @DocsEditable()
897 void loseContext() native; 947 void loseContext() native ;
898 948
899 @DomName('WebGLLoseContext.restoreContext') 949 @DomName('WebGLLoseContext.restoreContext')
900 @DocsEditable() 950 @DocsEditable()
901 void restoreContext() native; 951 void restoreContext() native ;
902 } 952 }
903 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 953 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
904 // for details. All rights reserved. Use of this source code is governed by a 954 // for details. All rights reserved. Use of this source code is governed by a
905 // BSD-style license that can be found in the LICENSE file. 955 // BSD-style license that can be found in the LICENSE file.
906 956
907
908 @DocsEditable() 957 @DocsEditable()
909 @DomName('OESElementIndexUint') 958 @DomName('OESElementIndexUint')
910 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/ 959 // http://www.khronos.org/registry/webgl/extensions/OES_element_index_uint/
911 @Experimental() // experimental 960 @Experimental() // experimental
912 @Native("OESElementIndexUint") 961 @Native("OESElementIndexUint")
913 class OesElementIndexUint extends Interceptor { 962 class OesElementIndexUint extends Interceptor {
914 // To suppress missing implicit constructor warnings. 963 // To suppress missing implicit constructor warnings.
915 factory OesElementIndexUint._() { throw new UnsupportedError("Not supported"); } 964 factory OesElementIndexUint._() {
965 throw new UnsupportedError("Not supported");
966 }
916 } 967 }
917 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 968 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
918 // for details. All rights reserved. Use of this source code is governed by a 969 // for details. All rights reserved. Use of this source code is governed by a
919 // BSD-style license that can be found in the LICENSE file. 970 // BSD-style license that can be found in the LICENSE file.
920 971
921
922 @DocsEditable() 972 @DocsEditable()
923 @DomName('OESStandardDerivatives') 973 @DomName('OESStandardDerivatives')
924 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/ 974 // http://www.khronos.org/registry/webgl/extensions/OES_standard_derivatives/
925 @Experimental() // experimental 975 @Experimental() // experimental
926 @Native("OESStandardDerivatives") 976 @Native("OESStandardDerivatives")
927 class OesStandardDerivatives extends Interceptor { 977 class OesStandardDerivatives extends Interceptor {
928 // To suppress missing implicit constructor warnings. 978 // To suppress missing implicit constructor warnings.
929 factory OesStandardDerivatives._() { throw new UnsupportedError("Not supported "); } 979 factory OesStandardDerivatives._() {
980 throw new UnsupportedError("Not supported");
981 }
930 982
931 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES') 983 @DomName('OESStandardDerivatives.FRAGMENT_SHADER_DERIVATIVE_HINT_OES')
932 @DocsEditable() 984 @DocsEditable()
933 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B; 985 static const int FRAGMENT_SHADER_DERIVATIVE_HINT_OES = 0x8B8B;
934 } 986 }
935 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 987 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
936 // for details. All rights reserved. Use of this source code is governed by a 988 // for details. All rights reserved. Use of this source code is governed by a
937 // BSD-style license that can be found in the LICENSE file. 989 // BSD-style license that can be found in the LICENSE file.
938 990
939
940 @DocsEditable() 991 @DocsEditable()
941 @DomName('OESTextureFloat') 992 @DomName('OESTextureFloat')
942 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/ 993 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float/
943 @Experimental() // experimental 994 @Experimental() // experimental
944 @Native("OESTextureFloat") 995 @Native("OESTextureFloat")
945 class OesTextureFloat extends Interceptor { 996 class OesTextureFloat extends Interceptor {
946 // To suppress missing implicit constructor warnings. 997 // To suppress missing implicit constructor warnings.
947 factory OesTextureFloat._() { throw new UnsupportedError("Not supported"); } 998 factory OesTextureFloat._() {
999 throw new UnsupportedError("Not supported");
1000 }
948 } 1001 }
949 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
950 // for details. All rights reserved. Use of this source code is governed by a 1003 // for details. All rights reserved. Use of this source code is governed by a
951 // BSD-style license that can be found in the LICENSE file. 1004 // BSD-style license that can be found in the LICENSE file.
952 1005
953
954 @DocsEditable() 1006 @DocsEditable()
955 @DomName('OESTextureFloatLinear') 1007 @DomName('OESTextureFloatLinear')
956 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/ 1008 // http://www.khronos.org/registry/webgl/extensions/OES_texture_float_linear/
957 @Experimental() 1009 @Experimental()
958 @Native("OESTextureFloatLinear") 1010 @Native("OESTextureFloatLinear")
959 class OesTextureFloatLinear extends Interceptor { 1011 class OesTextureFloatLinear extends Interceptor {
960 // To suppress missing implicit constructor warnings. 1012 // To suppress missing implicit constructor warnings.
961 factory OesTextureFloatLinear._() { throw new UnsupportedError("Not supported" ); } 1013 factory OesTextureFloatLinear._() {
1014 throw new UnsupportedError("Not supported");
1015 }
962 } 1016 }
963 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1017 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
964 // for details. All rights reserved. Use of this source code is governed by a 1018 // for details. All rights reserved. Use of this source code is governed by a
965 // BSD-style license that can be found in the LICENSE file. 1019 // BSD-style license that can be found in the LICENSE file.
966 1020
967
968 @DocsEditable() 1021 @DocsEditable()
969 @DomName('OESTextureHalfFloat') 1022 @DomName('OESTextureHalfFloat')
970 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/ 1023 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float/
971 @Experimental() // experimental 1024 @Experimental() // experimental
972 @Native("OESTextureHalfFloat") 1025 @Native("OESTextureHalfFloat")
973 class OesTextureHalfFloat extends Interceptor { 1026 class OesTextureHalfFloat extends Interceptor {
974 // To suppress missing implicit constructor warnings. 1027 // To suppress missing implicit constructor warnings.
975 factory OesTextureHalfFloat._() { throw new UnsupportedError("Not supported"); } 1028 factory OesTextureHalfFloat._() {
1029 throw new UnsupportedError("Not supported");
1030 }
976 1031
977 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES') 1032 @DomName('OESTextureHalfFloat.HALF_FLOAT_OES')
978 @DocsEditable() 1033 @DocsEditable()
979 static const int HALF_FLOAT_OES = 0x8D61; 1034 static const int HALF_FLOAT_OES = 0x8D61;
980 } 1035 }
981 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1036 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
982 // for details. All rights reserved. Use of this source code is governed by a 1037 // for details. All rights reserved. Use of this source code is governed by a
983 // BSD-style license that can be found in the LICENSE file. 1038 // BSD-style license that can be found in the LICENSE file.
984 1039
985
986 @DocsEditable() 1040 @DocsEditable()
987 @DomName('OESTextureHalfFloatLinear') 1041 @DomName('OESTextureHalfFloatLinear')
988 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea r/ 1042 // http://www.khronos.org/registry/webgl/extensions/OES_texture_half_float_linea r/
989 @Experimental() 1043 @Experimental()
990 @Native("OESTextureHalfFloatLinear") 1044 @Native("OESTextureHalfFloatLinear")
991 class OesTextureHalfFloatLinear extends Interceptor { 1045 class OesTextureHalfFloatLinear extends Interceptor {
992 // To suppress missing implicit constructor warnings. 1046 // To suppress missing implicit constructor warnings.
993 factory OesTextureHalfFloatLinear._() { throw new UnsupportedError("Not suppor ted"); } 1047 factory OesTextureHalfFloatLinear._() {
1048 throw new UnsupportedError("Not supported");
1049 }
994 } 1050 }
995 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1051 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
996 // for details. All rights reserved. Use of this source code is governed by a 1052 // for details. All rights reserved. Use of this source code is governed by a
997 // BSD-style license that can be found in the LICENSE file. 1053 // BSD-style license that can be found in the LICENSE file.
998 1054
999
1000 @DocsEditable() 1055 @DocsEditable()
1001 @DomName('OESVertexArrayObject') 1056 @DomName('OESVertexArrayObject')
1002 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 1057 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
1003 @Experimental() // experimental 1058 @Experimental() // experimental
1004 @Native("OESVertexArrayObject") 1059 @Native("OESVertexArrayObject")
1005 class OesVertexArrayObject extends Interceptor { 1060 class OesVertexArrayObject extends Interceptor {
1006 // To suppress missing implicit constructor warnings. 1061 // To suppress missing implicit constructor warnings.
1007 factory OesVertexArrayObject._() { throw new UnsupportedError("Not supported") ; } 1062 factory OesVertexArrayObject._() {
1063 throw new UnsupportedError("Not supported");
1064 }
1008 1065
1009 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES') 1066 @DomName('OESVertexArrayObject.VERTEX_ARRAY_BINDING_OES')
1010 @DocsEditable() 1067 @DocsEditable()
1011 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5; 1068 static const int VERTEX_ARRAY_BINDING_OES = 0x85B5;
1012 1069
1013 @JSName('bindVertexArrayOES') 1070 @JSName('bindVertexArrayOES')
1014 @DomName('OESVertexArrayObject.bindVertexArrayOES') 1071 @DomName('OESVertexArrayObject.bindVertexArrayOES')
1015 @DocsEditable() 1072 @DocsEditable()
1016 void bindVertexArray(VertexArrayObject arrayObject) native; 1073 void bindVertexArray(VertexArrayObject arrayObject) native ;
1017 1074
1018 @JSName('createVertexArrayOES') 1075 @JSName('createVertexArrayOES')
1019 @DomName('OESVertexArrayObject.createVertexArrayOES') 1076 @DomName('OESVertexArrayObject.createVertexArrayOES')
1020 @DocsEditable() 1077 @DocsEditable()
1021 VertexArrayObject createVertexArray() native; 1078 VertexArrayObject createVertexArray() native ;
1022 1079
1023 @JSName('deleteVertexArrayOES') 1080 @JSName('deleteVertexArrayOES')
1024 @DomName('OESVertexArrayObject.deleteVertexArrayOES') 1081 @DomName('OESVertexArrayObject.deleteVertexArrayOES')
1025 @DocsEditable() 1082 @DocsEditable()
1026 void deleteVertexArray(VertexArrayObject arrayObject) native; 1083 void deleteVertexArray(VertexArrayObject arrayObject) native ;
1027 1084
1028 @JSName('isVertexArrayOES') 1085 @JSName('isVertexArrayOES')
1029 @DomName('OESVertexArrayObject.isVertexArrayOES') 1086 @DomName('OESVertexArrayObject.isVertexArrayOES')
1030 @DocsEditable() 1087 @DocsEditable()
1031 bool isVertexArray(VertexArrayObject arrayObject) native; 1088 bool isVertexArray(VertexArrayObject arrayObject) native ;
1032 } 1089 }
1033 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1034 // for details. All rights reserved. Use of this source code is governed by a 1091 // for details. All rights reserved. Use of this source code is governed by a
1035 // BSD-style license that can be found in the LICENSE file. 1092 // BSD-style license that can be found in the LICENSE file.
1036 1093
1037
1038 @DocsEditable() 1094 @DocsEditable()
1039 @DomName('WebGLProgram') 1095 @DomName('WebGLProgram')
1040 @Unstable() 1096 @Unstable()
1041 @Native("WebGLProgram") 1097 @Native("WebGLProgram")
1042 class Program extends Interceptor { 1098 class Program extends Interceptor {
1043 // To suppress missing implicit constructor warnings. 1099 // To suppress missing implicit constructor warnings.
1044 factory Program._() { throw new UnsupportedError("Not supported"); } 1100 factory Program._() {
1101 throw new UnsupportedError("Not supported");
1102 }
1045 } 1103 }
1046 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1104 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
1047 // for details. All rights reserved. Use of this source code is governed by a 1105 // for details. All rights reserved. Use of this source code is governed by a
1048 // BSD-style license that can be found in the LICENSE file. 1106 // BSD-style license that can be found in the LICENSE file.
1049 1107
1050
1051 @DocsEditable() 1108 @DocsEditable()
1052 @DomName('WebGLRenderbuffer') 1109 @DomName('WebGLRenderbuffer')
1053 @Unstable() 1110 @Unstable()
1054 @Native("WebGLRenderbuffer") 1111 @Native("WebGLRenderbuffer")
1055 class Renderbuffer extends Interceptor { 1112 class Renderbuffer extends Interceptor {
1056 // To suppress missing implicit constructor warnings. 1113 // To suppress missing implicit constructor warnings.
1057 factory Renderbuffer._() { throw new UnsupportedError("Not supported"); } 1114 factory Renderbuffer._() {
1115 throw new UnsupportedError("Not supported");
1116 }
1058 } 1117 }
1059 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1118 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
1060 // for details. All rights reserved. Use of this source code is governed by a 1119 // for details. All rights reserved. Use of this source code is governed by a
1061 // BSD-style license that can be found in the LICENSE file. 1120 // BSD-style license that can be found in the LICENSE file.
1062 1121
1063
1064 @DomName('WebGLRenderingContext') 1122 @DomName('WebGLRenderingContext')
1065 @SupportedBrowser(SupportedBrowser.CHROME) 1123 @SupportedBrowser(SupportedBrowser.CHROME)
1066 @SupportedBrowser(SupportedBrowser.FIREFOX) 1124 @SupportedBrowser(SupportedBrowser.FIREFOX)
1067 @Experimental() 1125 @Experimental()
1068 @Unstable() 1126 @Unstable()
1069 @Native("WebGLRenderingContext") 1127 @Native("WebGLRenderingContext")
1070 class RenderingContext extends Interceptor implements CanvasRenderingContext { 1128 class RenderingContext extends Interceptor implements CanvasRenderingContext {
1071 // To suppress missing implicit constructor warnings. 1129 // To suppress missing implicit constructor warnings.
1072 factory RenderingContext._() { throw new UnsupportedError("Not supported"); } 1130 factory RenderingContext._() {
1131 throw new UnsupportedError("Not supported");
1132 }
1073 1133
1074 /// Checks if this type is supported on the current platform. 1134 /// Checks if this type is supported on the current platform.
1075 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)'); 1135 static bool get supported => JS('bool', '!!(window.WebGLRenderingContext)');
1076 1136
1077 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES') 1137 @DomName('WebGLRenderingContext.ACTIVE_ATTRIBUTES')
1078 @DocsEditable() 1138 @DocsEditable()
1079 static const int ACTIVE_ATTRIBUTES = 0x8B89; 1139 static const int ACTIVE_ATTRIBUTES = 0x8B89;
1080 1140
1081 @DomName('WebGLRenderingContext.ACTIVE_TEXTURE') 1141 @DomName('WebGLRenderingContext.ACTIVE_TEXTURE')
1082 @DocsEditable() 1142 @DocsEditable()
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after
2274 @DomName('WebGLRenderingContext.drawingBufferHeight') 2334 @DomName('WebGLRenderingContext.drawingBufferHeight')
2275 @DocsEditable() 2335 @DocsEditable()
2276 final int drawingBufferHeight; 2336 final int drawingBufferHeight;
2277 2337
2278 @DomName('WebGLRenderingContext.drawingBufferWidth') 2338 @DomName('WebGLRenderingContext.drawingBufferWidth')
2279 @DocsEditable() 2339 @DocsEditable()
2280 final int drawingBufferWidth; 2340 final int drawingBufferWidth;
2281 2341
2282 @DomName('WebGLRenderingContext.activeTexture') 2342 @DomName('WebGLRenderingContext.activeTexture')
2283 @DocsEditable() 2343 @DocsEditable()
2284 void activeTexture(int texture) native; 2344 void activeTexture(int texture) native ;
2285 2345
2286 @DomName('WebGLRenderingContext.attachShader') 2346 @DomName('WebGLRenderingContext.attachShader')
2287 @DocsEditable() 2347 @DocsEditable()
2288 void attachShader(Program program, Shader shader) native; 2348 void attachShader(Program program, Shader shader) native ;
2289 2349
2290 @DomName('WebGLRenderingContext.bindAttribLocation') 2350 @DomName('WebGLRenderingContext.bindAttribLocation')
2291 @DocsEditable() 2351 @DocsEditable()
2292 void bindAttribLocation(Program program, int index, String name) native; 2352 void bindAttribLocation(Program program, int index, String name) native ;
2293 2353
2294 @DomName('WebGLRenderingContext.bindBuffer') 2354 @DomName('WebGLRenderingContext.bindBuffer')
2295 @DocsEditable() 2355 @DocsEditable()
2296 void bindBuffer(int target, Buffer buffer) native; 2356 void bindBuffer(int target, Buffer buffer) native ;
2297 2357
2298 @DomName('WebGLRenderingContext.bindFramebuffer') 2358 @DomName('WebGLRenderingContext.bindFramebuffer')
2299 @DocsEditable() 2359 @DocsEditable()
2300 void bindFramebuffer(int target, Framebuffer framebuffer) native; 2360 void bindFramebuffer(int target, Framebuffer framebuffer) native ;
2301 2361
2302 @DomName('WebGLRenderingContext.bindRenderbuffer') 2362 @DomName('WebGLRenderingContext.bindRenderbuffer')
2303 @DocsEditable() 2363 @DocsEditable()
2304 void bindRenderbuffer(int target, Renderbuffer renderbuffer) native; 2364 void bindRenderbuffer(int target, Renderbuffer renderbuffer) native ;
2305 2365
2306 @DomName('WebGLRenderingContext.bindTexture') 2366 @DomName('WebGLRenderingContext.bindTexture')
2307 @DocsEditable() 2367 @DocsEditable()
2308 void bindTexture(int target, Texture texture) native; 2368 void bindTexture(int target, Texture texture) native ;
2309 2369
2310 @DomName('WebGLRenderingContext.blendColor') 2370 @DomName('WebGLRenderingContext.blendColor')
2311 @DocsEditable() 2371 @DocsEditable()
2312 void blendColor(num red, num green, num blue, num alpha) native; 2372 void blendColor(num red, num green, num blue, num alpha) native ;
2313 2373
2314 @DomName('WebGLRenderingContext.blendEquation') 2374 @DomName('WebGLRenderingContext.blendEquation')
2315 @DocsEditable() 2375 @DocsEditable()
2316 void blendEquation(int mode) native; 2376 void blendEquation(int mode) native ;
2317 2377
2318 @DomName('WebGLRenderingContext.blendEquationSeparate') 2378 @DomName('WebGLRenderingContext.blendEquationSeparate')
2319 @DocsEditable() 2379 @DocsEditable()
2320 void blendEquationSeparate(int modeRGB, int modeAlpha) native; 2380 void blendEquationSeparate(int modeRGB, int modeAlpha) native ;
2321 2381
2322 @DomName('WebGLRenderingContext.blendFunc') 2382 @DomName('WebGLRenderingContext.blendFunc')
2323 @DocsEditable() 2383 @DocsEditable()
2324 void blendFunc(int sfactor, int dfactor) native; 2384 void blendFunc(int sfactor, int dfactor) native ;
2325 2385
2326 @DomName('WebGLRenderingContext.blendFuncSeparate') 2386 @DomName('WebGLRenderingContext.blendFuncSeparate')
2327 @DocsEditable() 2387 @DocsEditable()
2328 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) nat ive; 2388 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha)
2389 native ;
2329 2390
2330 @JSName('bufferData') 2391 @JSName('bufferData')
2331 /** 2392 /**
2332 * Buffers the specified data. 2393 * Buffers the specified data.
2333 * 2394 *
2334 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t 2395 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t
2335 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] 2396 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData]
2336 * depending on your purposes. 2397 * depending on your purposes.
2337 */ 2398 */
2338 @DomName('WebGLRenderingContext.bufferData') 2399 @DomName('WebGLRenderingContext.bufferData')
2339 @DocsEditable() 2400 @DocsEditable()
2340 void bufferByteData(int target, ByteBuffer data, int usage) native; 2401 void bufferByteData(int target, ByteBuffer data, int usage) native ;
2341 2402
2342 /** 2403 /**
2343 * Buffers the specified data. 2404 * Buffers the specified data.
2344 * 2405 *
2345 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t 2406 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t
2346 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] 2407 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData]
2347 * depending on your purposes. 2408 * depending on your purposes.
2348 */ 2409 */
2349 @DomName('WebGLRenderingContext.bufferData') 2410 @DomName('WebGLRenderingContext.bufferData')
2350 @DocsEditable() 2411 @DocsEditable()
2351 void bufferData(int target, data_OR_size, int usage) native; 2412 void bufferData(int target, data_OR_size, int usage) native ;
2352 2413
2353 @JSName('bufferData') 2414 @JSName('bufferData')
2354 /** 2415 /**
2355 * Buffers the specified data. 2416 * Buffers the specified data.
2356 * 2417 *
2357 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t 2418 * The [bufferData] method is provided for WebGL API compatibility reasons, bu t
2358 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData] 2419 * it is highly recommended that you use [bufferDataTyped] or [bufferByteData]
2359 * depending on your purposes. 2420 * depending on your purposes.
2360 */ 2421 */
2361 @DomName('WebGLRenderingContext.bufferData') 2422 @DomName('WebGLRenderingContext.bufferData')
2362 @DocsEditable() 2423 @DocsEditable()
2363 void bufferDataTyped(int target, TypedData data, int usage) native; 2424 void bufferDataTyped(int target, TypedData data, int usage) native ;
2364 2425
2365 @JSName('bufferSubData') 2426 @JSName('bufferSubData')
2366 /** 2427 /**
2367 * Buffers the specified subset of data. 2428 * Buffers the specified subset of data.
2368 * 2429 *
2369 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but 2430 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but
2370 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData] 2431 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData]
2371 * depending on your purposes. 2432 * depending on your purposes.
2372 */ 2433 */
2373 @DomName('WebGLRenderingContext.bufferSubData') 2434 @DomName('WebGLRenderingContext.bufferSubData')
2374 @DocsEditable() 2435 @DocsEditable()
2375 void bufferSubByteData(int target, int offset, ByteBuffer data) native; 2436 void bufferSubByteData(int target, int offset, ByteBuffer data) native ;
2376 2437
2377 /** 2438 /**
2378 * Buffers the specified subset of data. 2439 * Buffers the specified subset of data.
2379 * 2440 *
2380 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but 2441 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but
2381 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData] 2442 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData]
2382 * depending on your purposes. 2443 * depending on your purposes.
2383 */ 2444 */
2384 @DomName('WebGLRenderingContext.bufferSubData') 2445 @DomName('WebGLRenderingContext.bufferSubData')
2385 @DocsEditable() 2446 @DocsEditable()
2386 void bufferSubData(int target, int offset, data) native; 2447 void bufferSubData(int target, int offset, data) native ;
2387 2448
2388 @JSName('bufferSubData') 2449 @JSName('bufferSubData')
2389 /** 2450 /**
2390 * Buffers the specified subset of data. 2451 * Buffers the specified subset of data.
2391 * 2452 *
2392 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but 2453 * The [bufferSubData] method is provided for WebGL API compatibility reasons, but
2393 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData] 2454 * it is highly recommended that you use [bufferSubDataTyped] or [bufferSubByt eData]
2394 * depending on your purposes. 2455 * depending on your purposes.
2395 */ 2456 */
2396 @DomName('WebGLRenderingContext.bufferSubData') 2457 @DomName('WebGLRenderingContext.bufferSubData')
2397 @DocsEditable() 2458 @DocsEditable()
2398 void bufferSubDataTyped(int target, int offset, TypedData data) native; 2459 void bufferSubDataTyped(int target, int offset, TypedData data) native ;
2399 2460
2400 @DomName('WebGLRenderingContext.checkFramebufferStatus') 2461 @DomName('WebGLRenderingContext.checkFramebufferStatus')
2401 @DocsEditable() 2462 @DocsEditable()
2402 int checkFramebufferStatus(int target) native; 2463 int checkFramebufferStatus(int target) native ;
2403 2464
2404 @DomName('WebGLRenderingContext.clear') 2465 @DomName('WebGLRenderingContext.clear')
2405 @DocsEditable() 2466 @DocsEditable()
2406 void clear(int mask) native; 2467 void clear(int mask) native ;
2407 2468
2408 @DomName('WebGLRenderingContext.clearColor') 2469 @DomName('WebGLRenderingContext.clearColor')
2409 @DocsEditable() 2470 @DocsEditable()
2410 void clearColor(num red, num green, num blue, num alpha) native; 2471 void clearColor(num red, num green, num blue, num alpha) native ;
2411 2472
2412 @DomName('WebGLRenderingContext.clearDepth') 2473 @DomName('WebGLRenderingContext.clearDepth')
2413 @DocsEditable() 2474 @DocsEditable()
2414 void clearDepth(num depth) native; 2475 void clearDepth(num depth) native ;
2415 2476
2416 @DomName('WebGLRenderingContext.clearStencil') 2477 @DomName('WebGLRenderingContext.clearStencil')
2417 @DocsEditable() 2478 @DocsEditable()
2418 void clearStencil(int s) native; 2479 void clearStencil(int s) native ;
2419 2480
2420 @DomName('WebGLRenderingContext.colorMask') 2481 @DomName('WebGLRenderingContext.colorMask')
2421 @DocsEditable() 2482 @DocsEditable()
2422 void colorMask(bool red, bool green, bool blue, bool alpha) native; 2483 void colorMask(bool red, bool green, bool blue, bool alpha) native ;
2423 2484
2424 @DomName('WebGLRenderingContext.compileShader') 2485 @DomName('WebGLRenderingContext.compileShader')
2425 @DocsEditable() 2486 @DocsEditable()
2426 void compileShader(Shader shader) native; 2487 void compileShader(Shader shader) native ;
2427 2488
2428 @DomName('WebGLRenderingContext.compressedTexImage2D') 2489 @DomName('WebGLRenderingContext.compressedTexImage2D')
2429 @DocsEditable() 2490 @DocsEditable()
2430 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, TypedData data) native; 2491 void compressedTexImage2D(int target, int level, int internalformat,
2492 int width, int height, int border, TypedData data) native ;
2431 2493
2432 @DomName('WebGLRenderingContext.compressedTexSubImage2D') 2494 @DomName('WebGLRenderingContext.compressedTexSubImage2D')
2433 @DocsEditable() 2495 @DocsEditable()
2434 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, TypedData data) native; 2496 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset,
2497 int width, int height, int format, TypedData data) native ;
2435 2498
2436 @DomName('WebGLRenderingContext.copyTexImage2D') 2499 @DomName('WebGLRenderingContext.copyTexImage2D')
2437 @DocsEditable() 2500 @DocsEditable()
2438 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) native; 2501 void copyTexImage2D(int target, int level, int internalformat, int x, int y,
2502 int width, int height, int border) native ;
2439 2503
2440 @DomName('WebGLRenderingContext.copyTexSubImage2D') 2504 @DomName('WebGLRenderingContext.copyTexSubImage2D')
2441 @DocsEditable() 2505 @DocsEditable()
2442 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) native; 2506 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x,
2507 int y, int width, int height) native ;
2443 2508
2444 @DomName('WebGLRenderingContext.createBuffer') 2509 @DomName('WebGLRenderingContext.createBuffer')
2445 @DocsEditable() 2510 @DocsEditable()
2446 Buffer createBuffer() native; 2511 Buffer createBuffer() native ;
2447 2512
2448 @DomName('WebGLRenderingContext.createFramebuffer') 2513 @DomName('WebGLRenderingContext.createFramebuffer')
2449 @DocsEditable() 2514 @DocsEditable()
2450 Framebuffer createFramebuffer() native; 2515 Framebuffer createFramebuffer() native ;
2451 2516
2452 @DomName('WebGLRenderingContext.createProgram') 2517 @DomName('WebGLRenderingContext.createProgram')
2453 @DocsEditable() 2518 @DocsEditable()
2454 Program createProgram() native; 2519 Program createProgram() native ;
2455 2520
2456 @DomName('WebGLRenderingContext.createRenderbuffer') 2521 @DomName('WebGLRenderingContext.createRenderbuffer')
2457 @DocsEditable() 2522 @DocsEditable()
2458 Renderbuffer createRenderbuffer() native; 2523 Renderbuffer createRenderbuffer() native ;
2459 2524
2460 @DomName('WebGLRenderingContext.createShader') 2525 @DomName('WebGLRenderingContext.createShader')
2461 @DocsEditable() 2526 @DocsEditable()
2462 Shader createShader(int type) native; 2527 Shader createShader(int type) native ;
2463 2528
2464 @DomName('WebGLRenderingContext.createTexture') 2529 @DomName('WebGLRenderingContext.createTexture')
2465 @DocsEditable() 2530 @DocsEditable()
2466 Texture createTexture() native; 2531 Texture createTexture() native ;
2467 2532
2468 @DomName('WebGLRenderingContext.cullFace') 2533 @DomName('WebGLRenderingContext.cullFace')
2469 @DocsEditable() 2534 @DocsEditable()
2470 void cullFace(int mode) native; 2535 void cullFace(int mode) native ;
2471 2536
2472 @DomName('WebGLRenderingContext.deleteBuffer') 2537 @DomName('WebGLRenderingContext.deleteBuffer')
2473 @DocsEditable() 2538 @DocsEditable()
2474 void deleteBuffer(Buffer buffer) native; 2539 void deleteBuffer(Buffer buffer) native ;
2475 2540
2476 @DomName('WebGLRenderingContext.deleteFramebuffer') 2541 @DomName('WebGLRenderingContext.deleteFramebuffer')
2477 @DocsEditable() 2542 @DocsEditable()
2478 void deleteFramebuffer(Framebuffer framebuffer) native; 2543 void deleteFramebuffer(Framebuffer framebuffer) native ;
2479 2544
2480 @DomName('WebGLRenderingContext.deleteProgram') 2545 @DomName('WebGLRenderingContext.deleteProgram')
2481 @DocsEditable() 2546 @DocsEditable()
2482 void deleteProgram(Program program) native; 2547 void deleteProgram(Program program) native ;
2483 2548
2484 @DomName('WebGLRenderingContext.deleteRenderbuffer') 2549 @DomName('WebGLRenderingContext.deleteRenderbuffer')
2485 @DocsEditable() 2550 @DocsEditable()
2486 void deleteRenderbuffer(Renderbuffer renderbuffer) native; 2551 void deleteRenderbuffer(Renderbuffer renderbuffer) native ;
2487 2552
2488 @DomName('WebGLRenderingContext.deleteShader') 2553 @DomName('WebGLRenderingContext.deleteShader')
2489 @DocsEditable() 2554 @DocsEditable()
2490 void deleteShader(Shader shader) native; 2555 void deleteShader(Shader shader) native ;
2491 2556
2492 @DomName('WebGLRenderingContext.deleteTexture') 2557 @DomName('WebGLRenderingContext.deleteTexture')
2493 @DocsEditable() 2558 @DocsEditable()
2494 void deleteTexture(Texture texture) native; 2559 void deleteTexture(Texture texture) native ;
2495 2560
2496 @DomName('WebGLRenderingContext.depthFunc') 2561 @DomName('WebGLRenderingContext.depthFunc')
2497 @DocsEditable() 2562 @DocsEditable()
2498 void depthFunc(int func) native; 2563 void depthFunc(int func) native ;
2499 2564
2500 @DomName('WebGLRenderingContext.depthMask') 2565 @DomName('WebGLRenderingContext.depthMask')
2501 @DocsEditable() 2566 @DocsEditable()
2502 void depthMask(bool flag) native; 2567 void depthMask(bool flag) native ;
2503 2568
2504 @DomName('WebGLRenderingContext.depthRange') 2569 @DomName('WebGLRenderingContext.depthRange')
2505 @DocsEditable() 2570 @DocsEditable()
2506 void depthRange(num zNear, num zFar) native; 2571 void depthRange(num zNear, num zFar) native ;
2507 2572
2508 @DomName('WebGLRenderingContext.detachShader') 2573 @DomName('WebGLRenderingContext.detachShader')
2509 @DocsEditable() 2574 @DocsEditable()
2510 void detachShader(Program program, Shader shader) native; 2575 void detachShader(Program program, Shader shader) native ;
2511 2576
2512 @DomName('WebGLRenderingContext.disable') 2577 @DomName('WebGLRenderingContext.disable')
2513 @DocsEditable() 2578 @DocsEditable()
2514 void disable(int cap) native; 2579 void disable(int cap) native ;
2515 2580
2516 @DomName('WebGLRenderingContext.disableVertexAttribArray') 2581 @DomName('WebGLRenderingContext.disableVertexAttribArray')
2517 @DocsEditable() 2582 @DocsEditable()
2518 void disableVertexAttribArray(int index) native; 2583 void disableVertexAttribArray(int index) native ;
2519 2584
2520 @DomName('WebGLRenderingContext.drawArrays') 2585 @DomName('WebGLRenderingContext.drawArrays')
2521 @DocsEditable() 2586 @DocsEditable()
2522 void drawArrays(int mode, int first, int count) native; 2587 void drawArrays(int mode, int first, int count) native ;
2523 2588
2524 @DomName('WebGLRenderingContext.drawElements') 2589 @DomName('WebGLRenderingContext.drawElements')
2525 @DocsEditable() 2590 @DocsEditable()
2526 void drawElements(int mode, int count, int type, int offset) native; 2591 void drawElements(int mode, int count, int type, int offset) native ;
2527 2592
2528 @DomName('WebGLRenderingContext.enable') 2593 @DomName('WebGLRenderingContext.enable')
2529 @DocsEditable() 2594 @DocsEditable()
2530 void enable(int cap) native; 2595 void enable(int cap) native ;
2531 2596
2532 @DomName('WebGLRenderingContext.enableVertexAttribArray') 2597 @DomName('WebGLRenderingContext.enableVertexAttribArray')
2533 @DocsEditable() 2598 @DocsEditable()
2534 void enableVertexAttribArray(int index) native; 2599 void enableVertexAttribArray(int index) native ;
2535 2600
2536 @DomName('WebGLRenderingContext.finish') 2601 @DomName('WebGLRenderingContext.finish')
2537 @DocsEditable() 2602 @DocsEditable()
2538 void finish() native; 2603 void finish() native ;
2539 2604
2540 @DomName('WebGLRenderingContext.flush') 2605 @DomName('WebGLRenderingContext.flush')
2541 @DocsEditable() 2606 @DocsEditable()
2542 void flush() native; 2607 void flush() native ;
2543 2608
2544 @DomName('WebGLRenderingContext.framebufferRenderbuffer') 2609 @DomName('WebGLRenderingContext.framebufferRenderbuffer')
2545 @DocsEditable() 2610 @DocsEditable()
2546 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, Renderbuffer renderbuffer) native; 2611 void framebufferRenderbuffer(int target, int attachment,
2612 int renderbuffertarget, Renderbuffer renderbuffer) native ;
2547 2613
2548 @DomName('WebGLRenderingContext.framebufferTexture2D') 2614 @DomName('WebGLRenderingContext.framebufferTexture2D')
2549 @DocsEditable() 2615 @DocsEditable()
2550 void framebufferTexture2D(int target, int attachment, int textarget, Texture t exture, int level) native; 2616 void framebufferTexture2D(int target, int attachment, int textarget,
2617 Texture texture, int level) native ;
2551 2618
2552 @DomName('WebGLRenderingContext.frontFace') 2619 @DomName('WebGLRenderingContext.frontFace')
2553 @DocsEditable() 2620 @DocsEditable()
2554 void frontFace(int mode) native; 2621 void frontFace(int mode) native ;
2555 2622
2556 @DomName('WebGLRenderingContext.generateMipmap') 2623 @DomName('WebGLRenderingContext.generateMipmap')
2557 @DocsEditable() 2624 @DocsEditable()
2558 void generateMipmap(int target) native; 2625 void generateMipmap(int target) native ;
2559 2626
2560 @DomName('WebGLRenderingContext.getActiveAttrib') 2627 @DomName('WebGLRenderingContext.getActiveAttrib')
2561 @DocsEditable() 2628 @DocsEditable()
2562 ActiveInfo getActiveAttrib(Program program, int index) native; 2629 ActiveInfo getActiveAttrib(Program program, int index) native ;
2563 2630
2564 @DomName('WebGLRenderingContext.getActiveUniform') 2631 @DomName('WebGLRenderingContext.getActiveUniform')
2565 @DocsEditable() 2632 @DocsEditable()
2566 ActiveInfo getActiveUniform(Program program, int index) native; 2633 ActiveInfo getActiveUniform(Program program, int index) native ;
2567 2634
2568 @DomName('WebGLRenderingContext.getAttachedShaders') 2635 @DomName('WebGLRenderingContext.getAttachedShaders')
2569 @DocsEditable() 2636 @DocsEditable()
2570 List<Shader> getAttachedShaders(Program program) native; 2637 List<Shader> getAttachedShaders(Program program) native ;
2571 2638
2572 @DomName('WebGLRenderingContext.getAttribLocation') 2639 @DomName('WebGLRenderingContext.getAttribLocation')
2573 @DocsEditable() 2640 @DocsEditable()
2574 int getAttribLocation(Program program, String name) native; 2641 int getAttribLocation(Program program, String name) native ;
2575 2642
2576 @DomName('WebGLRenderingContext.getBufferParameter') 2643 @DomName('WebGLRenderingContext.getBufferParameter')
2577 @DocsEditable() 2644 @DocsEditable()
2578 @Creates('int|Null') 2645 @Creates('int|Null')
2579 @Returns('int|Null') 2646 @Returns('int|Null')
2580 Object getBufferParameter(int target, int pname) native; 2647 Object getBufferParameter(int target, int pname) native ;
2581 2648
2582 @DomName('WebGLRenderingContext.getContextAttributes') 2649 @DomName('WebGLRenderingContext.getContextAttributes')
2583 @DocsEditable() 2650 @DocsEditable()
2584 @Creates('ContextAttributes|=Object') 2651 @Creates('ContextAttributes|=Object')
2585 ContextAttributes getContextAttributes() { 2652 ContextAttributes getContextAttributes() {
2586 return convertNativeToDart_ContextAttributes(_getContextAttributes_1()); 2653 return convertNativeToDart_ContextAttributes(_getContextAttributes_1());
2587 } 2654 }
2655
2588 @JSName('getContextAttributes') 2656 @JSName('getContextAttributes')
2589 @DomName('WebGLRenderingContext.getContextAttributes') 2657 @DomName('WebGLRenderingContext.getContextAttributes')
2590 @DocsEditable() 2658 @DocsEditable()
2591 @Creates('ContextAttributes|=Object') 2659 @Creates('ContextAttributes|=Object')
2592 _getContextAttributes_1() native; 2660 _getContextAttributes_1() native ;
2593 2661
2594 @DomName('WebGLRenderingContext.getError') 2662 @DomName('WebGLRenderingContext.getError')
2595 @DocsEditable() 2663 @DocsEditable()
2596 int getError() native; 2664 int getError() native ;
2597 2665
2598 @DomName('WebGLRenderingContext.getExtension') 2666 @DomName('WebGLRenderingContext.getExtension')
2599 @DocsEditable() 2667 @DocsEditable()
2600 Object getExtension(String name) native; 2668 Object getExtension(String name) native ;
2601 2669
2602 @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter') 2670 @DomName('WebGLRenderingContext.getFramebufferAttachmentParameter')
2603 @DocsEditable() 2671 @DocsEditable()
2604 @Creates('int|Renderbuffer|Texture|Null') 2672 @Creates('int|Renderbuffer|Texture|Null')
2605 @Returns('int|Renderbuffer|Texture|Null') 2673 @Returns('int|Renderbuffer|Texture|Null')
2606 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) native; 2674 Object getFramebufferAttachmentParameter(
2675 int target, int attachment, int pname) native ;
2607 2676
2608 @DomName('WebGLRenderingContext.getParameter') 2677 @DomName('WebGLRenderingContext.getParameter')
2609 @DocsEditable() 2678 @DocsEditable()
2610 @Creates('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32 List|NativeUint32List|Framebuffer|Renderbuffer|Texture') 2679 @Creates(
2611 @Returns('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32 List|NativeUint32List|Framebuffer|Renderbuffer|Texture') 2680 'Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List| NativeUint32List|Framebuffer|Renderbuffer|Texture')
2612 Object getParameter(int pname) native; 2681 @Returns(
2682 'Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List| NativeUint32List|Framebuffer|Renderbuffer|Texture')
2683 Object getParameter(int pname) native ;
2613 2684
2614 @DomName('WebGLRenderingContext.getProgramInfoLog') 2685 @DomName('WebGLRenderingContext.getProgramInfoLog')
2615 @DocsEditable() 2686 @DocsEditable()
2616 String getProgramInfoLog(Program program) native; 2687 String getProgramInfoLog(Program program) native ;
2617 2688
2618 @DomName('WebGLRenderingContext.getProgramParameter') 2689 @DomName('WebGLRenderingContext.getProgramParameter')
2619 @DocsEditable() 2690 @DocsEditable()
2620 @Creates('int|bool|Null') 2691 @Creates('int|bool|Null')
2621 @Returns('int|bool|Null') 2692 @Returns('int|bool|Null')
2622 Object getProgramParameter(Program program, int pname) native; 2693 Object getProgramParameter(Program program, int pname) native ;
2623 2694
2624 @DomName('WebGLRenderingContext.getRenderbufferParameter') 2695 @DomName('WebGLRenderingContext.getRenderbufferParameter')
2625 @DocsEditable() 2696 @DocsEditable()
2626 @Creates('int|Null') 2697 @Creates('int|Null')
2627 @Returns('int|Null') 2698 @Returns('int|Null')
2628 Object getRenderbufferParameter(int target, int pname) native; 2699 Object getRenderbufferParameter(int target, int pname) native ;
2629 2700
2630 @DomName('WebGLRenderingContext.getShaderInfoLog') 2701 @DomName('WebGLRenderingContext.getShaderInfoLog')
2631 @DocsEditable() 2702 @DocsEditable()
2632 String getShaderInfoLog(Shader shader) native; 2703 String getShaderInfoLog(Shader shader) native ;
2633 2704
2634 @DomName('WebGLRenderingContext.getShaderParameter') 2705 @DomName('WebGLRenderingContext.getShaderParameter')
2635 @DocsEditable() 2706 @DocsEditable()
2636 @Creates('int|bool|Null') 2707 @Creates('int|bool|Null')
2637 @Returns('int|bool|Null') 2708 @Returns('int|bool|Null')
2638 Object getShaderParameter(Shader shader, int pname) native; 2709 Object getShaderParameter(Shader shader, int pname) native ;
2639 2710
2640 @DomName('WebGLRenderingContext.getShaderPrecisionFormat') 2711 @DomName('WebGLRenderingContext.getShaderPrecisionFormat')
2641 @DocsEditable() 2712 @DocsEditable()
2642 ShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precisionty pe) native; 2713 ShaderPrecisionFormat getShaderPrecisionFormat(
2714 int shadertype, int precisiontype) native ;
2643 2715
2644 @DomName('WebGLRenderingContext.getShaderSource') 2716 @DomName('WebGLRenderingContext.getShaderSource')
2645 @DocsEditable() 2717 @DocsEditable()
2646 String getShaderSource(Shader shader) native; 2718 String getShaderSource(Shader shader) native ;
2647 2719
2648 @DomName('WebGLRenderingContext.getSupportedExtensions') 2720 @DomName('WebGLRenderingContext.getSupportedExtensions')
2649 @DocsEditable() 2721 @DocsEditable()
2650 List<String> getSupportedExtensions() native; 2722 List<String> getSupportedExtensions() native ;
2651 2723
2652 @DomName('WebGLRenderingContext.getTexParameter') 2724 @DomName('WebGLRenderingContext.getTexParameter')
2653 @DocsEditable() 2725 @DocsEditable()
2654 @Creates('int|Null') 2726 @Creates('int|Null')
2655 @Returns('int|Null') 2727 @Returns('int|Null')
2656 Object getTexParameter(int target, int pname) native; 2728 Object getTexParameter(int target, int pname) native ;
2657 2729
2658 @DomName('WebGLRenderingContext.getUniform') 2730 @DomName('WebGLRenderingContext.getUniform')
2659 @DocsEditable() 2731 @DocsEditable()
2660 @Creates('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32 List|NativeUint32List') 2732 @Creates(
2661 @Returns('Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32 List|NativeUint32List') 2733 'Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List| NativeUint32List')
2662 Object getUniform(Program program, UniformLocation location) native; 2734 @Returns(
2735 'Null|num|String|bool|JSExtendableArray|NativeFloat32List|NativeInt32List| NativeUint32List')
2736 Object getUniform(Program program, UniformLocation location) native ;
2663 2737
2664 @DomName('WebGLRenderingContext.getUniformLocation') 2738 @DomName('WebGLRenderingContext.getUniformLocation')
2665 @DocsEditable() 2739 @DocsEditable()
2666 UniformLocation getUniformLocation(Program program, String name) native; 2740 UniformLocation getUniformLocation(Program program, String name) native ;
2667 2741
2668 @DomName('WebGLRenderingContext.getVertexAttrib') 2742 @DomName('WebGLRenderingContext.getVertexAttrib')
2669 @DocsEditable() 2743 @DocsEditable()
2670 @Creates('Null|num|bool|NativeFloat32List|Buffer') 2744 @Creates('Null|num|bool|NativeFloat32List|Buffer')
2671 @Returns('Null|num|bool|NativeFloat32List|Buffer') 2745 @Returns('Null|num|bool|NativeFloat32List|Buffer')
2672 Object getVertexAttrib(int index, int pname) native; 2746 Object getVertexAttrib(int index, int pname) native ;
2673 2747
2674 @DomName('WebGLRenderingContext.getVertexAttribOffset') 2748 @DomName('WebGLRenderingContext.getVertexAttribOffset')
2675 @DocsEditable() 2749 @DocsEditable()
2676 int getVertexAttribOffset(int index, int pname) native; 2750 int getVertexAttribOffset(int index, int pname) native ;
2677 2751
2678 @DomName('WebGLRenderingContext.hint') 2752 @DomName('WebGLRenderingContext.hint')
2679 @DocsEditable() 2753 @DocsEditable()
2680 void hint(int target, int mode) native; 2754 void hint(int target, int mode) native ;
2681 2755
2682 @DomName('WebGLRenderingContext.isBuffer') 2756 @DomName('WebGLRenderingContext.isBuffer')
2683 @DocsEditable() 2757 @DocsEditable()
2684 bool isBuffer(Buffer buffer) native; 2758 bool isBuffer(Buffer buffer) native ;
2685 2759
2686 @DomName('WebGLRenderingContext.isContextLost') 2760 @DomName('WebGLRenderingContext.isContextLost')
2687 @DocsEditable() 2761 @DocsEditable()
2688 bool isContextLost() native; 2762 bool isContextLost() native ;
2689 2763
2690 @DomName('WebGLRenderingContext.isEnabled') 2764 @DomName('WebGLRenderingContext.isEnabled')
2691 @DocsEditable() 2765 @DocsEditable()
2692 bool isEnabled(int cap) native; 2766 bool isEnabled(int cap) native ;
2693 2767
2694 @DomName('WebGLRenderingContext.isFramebuffer') 2768 @DomName('WebGLRenderingContext.isFramebuffer')
2695 @DocsEditable() 2769 @DocsEditable()
2696 bool isFramebuffer(Framebuffer framebuffer) native; 2770 bool isFramebuffer(Framebuffer framebuffer) native ;
2697 2771
2698 @DomName('WebGLRenderingContext.isProgram') 2772 @DomName('WebGLRenderingContext.isProgram')
2699 @DocsEditable() 2773 @DocsEditable()
2700 bool isProgram(Program program) native; 2774 bool isProgram(Program program) native ;
2701 2775
2702 @DomName('WebGLRenderingContext.isRenderbuffer') 2776 @DomName('WebGLRenderingContext.isRenderbuffer')
2703 @DocsEditable() 2777 @DocsEditable()
2704 bool isRenderbuffer(Renderbuffer renderbuffer) native; 2778 bool isRenderbuffer(Renderbuffer renderbuffer) native ;
2705 2779
2706 @DomName('WebGLRenderingContext.isShader') 2780 @DomName('WebGLRenderingContext.isShader')
2707 @DocsEditable() 2781 @DocsEditable()
2708 bool isShader(Shader shader) native; 2782 bool isShader(Shader shader) native ;
2709 2783
2710 @DomName('WebGLRenderingContext.isTexture') 2784 @DomName('WebGLRenderingContext.isTexture')
2711 @DocsEditable() 2785 @DocsEditable()
2712 bool isTexture(Texture texture) native; 2786 bool isTexture(Texture texture) native ;
2713 2787
2714 @DomName('WebGLRenderingContext.lineWidth') 2788 @DomName('WebGLRenderingContext.lineWidth')
2715 @DocsEditable() 2789 @DocsEditable()
2716 void lineWidth(num width) native; 2790 void lineWidth(num width) native ;
2717 2791
2718 @DomName('WebGLRenderingContext.linkProgram') 2792 @DomName('WebGLRenderingContext.linkProgram')
2719 @DocsEditable() 2793 @DocsEditable()
2720 void linkProgram(Program program) native; 2794 void linkProgram(Program program) native ;
2721 2795
2722 @DomName('WebGLRenderingContext.pixelStorei') 2796 @DomName('WebGLRenderingContext.pixelStorei')
2723 @DocsEditable() 2797 @DocsEditable()
2724 void pixelStorei(int pname, int param) native; 2798 void pixelStorei(int pname, int param) native ;
2725 2799
2726 @DomName('WebGLRenderingContext.polygonOffset') 2800 @DomName('WebGLRenderingContext.polygonOffset')
2727 @DocsEditable() 2801 @DocsEditable()
2728 void polygonOffset(num factor, num units) native; 2802 void polygonOffset(num factor, num units) native ;
2729 2803
2730 @DomName('WebGLRenderingContext.readPixels') 2804 @DomName('WebGLRenderingContext.readPixels')
2731 @DocsEditable() 2805 @DocsEditable()
2732 void readPixels(int x, int y, int width, int height, int format, int type, Typ edData pixels) native; 2806 void readPixels(int x, int y, int width, int height, int format, int type,
2807 TypedData pixels) native ;
2733 2808
2734 @DomName('WebGLRenderingContext.renderbufferStorage') 2809 @DomName('WebGLRenderingContext.renderbufferStorage')
2735 @DocsEditable() 2810 @DocsEditable()
2736 void renderbufferStorage(int target, int internalformat, int width, int height ) native; 2811 void renderbufferStorage(
2812 int target, int internalformat, int width, int height) native ;
2737 2813
2738 @DomName('WebGLRenderingContext.sampleCoverage') 2814 @DomName('WebGLRenderingContext.sampleCoverage')
2739 @DocsEditable() 2815 @DocsEditable()
2740 void sampleCoverage(num value, bool invert) native; 2816 void sampleCoverage(num value, bool invert) native ;
2741 2817
2742 @DomName('WebGLRenderingContext.scissor') 2818 @DomName('WebGLRenderingContext.scissor')
2743 @DocsEditable() 2819 @DocsEditable()
2744 void scissor(int x, int y, int width, int height) native; 2820 void scissor(int x, int y, int width, int height) native ;
2745 2821
2746 @DomName('WebGLRenderingContext.shaderSource') 2822 @DomName('WebGLRenderingContext.shaderSource')
2747 @DocsEditable() 2823 @DocsEditable()
2748 void shaderSource(Shader shader, String string) native; 2824 void shaderSource(Shader shader, String string) native ;
2749 2825
2750 @DomName('WebGLRenderingContext.stencilFunc') 2826 @DomName('WebGLRenderingContext.stencilFunc')
2751 @DocsEditable() 2827 @DocsEditable()
2752 void stencilFunc(int func, int ref, int mask) native; 2828 void stencilFunc(int func, int ref, int mask) native ;
2753 2829
2754 @DomName('WebGLRenderingContext.stencilFuncSeparate') 2830 @DomName('WebGLRenderingContext.stencilFuncSeparate')
2755 @DocsEditable() 2831 @DocsEditable()
2756 void stencilFuncSeparate(int face, int func, int ref, int mask) native; 2832 void stencilFuncSeparate(int face, int func, int ref, int mask) native ;
2757 2833
2758 @DomName('WebGLRenderingContext.stencilMask') 2834 @DomName('WebGLRenderingContext.stencilMask')
2759 @DocsEditable() 2835 @DocsEditable()
2760 void stencilMask(int mask) native; 2836 void stencilMask(int mask) native ;
2761 2837
2762 @DomName('WebGLRenderingContext.stencilMaskSeparate') 2838 @DomName('WebGLRenderingContext.stencilMaskSeparate')
2763 @DocsEditable() 2839 @DocsEditable()
2764 void stencilMaskSeparate(int face, int mask) native; 2840 void stencilMaskSeparate(int face, int mask) native ;
2765 2841
2766 @DomName('WebGLRenderingContext.stencilOp') 2842 @DomName('WebGLRenderingContext.stencilOp')
2767 @DocsEditable() 2843 @DocsEditable()
2768 void stencilOp(int fail, int zfail, int zpass) native; 2844 void stencilOp(int fail, int zfail, int zpass) native ;
2769 2845
2770 @DomName('WebGLRenderingContext.stencilOpSeparate') 2846 @DomName('WebGLRenderingContext.stencilOpSeparate')
2771 @DocsEditable() 2847 @DocsEditable()
2772 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native; 2848 void stencilOpSeparate(int face, int fail, int zfail, int zpass) native ;
2773 2849
2774 /** 2850 /**
2775 * Updates the currently bound texture to [data]. 2851 * Updates the currently bound texture to [data].
2776 * 2852 *
2777 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it 2853 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2778 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2854 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2779 * (or for more specificity, the more specialized [texImage2DImageData], 2855 * (or for more specificity, the more specialized [texImage2DImageData],
2780 * [texImage2DCanvas], [texImage2DVideo]). 2856 * [texImage2DCanvas], [texImage2DVideo]).
2781 */ 2857 */
2782 @DomName('WebGLRenderingContext.texImage2D') 2858 @DomName('WebGLRenderingContext.texImage2D')
2783 @DocsEditable() 2859 @DocsEditable()
2784 void texImage2D(int target, int level, int internalformat, int format_OR_width , int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format, int type, TypedData pixels]) { 2860 void texImage2D(
2785 if (pixels != null && type != null && format != null && (border_OR_canvas_OR _image_OR_pixels_OR_video is int)) { 2861 int target,
2786 _texImage2D_1(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pixels); 2862 int level,
2863 int internalformat,
2864 int format_OR_width,
2865 int height_OR_type,
2866 border_OR_canvas_OR_image_OR_pixels_OR_video,
2867 [int format,
2868 int type,
2869 TypedData pixels]) {
2870 if (pixels != null &&
2871 type != null &&
2872 format != null &&
2873 (border_OR_canvas_OR_image_OR_pixels_OR_video is int)) {
2874 _texImage2D_1(
2875 target,
2876 level,
2877 internalformat,
2878 format_OR_width,
2879 height_OR_type,
2880 border_OR_canvas_OR_image_OR_pixels_OR_video,
2881 format,
2882 type,
2883 pixels);
2787 return; 2884 return;
2788 } 2885 }
2789 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData || border_OR_ canvas_OR_image_OR_pixels_OR_video == null) && format == null && type == null && pixels == null) { 2886 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData ||
2790 var pixels_1 = convertDartToNative_ImageData(border_OR_canvas_OR_image_OR_ pixels_OR_video); 2887 border_OR_canvas_OR_image_OR_pixels_OR_video == null) &&
2791 _texImage2D_2(target, level, internalformat, format_OR_width, height_OR_ty pe, pixels_1); 2888 format == null &&
2889 type == null &&
2890 pixels == null) {
2891 var pixels_1 = convertDartToNative_ImageData(
2892 border_OR_canvas_OR_image_OR_pixels_OR_video);
2893 _texImage2D_2(target, level, internalformat, format_OR_width,
2894 height_OR_type, pixels_1);
2792 return; 2895 return;
2793 } 2896 }
2794 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement) && format == null && type == null && pixels == null) { 2897 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is ImageElement) &&
2795 _texImage2D_3(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video); 2898 format == null &&
2899 type == null &&
2900 pixels == null) {
2901 _texImage2D_3(target, level, internalformat, format_OR_width,
2902 height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
2796 return; 2903 return;
2797 } 2904 }
2798 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement) && forma t == null && type == null && pixels == null) { 2905 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is CanvasElement) &&
2799 _texImage2D_4(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video); 2906 format == null &&
2907 type == null &&
2908 pixels == null) {
2909 _texImage2D_4(target, level, internalformat, format_OR_width,
2910 height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
2800 return; 2911 return;
2801 } 2912 }
2802 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement) && format == null && type == null && pixels == null) { 2913 if ((border_OR_canvas_OR_image_OR_pixels_OR_video is VideoElement) &&
2803 _texImage2D_5(target, level, internalformat, format_OR_width, height_OR_ty pe, border_OR_canvas_OR_image_OR_pixels_OR_video); 2914 format == null &&
2915 type == null &&
2916 pixels == null) {
2917 _texImage2D_5(target, level, internalformat, format_OR_width,
2918 height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
2804 return; 2919 return;
2805 } 2920 }
2806 throw new ArgumentError("Incorrect number or type of arguments"); 2921 throw new ArgumentError("Incorrect number or type of arguments");
2807 } 2922 }
2923
2808 @JSName('texImage2D') 2924 @JSName('texImage2D')
2809 /** 2925 /**
2810 * Updates the currently bound texture to [data]. 2926 * Updates the currently bound texture to [data].
2811 * 2927 *
2812 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it 2928 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2813 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2929 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2814 * (or for more specificity, the more specialized [texImage2DImageData], 2930 * (or for more specificity, the more specialized [texImage2DImageData],
2815 * [texImage2DCanvas], [texImage2DVideo]). 2931 * [texImage2DCanvas], [texImage2DVideo]).
2816 */ 2932 */
2817 @DomName('WebGLRenderingContext.texImage2D') 2933 @DomName('WebGLRenderingContext.texImage2D')
2818 @DocsEditable() 2934 @DocsEditable()
2819 void _texImage2D_1(target, level, internalformat, width, height, int border, f ormat, type, TypedData pixels) native; 2935 void _texImage2D_1(target, level, internalformat, width, height, int border,
2936 format, type, TypedData pixels) native ;
2820 @JSName('texImage2D') 2937 @JSName('texImage2D')
2821 /** 2938 /**
2822 * Updates the currently bound texture to [data]. 2939 * Updates the currently bound texture to [data].
2823 * 2940 *
2824 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it 2941 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2825 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2942 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2826 * (or for more specificity, the more specialized [texImage2DImageData], 2943 * (or for more specificity, the more specialized [texImage2DImageData],
2827 * [texImage2DCanvas], [texImage2DVideo]). 2944 * [texImage2DCanvas], [texImage2DVideo]).
2828 */ 2945 */
2829 @DomName('WebGLRenderingContext.texImage2D') 2946 @DomName('WebGLRenderingContext.texImage2D')
2830 @DocsEditable() 2947 @DocsEditable()
2831 void _texImage2D_2(target, level, internalformat, format, type, pixels) native ; 2948 void _texImage2D_2(target, level, internalformat, format, type, pixels)
2949 native ;
2832 @JSName('texImage2D') 2950 @JSName('texImage2D')
2833 /** 2951 /**
2834 * Updates the currently bound texture to [data]. 2952 * Updates the currently bound texture to [data].
2835 * 2953 *
2836 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it 2954 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2837 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2955 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2838 * (or for more specificity, the more specialized [texImage2DImageData], 2956 * (or for more specificity, the more specialized [texImage2DImageData],
2839 * [texImage2DCanvas], [texImage2DVideo]). 2957 * [texImage2DCanvas], [texImage2DVideo]).
2840 */ 2958 */
2841 @DomName('WebGLRenderingContext.texImage2D') 2959 @DomName('WebGLRenderingContext.texImage2D')
2842 @DocsEditable() 2960 @DocsEditable()
2843 void _texImage2D_3(target, level, internalformat, format, type, ImageElement i mage) native; 2961 void _texImage2D_3(
2962 target, level, internalformat, format, type, ImageElement image) native ;
2844 @JSName('texImage2D') 2963 @JSName('texImage2D')
2845 /** 2964 /**
2846 * Updates the currently bound texture to [data]. 2965 * Updates the currently bound texture to [data].
2847 * 2966 *
2848 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it 2967 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2849 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2968 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2850 * (or for more specificity, the more specialized [texImage2DImageData], 2969 * (or for more specificity, the more specialized [texImage2DImageData],
2851 * [texImage2DCanvas], [texImage2DVideo]). 2970 * [texImage2DCanvas], [texImage2DVideo]).
2852 */ 2971 */
2853 @DomName('WebGLRenderingContext.texImage2D') 2972 @DomName('WebGLRenderingContext.texImage2D')
2854 @DocsEditable() 2973 @DocsEditable()
2855 void _texImage2D_4(target, level, internalformat, format, type, CanvasElement canvas) native; 2974 void _texImage2D_4(target, level, internalformat, format, type,
2975 CanvasElement canvas) native ;
2856 @JSName('texImage2D') 2976 @JSName('texImage2D')
2857 /** 2977 /**
2858 * Updates the currently bound texture to [data]. 2978 * Updates the currently bound texture to [data].
2859 * 2979 *
2860 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it 2980 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2861 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2981 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2862 * (or for more specificity, the more specialized [texImage2DImageData], 2982 * (or for more specificity, the more specialized [texImage2DImageData],
2863 * [texImage2DCanvas], [texImage2DVideo]). 2983 * [texImage2DCanvas], [texImage2DVideo]).
2864 */ 2984 */
2865 @DomName('WebGLRenderingContext.texImage2D') 2985 @DomName('WebGLRenderingContext.texImage2D')
2866 @DocsEditable() 2986 @DocsEditable()
2867 void _texImage2D_5(target, level, internalformat, format, type, VideoElement v ideo) native; 2987 void _texImage2D_5(
2988 target, level, internalformat, format, type, VideoElement video) native ;
2868 2989
2869 @JSName('texImage2D') 2990 @JSName('texImage2D')
2870 /** 2991 /**
2871 * Updates the currently bound texture to [data]. 2992 * Updates the currently bound texture to [data].
2872 * 2993 *
2873 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it 2994 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2874 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 2995 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2875 * (or for more specificity, the more specialized [texImage2DImageData], 2996 * (or for more specificity, the more specialized [texImage2DImageData],
2876 * [texImage2DCanvas], [texImage2DVideo]). 2997 * [texImage2DCanvas], [texImage2DVideo]).
2877 */ 2998 */
2878 @DomName('WebGLRenderingContext.texImage2D') 2999 @DomName('WebGLRenderingContext.texImage2D')
2879 @DocsEditable() 3000 @DocsEditable()
2880 void texImage2DCanvas(int target, int level, int internalformat, int format, i nt type, CanvasElement canvas) native; 3001 void texImage2DCanvas(int target, int level, int internalformat, int format,
3002 int type, CanvasElement canvas) native ;
2881 3003
2882 @JSName('texImage2D') 3004 @JSName('texImage2D')
2883 /** 3005 /**
2884 * Updates the currently bound texture to [data]. 3006 * Updates the currently bound texture to [data].
2885 * 3007 *
2886 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it 3008 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2887 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 3009 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2888 * (or for more specificity, the more specialized [texImage2DImageData], 3010 * (or for more specificity, the more specialized [texImage2DImageData],
2889 * [texImage2DCanvas], [texImage2DVideo]). 3011 * [texImage2DCanvas], [texImage2DVideo]).
2890 */ 3012 */
2891 @DomName('WebGLRenderingContext.texImage2D') 3013 @DomName('WebGLRenderingContext.texImage2D')
2892 @DocsEditable() 3014 @DocsEditable()
2893 void texImage2DImage(int target, int level, int internalformat, int format, in t type, ImageElement image) native; 3015 void texImage2DImage(int target, int level, int internalformat, int format,
3016 int type, ImageElement image) native ;
2894 3017
2895 /** 3018 /**
2896 * Updates the currently bound texture to [data]. 3019 * Updates the currently bound texture to [data].
2897 * 3020 *
2898 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it 3021 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2899 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 3022 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2900 * (or for more specificity, the more specialized [texImage2DImageData], 3023 * (or for more specificity, the more specialized [texImage2DImageData],
2901 * [texImage2DCanvas], [texImage2DVideo]). 3024 * [texImage2DCanvas], [texImage2DVideo]).
2902 */ 3025 */
2903 @DomName('WebGLRenderingContext.texImage2D') 3026 @DomName('WebGLRenderingContext.texImage2D')
2904 @DocsEditable() 3027 @DocsEditable()
2905 void texImage2DImageData(int target, int level, int internalformat, int format , int type, ImageData pixels) { 3028 void texImage2DImageData(int target, int level, int internalformat,
3029 int format, int type, ImageData pixels) {
2906 var pixels_1 = convertDartToNative_ImageData(pixels); 3030 var pixels_1 = convertDartToNative_ImageData(pixels);
2907 _texImage2DImageData_1(target, level, internalformat, format, type, pixels_1 ); 3031 _texImage2DImageData_1(
3032 target, level, internalformat, format, type, pixels_1);
2908 return; 3033 return;
2909 } 3034 }
3035
2910 @JSName('texImage2D') 3036 @JSName('texImage2D')
2911 /** 3037 /**
2912 * Updates the currently bound texture to [data]. 3038 * Updates the currently bound texture to [data].
2913 * 3039 *
2914 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it 3040 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2915 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 3041 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2916 * (or for more specificity, the more specialized [texImage2DImageData], 3042 * (or for more specificity, the more specialized [texImage2DImageData],
2917 * [texImage2DCanvas], [texImage2DVideo]). 3043 * [texImage2DCanvas], [texImage2DVideo]).
2918 */ 3044 */
2919 @DomName('WebGLRenderingContext.texImage2D') 3045 @DomName('WebGLRenderingContext.texImage2D')
2920 @DocsEditable() 3046 @DocsEditable()
2921 void _texImage2DImageData_1(target, level, internalformat, format, type, pixel s) native; 3047 void _texImage2DImageData_1(
3048 target, level, internalformat, format, type, pixels) native ;
2922 3049
2923 @JSName('texImage2D') 3050 @JSName('texImage2D')
2924 /** 3051 /**
2925 * Updates the currently bound texture to [data]. 3052 * Updates the currently bound texture to [data].
2926 * 3053 *
2927 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it 3054 * The [texImage2D] method is provided for WebGL API compatibility reasons, bu t it
2928 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped] 3055 * is highly recommended that you use [texImage2DUntyped] or [texImage2DTyped]
2929 * (or for more specificity, the more specialized [texImage2DImageData], 3056 * (or for more specificity, the more specialized [texImage2DImageData],
2930 * [texImage2DCanvas], [texImage2DVideo]). 3057 * [texImage2DCanvas], [texImage2DVideo]).
2931 */ 3058 */
2932 @DomName('WebGLRenderingContext.texImage2D') 3059 @DomName('WebGLRenderingContext.texImage2D')
2933 @DocsEditable() 3060 @DocsEditable()
2934 void texImage2DVideo(int target, int level, int internalformat, int format, in t type, VideoElement video) native; 3061 void texImage2DVideo(int target, int level, int internalformat, int format,
3062 int type, VideoElement video) native ;
2935 3063
2936 @DomName('WebGLRenderingContext.texParameterf') 3064 @DomName('WebGLRenderingContext.texParameterf')
2937 @DocsEditable() 3065 @DocsEditable()
2938 void texParameterf(int target, int pname, num param) native; 3066 void texParameterf(int target, int pname, num param) native ;
2939 3067
2940 @DomName('WebGLRenderingContext.texParameteri') 3068 @DomName('WebGLRenderingContext.texParameteri')
2941 @DocsEditable() 3069 @DocsEditable()
2942 void texParameteri(int target, int pname, int param) native; 3070 void texParameteri(int target, int pname, int param) native ;
2943 3071
2944 /** 3072 /**
2945 * Updates a sub-rectangle of the currently bound texture to [data]. 3073 * Updates a sub-rectangle of the currently bound texture to [data].
2946 * 3074 *
2947 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it 3075 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2948 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 3076 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2949 * (or for more specificity, the more specialized [texSubImage2DImageData], 3077 * (or for more specificity, the more specialized [texSubImage2DImageData],
2950 * [texSubImage2DCanvas], [texSubImage2DVideo]). 3078 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2951 */ 3079 */
2952 @DomName('WebGLRenderingContext.texSubImage2D') 3080 @DomName('WebGLRenderingContext.texSubImage2D')
2953 @DocsEditable() 3081 @DocsEditable()
2954 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format _OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in t type, TypedData pixels]) { 3082 void texSubImage2D(
2955 if (pixels != null && type != null && (canvas_OR_format_OR_image_OR_pixels_O R_video is int)) { 3083 int target,
2956 _texSubImage2D_1(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixels); 3084 int level,
3085 int xoffset,
3086 int yoffset,
3087 int format_OR_width,
3088 int height_OR_type,
3089 canvas_OR_format_OR_image_OR_pixels_OR_video,
3090 [int type,
3091 TypedData pixels]) {
3092 if (pixels != null &&
3093 type != null &&
3094 (canvas_OR_format_OR_image_OR_pixels_OR_video is int)) {
3095 _texSubImage2D_1(
3096 target,
3097 level,
3098 xoffset,
3099 yoffset,
3100 format_OR_width,
3101 height_OR_type,
3102 canvas_OR_format_OR_image_OR_pixels_OR_video,
3103 type,
3104 pixels);
2957 return; 3105 return;
2958 } 3106 }
2959 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData || canvas_OR_ format_OR_image_OR_pixels_OR_video == null) && type == null && pixels == null) { 3107 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData ||
2960 var pixels_1 = convertDartToNative_ImageData(canvas_OR_format_OR_image_OR_ pixels_OR_video); 3108 canvas_OR_format_OR_image_OR_pixels_OR_video == null) &&
2961 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, pixels_1); 3109 type == null &&
3110 pixels == null) {
3111 var pixels_1 = convertDartToNative_ImageData(
3112 canvas_OR_format_OR_image_OR_pixels_OR_video);
3113 _texSubImage2D_2(target, level, xoffset, yoffset, format_OR_width,
3114 height_OR_type, pixels_1);
2962 return; 3115 return;
2963 } 3116 }
2964 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement) && type = = null && pixels == null) { 3117 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is ImageElement) &&
2965 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 3118 type == null &&
3119 pixels == null) {
3120 _texSubImage2D_3(target, level, xoffset, yoffset, format_OR_width,
3121 height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
2966 return; 3122 return;
2967 } 3123 }
2968 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement) && type == null && pixels == null) { 3124 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is CanvasElement) &&
2969 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 3125 type == null &&
3126 pixels == null) {
3127 _texSubImage2D_4(target, level, xoffset, yoffset, format_OR_width,
3128 height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
2970 return; 3129 return;
2971 } 3130 }
2972 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement) && type = = null && pixels == null) { 3131 if ((canvas_OR_format_OR_image_OR_pixels_OR_video is VideoElement) &&
2973 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width, height_ OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video); 3132 type == null &&
3133 pixels == null) {
3134 _texSubImage2D_5(target, level, xoffset, yoffset, format_OR_width,
3135 height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
2974 return; 3136 return;
2975 } 3137 }
2976 throw new ArgumentError("Incorrect number or type of arguments"); 3138 throw new ArgumentError("Incorrect number or type of arguments");
2977 } 3139 }
3140
2978 @JSName('texSubImage2D') 3141 @JSName('texSubImage2D')
2979 /** 3142 /**
2980 * Updates a sub-rectangle of the currently bound texture to [data]. 3143 * Updates a sub-rectangle of the currently bound texture to [data].
2981 * 3144 *
2982 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it 3145 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2983 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 3146 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2984 * (or for more specificity, the more specialized [texSubImage2DImageData], 3147 * (or for more specificity, the more specialized [texSubImage2DImageData],
2985 * [texSubImage2DCanvas], [texSubImage2DVideo]). 3148 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2986 */ 3149 */
2987 @DomName('WebGLRenderingContext.texSubImage2D') 3150 @DomName('WebGLRenderingContext.texSubImage2D')
2988 @DocsEditable() 3151 @DocsEditable()
2989 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height, int form at, type, TypedData pixels) native; 3152 void _texSubImage2D_1(target, level, xoffset, yoffset, width, height,
3153 int format, type, TypedData pixels) native ;
2990 @JSName('texSubImage2D') 3154 @JSName('texSubImage2D')
2991 /** 3155 /**
2992 * Updates a sub-rectangle of the currently bound texture to [data]. 3156 * Updates a sub-rectangle of the currently bound texture to [data].
2993 * 3157 *
2994 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it 3158 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
2995 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 3159 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
2996 * (or for more specificity, the more specialized [texSubImage2DImageData], 3160 * (or for more specificity, the more specialized [texSubImage2DImageData],
2997 * [texSubImage2DCanvas], [texSubImage2DVideo]). 3161 * [texSubImage2DCanvas], [texSubImage2DVideo]).
2998 */ 3162 */
2999 @DomName('WebGLRenderingContext.texSubImage2D') 3163 @DomName('WebGLRenderingContext.texSubImage2D')
3000 @DocsEditable() 3164 @DocsEditable()
3001 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels) n ative; 3165 void _texSubImage2D_2(target, level, xoffset, yoffset, format, type, pixels)
3166 native ;
3002 @JSName('texSubImage2D') 3167 @JSName('texSubImage2D')
3003 /** 3168 /**
3004 * Updates a sub-rectangle of the currently bound texture to [data]. 3169 * Updates a sub-rectangle of the currently bound texture to [data].
3005 * 3170 *
3006 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it 3171 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3007 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 3172 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3008 * (or for more specificity, the more specialized [texSubImage2DImageData], 3173 * (or for more specificity, the more specialized [texSubImage2DImageData],
3009 * [texSubImage2DCanvas], [texSubImage2DVideo]). 3174 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3010 */ 3175 */
3011 @DomName('WebGLRenderingContext.texSubImage2D') 3176 @DomName('WebGLRenderingContext.texSubImage2D')
3012 @DocsEditable() 3177 @DocsEditable()
3013 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type, ImageElem ent image) native; 3178 void _texSubImage2D_3(target, level, xoffset, yoffset, format, type,
3179 ImageElement image) native ;
3014 @JSName('texSubImage2D') 3180 @JSName('texSubImage2D')
3015 /** 3181 /**
3016 * Updates a sub-rectangle of the currently bound texture to [data]. 3182 * Updates a sub-rectangle of the currently bound texture to [data].
3017 * 3183 *
3018 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it 3184 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3019 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 3185 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3020 * (or for more specificity, the more specialized [texSubImage2DImageData], 3186 * (or for more specificity, the more specialized [texSubImage2DImageData],
3021 * [texSubImage2DCanvas], [texSubImage2DVideo]). 3187 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3022 */ 3188 */
3023 @DomName('WebGLRenderingContext.texSubImage2D') 3189 @DomName('WebGLRenderingContext.texSubImage2D')
3024 @DocsEditable() 3190 @DocsEditable()
3025 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type, CanvasEle ment canvas) native; 3191 void _texSubImage2D_4(target, level, xoffset, yoffset, format, type,
3192 CanvasElement canvas) native ;
3026 @JSName('texSubImage2D') 3193 @JSName('texSubImage2D')
3027 /** 3194 /**
3028 * Updates a sub-rectangle of the currently bound texture to [data]. 3195 * Updates a sub-rectangle of the currently bound texture to [data].
3029 * 3196 *
3030 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it 3197 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3031 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 3198 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3032 * (or for more specificity, the more specialized [texSubImage2DImageData], 3199 * (or for more specificity, the more specialized [texSubImage2DImageData],
3033 * [texSubImage2DCanvas], [texSubImage2DVideo]). 3200 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3034 */ 3201 */
3035 @DomName('WebGLRenderingContext.texSubImage2D') 3202 @DomName('WebGLRenderingContext.texSubImage2D')
3036 @DocsEditable() 3203 @DocsEditable()
3037 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type, VideoElem ent video) native; 3204 void _texSubImage2D_5(target, level, xoffset, yoffset, format, type,
3205 VideoElement video) native ;
3038 3206
3039 @JSName('texSubImage2D') 3207 @JSName('texSubImage2D')
3040 /** 3208 /**
3041 * Updates a sub-rectangle of the currently bound texture to [data]. 3209 * Updates a sub-rectangle of the currently bound texture to [data].
3042 * 3210 *
3043 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it 3211 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3044 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 3212 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3045 * (or for more specificity, the more specialized [texSubImage2DImageData], 3213 * (or for more specificity, the more specialized [texSubImage2DImageData],
3046 * [texSubImage2DCanvas], [texSubImage2DVideo]). 3214 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3047 */ 3215 */
3048 @DomName('WebGLRenderingContext.texSubImage2D') 3216 @DomName('WebGLRenderingContext.texSubImage2D')
3049 @DocsEditable() 3217 @DocsEditable()
3050 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset, int format, int type, CanvasElement canvas) native; 3218 void texSubImage2DCanvas(int target, int level, int xoffset, int yoffset,
3219 int format, int type, CanvasElement canvas) native ;
3051 3220
3052 @JSName('texSubImage2D') 3221 @JSName('texSubImage2D')
3053 /** 3222 /**
3054 * Updates a sub-rectangle of the currently bound texture to [data]. 3223 * Updates a sub-rectangle of the currently bound texture to [data].
3055 * 3224 *
3056 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it 3225 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3057 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 3226 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3058 * (or for more specificity, the more specialized [texSubImage2DImageData], 3227 * (or for more specificity, the more specialized [texSubImage2DImageData],
3059 * [texSubImage2DCanvas], [texSubImage2DVideo]). 3228 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3060 */ 3229 */
3061 @DomName('WebGLRenderingContext.texSubImage2D') 3230 @DomName('WebGLRenderingContext.texSubImage2D')
3062 @DocsEditable() 3231 @DocsEditable()
3063 void texSubImage2DImage(int target, int level, int xoffset, int yoffset, int f ormat, int type, ImageElement image) native; 3232 void texSubImage2DImage(int target, int level, int xoffset, int yoffset,
3233 int format, int type, ImageElement image) native ;
3064 3234
3065 /** 3235 /**
3066 * Updates a sub-rectangle of the currently bound texture to [data]. 3236 * Updates a sub-rectangle of the currently bound texture to [data].
3067 * 3237 *
3068 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it 3238 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3069 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 3239 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3070 * (or for more specificity, the more specialized [texSubImage2DImageData], 3240 * (or for more specificity, the more specialized [texSubImage2DImageData],
3071 * [texSubImage2DCanvas], [texSubImage2DVideo]). 3241 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3072 */ 3242 */
3073 @DomName('WebGLRenderingContext.texSubImage2D') 3243 @DomName('WebGLRenderingContext.texSubImage2D')
3074 @DocsEditable() 3244 @DocsEditable()
3075 void texSubImage2DImageData(int target, int level, int xoffset, int yoffset, i nt format, int type, ImageData pixels) { 3245 void texSubImage2DImageData(int target, int level, int xoffset, int yoffset,
3246 int format, int type, ImageData pixels) {
3076 var pixels_1 = convertDartToNative_ImageData(pixels); 3247 var pixels_1 = convertDartToNative_ImageData(pixels);
3077 _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pix els_1); 3248 _texSubImage2DImageData_1(
3249 target, level, xoffset, yoffset, format, type, pixels_1);
3078 return; 3250 return;
3079 } 3251 }
3252
3080 @JSName('texSubImage2D') 3253 @JSName('texSubImage2D')
3081 /** 3254 /**
3082 * Updates a sub-rectangle of the currently bound texture to [data]. 3255 * Updates a sub-rectangle of the currently bound texture to [data].
3083 * 3256 *
3084 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it 3257 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3085 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 3258 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3086 * (or for more specificity, the more specialized [texSubImage2DImageData], 3259 * (or for more specificity, the more specialized [texSubImage2DImageData],
3087 * [texSubImage2DCanvas], [texSubImage2DVideo]). 3260 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3088 */ 3261 */
3089 @DomName('WebGLRenderingContext.texSubImage2D') 3262 @DomName('WebGLRenderingContext.texSubImage2D')
3090 @DocsEditable() 3263 @DocsEditable()
3091 void _texSubImage2DImageData_1(target, level, xoffset, yoffset, format, type, pixels) native; 3264 void _texSubImage2DImageData_1(
3265 target, level, xoffset, yoffset, format, type, pixels) native ;
3092 3266
3093 @JSName('texSubImage2D') 3267 @JSName('texSubImage2D')
3094 /** 3268 /**
3095 * Updates a sub-rectangle of the currently bound texture to [data]. 3269 * Updates a sub-rectangle of the currently bound texture to [data].
3096 * 3270 *
3097 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it 3271 * The [texSubImage2D] method is provided for WebGL API compatibility reasons, but it
3098 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed] 3272 * is highly recommended that you use [texSubImage2DUntyped] or [texSubImage2D Typed]
3099 * (or for more specificity, the more specialized [texSubImage2DImageData], 3273 * (or for more specificity, the more specialized [texSubImage2DImageData],
3100 * [texSubImage2DCanvas], [texSubImage2DVideo]). 3274 * [texSubImage2DCanvas], [texSubImage2DVideo]).
3101 */ 3275 */
3102 @DomName('WebGLRenderingContext.texSubImage2D') 3276 @DomName('WebGLRenderingContext.texSubImage2D')
3103 @DocsEditable() 3277 @DocsEditable()
3104 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset, int f ormat, int type, VideoElement video) native; 3278 void texSubImage2DVideo(int target, int level, int xoffset, int yoffset,
3279 int format, int type, VideoElement video) native ;
3105 3280
3106 @DomName('WebGLRenderingContext.uniform1f') 3281 @DomName('WebGLRenderingContext.uniform1f')
3107 @DocsEditable() 3282 @DocsEditable()
3108 void uniform1f(UniformLocation location, num x) native; 3283 void uniform1f(UniformLocation location, num x) native ;
3109 3284
3110 @DomName('WebGLRenderingContext.uniform1fv') 3285 @DomName('WebGLRenderingContext.uniform1fv')
3111 @DocsEditable() 3286 @DocsEditable()
3112 void uniform1fv(UniformLocation location, Float32List v) native; 3287 void uniform1fv(UniformLocation location, Float32List v) native ;
3113 3288
3114 @DomName('WebGLRenderingContext.uniform1i') 3289 @DomName('WebGLRenderingContext.uniform1i')
3115 @DocsEditable() 3290 @DocsEditable()
3116 void uniform1i(UniformLocation location, int x) native; 3291 void uniform1i(UniformLocation location, int x) native ;
3117 3292
3118 @DomName('WebGLRenderingContext.uniform1iv') 3293 @DomName('WebGLRenderingContext.uniform1iv')
3119 @DocsEditable() 3294 @DocsEditable()
3120 void uniform1iv(UniformLocation location, Int32List v) native; 3295 void uniform1iv(UniformLocation location, Int32List v) native ;
3121 3296
3122 @DomName('WebGLRenderingContext.uniform2f') 3297 @DomName('WebGLRenderingContext.uniform2f')
3123 @DocsEditable() 3298 @DocsEditable()
3124 void uniform2f(UniformLocation location, num x, num y) native; 3299 void uniform2f(UniformLocation location, num x, num y) native ;
3125 3300
3126 @DomName('WebGLRenderingContext.uniform2fv') 3301 @DomName('WebGLRenderingContext.uniform2fv')
3127 @DocsEditable() 3302 @DocsEditable()
3128 void uniform2fv(UniformLocation location, Float32List v) native; 3303 void uniform2fv(UniformLocation location, Float32List v) native ;
3129 3304
3130 @DomName('WebGLRenderingContext.uniform2i') 3305 @DomName('WebGLRenderingContext.uniform2i')
3131 @DocsEditable() 3306 @DocsEditable()
3132 void uniform2i(UniformLocation location, int x, int y) native; 3307 void uniform2i(UniformLocation location, int x, int y) native ;
3133 3308
3134 @DomName('WebGLRenderingContext.uniform2iv') 3309 @DomName('WebGLRenderingContext.uniform2iv')
3135 @DocsEditable() 3310 @DocsEditable()
3136 void uniform2iv(UniformLocation location, Int32List v) native; 3311 void uniform2iv(UniformLocation location, Int32List v) native ;
3137 3312
3138 @DomName('WebGLRenderingContext.uniform3f') 3313 @DomName('WebGLRenderingContext.uniform3f')
3139 @DocsEditable() 3314 @DocsEditable()
3140 void uniform3f(UniformLocation location, num x, num y, num z) native; 3315 void uniform3f(UniformLocation location, num x, num y, num z) native ;
3141 3316
3142 @DomName('WebGLRenderingContext.uniform3fv') 3317 @DomName('WebGLRenderingContext.uniform3fv')
3143 @DocsEditable() 3318 @DocsEditable()
3144 void uniform3fv(UniformLocation location, Float32List v) native; 3319 void uniform3fv(UniformLocation location, Float32List v) native ;
3145 3320
3146 @DomName('WebGLRenderingContext.uniform3i') 3321 @DomName('WebGLRenderingContext.uniform3i')
3147 @DocsEditable() 3322 @DocsEditable()
3148 void uniform3i(UniformLocation location, int x, int y, int z) native; 3323 void uniform3i(UniformLocation location, int x, int y, int z) native ;
3149 3324
3150 @DomName('WebGLRenderingContext.uniform3iv') 3325 @DomName('WebGLRenderingContext.uniform3iv')
3151 @DocsEditable() 3326 @DocsEditable()
3152 void uniform3iv(UniformLocation location, Int32List v) native; 3327 void uniform3iv(UniformLocation location, Int32List v) native ;
3153 3328
3154 @DomName('WebGLRenderingContext.uniform4f') 3329 @DomName('WebGLRenderingContext.uniform4f')
3155 @DocsEditable() 3330 @DocsEditable()
3156 void uniform4f(UniformLocation location, num x, num y, num z, num w) native; 3331 void uniform4f(UniformLocation location, num x, num y, num z, num w) native ;
3157 3332
3158 @DomName('WebGLRenderingContext.uniform4fv') 3333 @DomName('WebGLRenderingContext.uniform4fv')
3159 @DocsEditable() 3334 @DocsEditable()
3160 void uniform4fv(UniformLocation location, Float32List v) native; 3335 void uniform4fv(UniformLocation location, Float32List v) native ;
3161 3336
3162 @DomName('WebGLRenderingContext.uniform4i') 3337 @DomName('WebGLRenderingContext.uniform4i')
3163 @DocsEditable() 3338 @DocsEditable()
3164 void uniform4i(UniformLocation location, int x, int y, int z, int w) native; 3339 void uniform4i(UniformLocation location, int x, int y, int z, int w) native ;
3165 3340
3166 @DomName('WebGLRenderingContext.uniform4iv') 3341 @DomName('WebGLRenderingContext.uniform4iv')
3167 @DocsEditable() 3342 @DocsEditable()
3168 void uniform4iv(UniformLocation location, Int32List v) native; 3343 void uniform4iv(UniformLocation location, Int32List v) native ;
3169 3344
3170 @DomName('WebGLRenderingContext.uniformMatrix2fv') 3345 @DomName('WebGLRenderingContext.uniformMatrix2fv')
3171 @DocsEditable() 3346 @DocsEditable()
3172 void uniformMatrix2fv(UniformLocation location, bool transpose, Float32List ar ray) native; 3347 void uniformMatrix2fv(
3348 UniformLocation location, bool transpose, Float32List array) native ;
3173 3349
3174 @DomName('WebGLRenderingContext.uniformMatrix3fv') 3350 @DomName('WebGLRenderingContext.uniformMatrix3fv')
3175 @DocsEditable() 3351 @DocsEditable()
3176 void uniformMatrix3fv(UniformLocation location, bool transpose, Float32List ar ray) native; 3352 void uniformMatrix3fv(
3353 UniformLocation location, bool transpose, Float32List array) native ;
3177 3354
3178 @DomName('WebGLRenderingContext.uniformMatrix4fv') 3355 @DomName('WebGLRenderingContext.uniformMatrix4fv')
3179 @DocsEditable() 3356 @DocsEditable()
3180 void uniformMatrix4fv(UniformLocation location, bool transpose, Float32List ar ray) native; 3357 void uniformMatrix4fv(
3358 UniformLocation location, bool transpose, Float32List array) native ;
3181 3359
3182 @DomName('WebGLRenderingContext.useProgram') 3360 @DomName('WebGLRenderingContext.useProgram')
3183 @DocsEditable() 3361 @DocsEditable()
3184 void useProgram(Program program) native; 3362 void useProgram(Program program) native ;
3185 3363
3186 @DomName('WebGLRenderingContext.validateProgram') 3364 @DomName('WebGLRenderingContext.validateProgram')
3187 @DocsEditable() 3365 @DocsEditable()
3188 void validateProgram(Program program) native; 3366 void validateProgram(Program program) native ;
3189 3367
3190 @DomName('WebGLRenderingContext.vertexAttrib1f') 3368 @DomName('WebGLRenderingContext.vertexAttrib1f')
3191 @DocsEditable() 3369 @DocsEditable()
3192 void vertexAttrib1f(int indx, num x) native; 3370 void vertexAttrib1f(int indx, num x) native ;
3193 3371
3194 @DomName('WebGLRenderingContext.vertexAttrib1fv') 3372 @DomName('WebGLRenderingContext.vertexAttrib1fv')
3195 @DocsEditable() 3373 @DocsEditable()
3196 void vertexAttrib1fv(int indx, Float32List values) native; 3374 void vertexAttrib1fv(int indx, Float32List values) native ;
3197 3375
3198 @DomName('WebGLRenderingContext.vertexAttrib2f') 3376 @DomName('WebGLRenderingContext.vertexAttrib2f')
3199 @DocsEditable() 3377 @DocsEditable()
3200 void vertexAttrib2f(int indx, num x, num y) native; 3378 void vertexAttrib2f(int indx, num x, num y) native ;
3201 3379
3202 @DomName('WebGLRenderingContext.vertexAttrib2fv') 3380 @DomName('WebGLRenderingContext.vertexAttrib2fv')
3203 @DocsEditable() 3381 @DocsEditable()
3204 void vertexAttrib2fv(int indx, Float32List values) native; 3382 void vertexAttrib2fv(int indx, Float32List values) native ;
3205 3383
3206 @DomName('WebGLRenderingContext.vertexAttrib3f') 3384 @DomName('WebGLRenderingContext.vertexAttrib3f')
3207 @DocsEditable() 3385 @DocsEditable()
3208 void vertexAttrib3f(int indx, num x, num y, num z) native; 3386 void vertexAttrib3f(int indx, num x, num y, num z) native ;
3209 3387
3210 @DomName('WebGLRenderingContext.vertexAttrib3fv') 3388 @DomName('WebGLRenderingContext.vertexAttrib3fv')
3211 @DocsEditable() 3389 @DocsEditable()
3212 void vertexAttrib3fv(int indx, Float32List values) native; 3390 void vertexAttrib3fv(int indx, Float32List values) native ;
3213 3391
3214 @DomName('WebGLRenderingContext.vertexAttrib4f') 3392 @DomName('WebGLRenderingContext.vertexAttrib4f')
3215 @DocsEditable() 3393 @DocsEditable()
3216 void vertexAttrib4f(int indx, num x, num y, num z, num w) native; 3394 void vertexAttrib4f(int indx, num x, num y, num z, num w) native ;
3217 3395
3218 @DomName('WebGLRenderingContext.vertexAttrib4fv') 3396 @DomName('WebGLRenderingContext.vertexAttrib4fv')
3219 @DocsEditable() 3397 @DocsEditable()
3220 void vertexAttrib4fv(int indx, Float32List values) native; 3398 void vertexAttrib4fv(int indx, Float32List values) native ;
3221 3399
3222 @DomName('WebGLRenderingContext.vertexAttribPointer') 3400 @DomName('WebGLRenderingContext.vertexAttribPointer')
3223 @DocsEditable() 3401 @DocsEditable()
3224 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) native; 3402 void vertexAttribPointer(int indx, int size, int type, bool normalized,
3403 int stride, int offset) native ;
3225 3404
3226 @DomName('WebGLRenderingContext.viewport') 3405 @DomName('WebGLRenderingContext.viewport')
3227 @DocsEditable() 3406 @DocsEditable()
3228 void viewport(int x, int y, int width, int height) native; 3407 void viewport(int x, int y, int width, int height) native ;
3229
3230 3408
3231 /** 3409 /**
3232 * Sets the currently bound texture to [data]. 3410 * Sets the currently bound texture to [data].
3233 * 3411 *
3234 * [data] can be either an [ImageElement], a 3412 * [data] can be either an [ImageElement], a
3235 * [CanvasElement], a [VideoElement], or an [ImageData] object. 3413 * [CanvasElement], a [VideoElement], or an [ImageData] object.
3236 * 3414 *
3237 * To use [texImage2d] with a TypedData object, use [texImage2dTyped]. 3415 * To use [texImage2d] with a TypedData object, use [texImage2dTyped].
3238 * 3416 *
3239 */ 3417 */
3240 @JSName('texImage2D') 3418 @JSName('texImage2D')
3241 void texImage2DUntyped(int targetTexture, int levelOfDetail, 3419 void texImage2DUntyped(int targetTexture, int levelOfDetail,
3242 int internalFormat, int format, int type, data) native; 3420 int internalFormat, int format, int type, data) native ;
3243 3421
3244 /** 3422 /**
3245 * Sets the currently bound texture to [data]. 3423 * Sets the currently bound texture to [data].
3246 */ 3424 */
3247 @JSName('texImage2D') 3425 @JSName('texImage2D')
3248 void texImage2DTyped(int targetTexture, int levelOfDetail, 3426 void texImage2DTyped(
3249 int internalFormat, int width, int height, int border, int format, 3427 int targetTexture,
3250 int type, TypedData data) native; 3428 int levelOfDetail,
3429 int internalFormat,
3430 int width,
3431 int height,
3432 int border,
3433 int format,
3434 int type,
3435 TypedData data) native ;
3251 3436
3252 /** 3437 /**
3253 * Updates a sub-rectangle of the currently bound texture to [data]. 3438 * Updates a sub-rectangle of the currently bound texture to [data].
3254 * 3439 *
3255 * [data] can be either an [ImageElement], a 3440 * [data] can be either an [ImageElement], a
3256 * [CanvasElement], a [VideoElement], or an [ImageData] object. 3441 * [CanvasElement], a [VideoElement], or an [ImageData] object.
3257 * 3442 *
3258 * To use [texSubImage2d] with a TypedData object, use [texSubImage2dTyped]. 3443 * To use [texSubImage2d] with a TypedData object, use [texSubImage2dTyped].
3259 * 3444 *
3260 */ 3445 */
3261 @JSName('texSubImage2D') 3446 @JSName('texSubImage2D')
3262 void texSubImage2DUntyped(int targetTexture, int levelOfDetail, 3447 void texSubImage2DUntyped(int targetTexture, int levelOfDetail, int xOffset,
3263 int xOffset, int yOffset, int format, int type, data) native; 3448 int yOffset, int format, int type, data) native ;
3264 3449
3265 /** 3450 /**
3266 * Updates a sub-rectangle of the currently bound texture to [data]. 3451 * Updates a sub-rectangle of the currently bound texture to [data].
3267 */ 3452 */
3268 @JSName('texSubImage2D') 3453 @JSName('texSubImage2D')
3269 void texSubImage2DTyped(int targetTexture, int levelOfDetail, 3454 void texSubImage2DTyped(
3270 int xOffset, int yOffset, int width, int height, int border, int format, 3455 int targetTexture,
3271 int type, TypedData data) native; 3456 int levelOfDetail,
3457 int xOffset,
3458 int yOffset,
3459 int width,
3460 int height,
3461 int border,
3462 int format,
3463 int type,
3464 TypedData data) native ;
3272 } 3465 }
3273 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3274 // for details. All rights reserved. Use of this source code is governed by a 3467 // for details. All rights reserved. Use of this source code is governed by a
3275 // BSD-style license that can be found in the LICENSE file. 3468 // BSD-style license that can be found in the LICENSE file.
3276 3469
3277
3278 @DocsEditable() 3470 @DocsEditable()
3279 @DomName('WebGLShader') 3471 @DomName('WebGLShader')
3280 @Native("WebGLShader") 3472 @Native("WebGLShader")
3281 class Shader extends Interceptor { 3473 class Shader extends Interceptor {
3282 // To suppress missing implicit constructor warnings. 3474 // To suppress missing implicit constructor warnings.
3283 factory Shader._() { throw new UnsupportedError("Not supported"); } 3475 factory Shader._() {
3476 throw new UnsupportedError("Not supported");
3477 }
3284 } 3478 }
3285 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3286 // for details. All rights reserved. Use of this source code is governed by a 3480 // for details. All rights reserved. Use of this source code is governed by a
3287 // BSD-style license that can be found in the LICENSE file. 3481 // BSD-style license that can be found in the LICENSE file.
3288 3482
3289
3290 @DocsEditable() 3483 @DocsEditable()
3291 @DomName('WebGLShaderPrecisionFormat') 3484 @DomName('WebGLShaderPrecisionFormat')
3292 @Native("WebGLShaderPrecisionFormat") 3485 @Native("WebGLShaderPrecisionFormat")
3293 class ShaderPrecisionFormat extends Interceptor { 3486 class ShaderPrecisionFormat extends Interceptor {
3294 // To suppress missing implicit constructor warnings. 3487 // To suppress missing implicit constructor warnings.
3295 factory ShaderPrecisionFormat._() { throw new UnsupportedError("Not supported" ); } 3488 factory ShaderPrecisionFormat._() {
3489 throw new UnsupportedError("Not supported");
3490 }
3296 3491
3297 @DomName('WebGLShaderPrecisionFormat.precision') 3492 @DomName('WebGLShaderPrecisionFormat.precision')
3298 @DocsEditable() 3493 @DocsEditable()
3299 final int precision; 3494 final int precision;
3300 3495
3301 @DomName('WebGLShaderPrecisionFormat.rangeMax') 3496 @DomName('WebGLShaderPrecisionFormat.rangeMax')
3302 @DocsEditable() 3497 @DocsEditable()
3303 final int rangeMax; 3498 final int rangeMax;
3304 3499
3305 @DomName('WebGLShaderPrecisionFormat.rangeMin') 3500 @DomName('WebGLShaderPrecisionFormat.rangeMin')
3306 @DocsEditable() 3501 @DocsEditable()
3307 final int rangeMin; 3502 final int rangeMin;
3308 } 3503 }
3309 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3310 // for details. All rights reserved. Use of this source code is governed by a 3505 // for details. All rights reserved. Use of this source code is governed by a
3311 // BSD-style license that can be found in the LICENSE file. 3506 // BSD-style license that can be found in the LICENSE file.
3312 3507
3313
3314 @DocsEditable() 3508 @DocsEditable()
3315 @DomName('WebGLTexture') 3509 @DomName('WebGLTexture')
3316 @Native("WebGLTexture") 3510 @Native("WebGLTexture")
3317 class Texture extends Interceptor { 3511 class Texture extends Interceptor {
3318 // To suppress missing implicit constructor warnings. 3512 // To suppress missing implicit constructor warnings.
3319 factory Texture._() { throw new UnsupportedError("Not supported"); } 3513 factory Texture._() {
3514 throw new UnsupportedError("Not supported");
3515 }
3320 } 3516 }
3321 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3517 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3322 // for details. All rights reserved. Use of this source code is governed by a 3518 // for details. All rights reserved. Use of this source code is governed by a
3323 // BSD-style license that can be found in the LICENSE file. 3519 // BSD-style license that can be found in the LICENSE file.
3324 3520
3325
3326 @DocsEditable() 3521 @DocsEditable()
3327 @DomName('WebGLUniformLocation') 3522 @DomName('WebGLUniformLocation')
3328 @Native("WebGLUniformLocation") 3523 @Native("WebGLUniformLocation")
3329 class UniformLocation extends Interceptor { 3524 class UniformLocation extends Interceptor {
3330 // To suppress missing implicit constructor warnings. 3525 // To suppress missing implicit constructor warnings.
3331 factory UniformLocation._() { throw new UnsupportedError("Not supported"); } 3526 factory UniformLocation._() {
3527 throw new UnsupportedError("Not supported");
3528 }
3332 } 3529 }
3333 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3530 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3334 // for details. All rights reserved. Use of this source code is governed by a 3531 // for details. All rights reserved. Use of this source code is governed by a
3335 // BSD-style license that can be found in the LICENSE file. 3532 // BSD-style license that can be found in the LICENSE file.
3336 3533
3337
3338 @DocsEditable() 3534 @DocsEditable()
3339 @DomName('WebGLVertexArrayObjectOES') 3535 @DomName('WebGLVertexArrayObjectOES')
3340 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/ 3536 // http://www.khronos.org/registry/webgl/extensions/OES_vertex_array_object/
3341 @Experimental() // experimental 3537 @Experimental() // experimental
3342 @Native("WebGLVertexArrayObjectOES") 3538 @Native("WebGLVertexArrayObjectOES")
3343 class VertexArrayObject extends Interceptor { 3539 class VertexArrayObject extends Interceptor {
3344 // To suppress missing implicit constructor warnings. 3540 // To suppress missing implicit constructor warnings.
3345 factory VertexArrayObject._() { throw new UnsupportedError("Not supported"); } 3541 factory VertexArrayObject._() {
3542 throw new UnsupportedError("Not supported");
3543 }
3346 } 3544 }
3347 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 3545 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
3348 // for details. All rights reserved. Use of this source code is governed by a 3546 // for details. All rights reserved. Use of this source code is governed by a
3349 // BSD-style license that can be found in the LICENSE file. 3547 // BSD-style license that can be found in the LICENSE file.
3350 3548
3351
3352 @DocsEditable() 3549 @DocsEditable()
3353 @DomName('WebGLRenderingContextBase') 3550 @DomName('WebGLRenderingContextBase')
3354 @Experimental() // untriaged 3551 @Experimental() // untriaged
3355 abstract class _WebGLRenderingContextBase extends Interceptor { 3552 abstract class _WebGLRenderingContextBase extends Interceptor {
3356 // To suppress missing implicit constructor warnings. 3553 // To suppress missing implicit constructor warnings.
3357 factory _WebGLRenderingContextBase._() { throw new UnsupportedError("Not suppo rted"); } 3554 factory _WebGLRenderingContextBase._() {
3555 throw new UnsupportedError("Not supported");
3556 }
3358 } 3557 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698