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

Side by Side Diff: client/dom/generated/src/wrapping/_WebGLRenderingContextWrappingImplementation.dart

Issue 9663027: Remove generated directories with 100s of files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 // WARNING: Do not edit - generated code.
6
7 class _WebGLRenderingContextWrappingImplementation extends _CanvasRenderingConte xtWrappingImplementation implements WebGLRenderingContext {
8 _WebGLRenderingContextWrappingImplementation() : super() {}
9
10 static create__WebGLRenderingContextWrappingImplementation() native {
11 return new _WebGLRenderingContextWrappingImplementation();
12 }
13
14 int get drawingBufferHeight() { return _get_drawingBufferHeight(this); }
15 static int _get_drawingBufferHeight(var _this) native;
16
17 int get drawingBufferWidth() { return _get_drawingBufferWidth(this); }
18 static int _get_drawingBufferWidth(var _this) native;
19
20 void activeTexture(int texture) {
21 _activeTexture(this, texture);
22 return;
23 }
24 static void _activeTexture(receiver, texture) native;
25
26 void attachShader(WebGLProgram program, WebGLShader shader) {
27 _attachShader(this, program, shader);
28 return;
29 }
30 static void _attachShader(receiver, program, shader) native;
31
32 void bindAttribLocation(WebGLProgram program, int index, String name) {
33 _bindAttribLocation(this, program, index, name);
34 return;
35 }
36 static void _bindAttribLocation(receiver, program, index, name) native;
37
38 void bindBuffer(int target, WebGLBuffer buffer) {
39 _bindBuffer(this, target, buffer);
40 return;
41 }
42 static void _bindBuffer(receiver, target, buffer) native;
43
44 void bindFramebuffer(int target, WebGLFramebuffer framebuffer) {
45 _bindFramebuffer(this, target, framebuffer);
46 return;
47 }
48 static void _bindFramebuffer(receiver, target, framebuffer) native;
49
50 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer) {
51 _bindRenderbuffer(this, target, renderbuffer);
52 return;
53 }
54 static void _bindRenderbuffer(receiver, target, renderbuffer) native;
55
56 void bindTexture(int target, WebGLTexture texture) {
57 _bindTexture(this, target, texture);
58 return;
59 }
60 static void _bindTexture(receiver, target, texture) native;
61
62 void blendColor(num red, num green, num blue, num alpha) {
63 _blendColor(this, red, green, blue, alpha);
64 return;
65 }
66 static void _blendColor(receiver, red, green, blue, alpha) native;
67
68 void blendEquation(int mode) {
69 _blendEquation(this, mode);
70 return;
71 }
72 static void _blendEquation(receiver, mode) native;
73
74 void blendEquationSeparate(int modeRGB, int modeAlpha) {
75 _blendEquationSeparate(this, modeRGB, modeAlpha);
76 return;
77 }
78 static void _blendEquationSeparate(receiver, modeRGB, modeAlpha) native;
79
80 void blendFunc(int sfactor, int dfactor) {
81 _blendFunc(this, sfactor, dfactor);
82 return;
83 }
84 static void _blendFunc(receiver, sfactor, dfactor) native;
85
86 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha) {
87 _blendFuncSeparate(this, srcRGB, dstRGB, srcAlpha, dstAlpha);
88 return;
89 }
90 static void _blendFuncSeparate(receiver, srcRGB, dstRGB, srcAlpha, dstAlpha) n ative;
91
92 void bufferData(int target, var data_OR_size, int usage) {
93 if (data_OR_size is ArrayBuffer) {
94 _bufferData(this, target, data_OR_size, usage);
95 return;
96 } else {
97 if (data_OR_size is ArrayBufferView) {
98 _bufferData_2(this, target, data_OR_size, usage);
99 return;
100 } else {
101 if (data_OR_size is int) {
102 _bufferData_3(this, target, data_OR_size, usage);
103 return;
104 }
105 }
106 }
107 throw "Incorrect number or type of arguments";
108 }
109 static void _bufferData(receiver, target, data_OR_size, usage) native;
110 static void _bufferData_2(receiver, target, data_OR_size, usage) native;
111 static void _bufferData_3(receiver, target, data_OR_size, usage) native;
112
113 void bufferSubData(int target, int offset, var data) {
114 if (data is ArrayBuffer) {
115 _bufferSubData(this, target, offset, data);
116 return;
117 } else {
118 if (data is ArrayBufferView) {
119 _bufferSubData_2(this, target, offset, data);
120 return;
121 }
122 }
123 throw "Incorrect number or type of arguments";
124 }
125 static void _bufferSubData(receiver, target, offset, data) native;
126 static void _bufferSubData_2(receiver, target, offset, data) native;
127
128 int checkFramebufferStatus(int target) {
129 return _checkFramebufferStatus(this, target);
130 }
131 static int _checkFramebufferStatus(receiver, target) native;
132
133 void clear(int mask) {
134 _clear(this, mask);
135 return;
136 }
137 static void _clear(receiver, mask) native;
138
139 void clearColor(num red, num green, num blue, num alpha) {
140 _clearColor(this, red, green, blue, alpha);
141 return;
142 }
143 static void _clearColor(receiver, red, green, blue, alpha) native;
144
145 void clearDepth(num depth) {
146 _clearDepth(this, depth);
147 return;
148 }
149 static void _clearDepth(receiver, depth) native;
150
151 void clearStencil(int s) {
152 _clearStencil(this, s);
153 return;
154 }
155 static void _clearStencil(receiver, s) native;
156
157 void colorMask(bool red, bool green, bool blue, bool alpha) {
158 _colorMask(this, red, green, blue, alpha);
159 return;
160 }
161 static void _colorMask(receiver, red, green, blue, alpha) native;
162
163 void compileShader(WebGLShader shader) {
164 _compileShader(this, shader);
165 return;
166 }
167 static void _compileShader(receiver, shader) native;
168
169 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, ArrayBufferView data) {
170 _compressedTexImage2D(this, target, level, internalformat, width, height, bo rder, data);
171 return;
172 }
173 static void _compressedTexImage2D(receiver, target, level, internalformat, wid th, height, border, data) native;
174
175 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data) {
176 _compressedTexSubImage2D(this, target, level, xoffset, yoffset, width, heigh t, format, data);
177 return;
178 }
179 static void _compressedTexSubImage2D(receiver, target, level, xoffset, yoffset , width, height, format, data) native;
180
181 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border) {
182 _copyTexImage2D(this, target, level, internalformat, x, y, width, height, bo rder);
183 return;
184 }
185 static void _copyTexImage2D(receiver, target, level, internalformat, x, y, wid th, height, border) native;
186
187 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height) {
188 _copyTexSubImage2D(this, target, level, xoffset, yoffset, x, y, width, heigh t);
189 return;
190 }
191 static void _copyTexSubImage2D(receiver, target, level, xoffset, yoffset, x, y , width, height) native;
192
193 WebGLBuffer createBuffer() {
194 return _createBuffer(this);
195 }
196 static WebGLBuffer _createBuffer(receiver) native;
197
198 WebGLFramebuffer createFramebuffer() {
199 return _createFramebuffer(this);
200 }
201 static WebGLFramebuffer _createFramebuffer(receiver) native;
202
203 WebGLProgram createProgram() {
204 return _createProgram(this);
205 }
206 static WebGLProgram _createProgram(receiver) native;
207
208 WebGLRenderbuffer createRenderbuffer() {
209 return _createRenderbuffer(this);
210 }
211 static WebGLRenderbuffer _createRenderbuffer(receiver) native;
212
213 WebGLShader createShader(int type) {
214 return _createShader(this, type);
215 }
216 static WebGLShader _createShader(receiver, type) native;
217
218 WebGLTexture createTexture() {
219 return _createTexture(this);
220 }
221 static WebGLTexture _createTexture(receiver) native;
222
223 void cullFace(int mode) {
224 _cullFace(this, mode);
225 return;
226 }
227 static void _cullFace(receiver, mode) native;
228
229 void deleteBuffer(WebGLBuffer buffer) {
230 _deleteBuffer(this, buffer);
231 return;
232 }
233 static void _deleteBuffer(receiver, buffer) native;
234
235 void deleteFramebuffer(WebGLFramebuffer framebuffer) {
236 _deleteFramebuffer(this, framebuffer);
237 return;
238 }
239 static void _deleteFramebuffer(receiver, framebuffer) native;
240
241 void deleteProgram(WebGLProgram program) {
242 _deleteProgram(this, program);
243 return;
244 }
245 static void _deleteProgram(receiver, program) native;
246
247 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer) {
248 _deleteRenderbuffer(this, renderbuffer);
249 return;
250 }
251 static void _deleteRenderbuffer(receiver, renderbuffer) native;
252
253 void deleteShader(WebGLShader shader) {
254 _deleteShader(this, shader);
255 return;
256 }
257 static void _deleteShader(receiver, shader) native;
258
259 void deleteTexture(WebGLTexture texture) {
260 _deleteTexture(this, texture);
261 return;
262 }
263 static void _deleteTexture(receiver, texture) native;
264
265 void depthFunc(int func) {
266 _depthFunc(this, func);
267 return;
268 }
269 static void _depthFunc(receiver, func) native;
270
271 void depthMask(bool flag) {
272 _depthMask(this, flag);
273 return;
274 }
275 static void _depthMask(receiver, flag) native;
276
277 void depthRange(num zNear, num zFar) {
278 _depthRange(this, zNear, zFar);
279 return;
280 }
281 static void _depthRange(receiver, zNear, zFar) native;
282
283 void detachShader(WebGLProgram program, WebGLShader shader) {
284 _detachShader(this, program, shader);
285 return;
286 }
287 static void _detachShader(receiver, program, shader) native;
288
289 void disable(int cap) {
290 _disable(this, cap);
291 return;
292 }
293 static void _disable(receiver, cap) native;
294
295 void disableVertexAttribArray(int index) {
296 _disableVertexAttribArray(this, index);
297 return;
298 }
299 static void _disableVertexAttribArray(receiver, index) native;
300
301 void drawArrays(int mode, int first, int count) {
302 _drawArrays(this, mode, first, count);
303 return;
304 }
305 static void _drawArrays(receiver, mode, first, count) native;
306
307 void drawElements(int mode, int count, int type, int offset) {
308 _drawElements(this, mode, count, type, offset);
309 return;
310 }
311 static void _drawElements(receiver, mode, count, type, offset) native;
312
313 void enable(int cap) {
314 _enable(this, cap);
315 return;
316 }
317 static void _enable(receiver, cap) native;
318
319 void enableVertexAttribArray(int index) {
320 _enableVertexAttribArray(this, index);
321 return;
322 }
323 static void _enableVertexAttribArray(receiver, index) native;
324
325 void finish() {
326 _finish(this);
327 return;
328 }
329 static void _finish(receiver) native;
330
331 void flush() {
332 _flush(this);
333 return;
334 }
335 static void _flush(receiver) native;
336
337 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, WebGLRenderbuffer renderbuffer) {
338 _framebufferRenderbuffer(this, target, attachment, renderbuffertarget, rende rbuffer);
339 return;
340 }
341 static void _framebufferRenderbuffer(receiver, target, attachment, renderbuffe rtarget, renderbuffer) native;
342
343 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText ure texture, int level) {
344 _framebufferTexture2D(this, target, attachment, textarget, texture, level);
345 return;
346 }
347 static void _framebufferTexture2D(receiver, target, attachment, textarget, tex ture, level) native;
348
349 void frontFace(int mode) {
350 _frontFace(this, mode);
351 return;
352 }
353 static void _frontFace(receiver, mode) native;
354
355 void generateMipmap(int target) {
356 _generateMipmap(this, target);
357 return;
358 }
359 static void _generateMipmap(receiver, target) native;
360
361 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index) {
362 return _getActiveAttrib(this, program, index);
363 }
364 static WebGLActiveInfo _getActiveAttrib(receiver, program, index) native;
365
366 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index) {
367 return _getActiveUniform(this, program, index);
368 }
369 static WebGLActiveInfo _getActiveUniform(receiver, program, index) native;
370
371 List getAttachedShaders(WebGLProgram program) {
372 return _getAttachedShaders(this, program);
373 }
374 static List _getAttachedShaders(receiver, program) native;
375
376 int getAttribLocation(WebGLProgram program, String name) {
377 return _getAttribLocation(this, program, name);
378 }
379 static int _getAttribLocation(receiver, program, name) native;
380
381 Object getBufferParameter(int target, int pname) {
382 return _getBufferParameter(this, target, pname);
383 }
384 static Object _getBufferParameter(receiver, target, pname) native;
385
386 WebGLContextAttributes getContextAttributes() {
387 return _getContextAttributes(this);
388 }
389 static WebGLContextAttributes _getContextAttributes(receiver) native;
390
391 int getError() {
392 return _getError(this);
393 }
394 static int _getError(receiver) native;
395
396 Object getExtension(String name) {
397 return _getExtension(this, name);
398 }
399 static Object _getExtension(receiver, name) native;
400
401 Object getFramebufferAttachmentParameter(int target, int attachment, int pname ) {
402 return _getFramebufferAttachmentParameter(this, target, attachment, pname);
403 }
404 static Object _getFramebufferAttachmentParameter(receiver, target, attachment, pname) native;
405
406 Object getParameter(int pname) {
407 return _getParameter(this, pname);
408 }
409 static Object _getParameter(receiver, pname) native;
410
411 String getProgramInfoLog(WebGLProgram program) {
412 return _getProgramInfoLog(this, program);
413 }
414 static String _getProgramInfoLog(receiver, program) native;
415
416 Object getProgramParameter(WebGLProgram program, int pname) {
417 return _getProgramParameter(this, program, pname);
418 }
419 static Object _getProgramParameter(receiver, program, pname) native;
420
421 Object getRenderbufferParameter(int target, int pname) {
422 return _getRenderbufferParameter(this, target, pname);
423 }
424 static Object _getRenderbufferParameter(receiver, target, pname) native;
425
426 String getShaderInfoLog(WebGLShader shader) {
427 return _getShaderInfoLog(this, shader);
428 }
429 static String _getShaderInfoLog(receiver, shader) native;
430
431 Object getShaderParameter(WebGLShader shader, int pname) {
432 return _getShaderParameter(this, shader, pname);
433 }
434 static Object _getShaderParameter(receiver, shader, pname) native;
435
436 String getShaderSource(WebGLShader shader) {
437 return _getShaderSource(this, shader);
438 }
439 static String _getShaderSource(receiver, shader) native;
440
441 Object getTexParameter(int target, int pname) {
442 return _getTexParameter(this, target, pname);
443 }
444 static Object _getTexParameter(receiver, target, pname) native;
445
446 Object getUniform(WebGLProgram program, WebGLUniformLocation location) {
447 return _getUniform(this, program, location);
448 }
449 static Object _getUniform(receiver, program, location) native;
450
451 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name) {
452 return _getUniformLocation(this, program, name);
453 }
454 static WebGLUniformLocation _getUniformLocation(receiver, program, name) nativ e;
455
456 Object getVertexAttrib(int index, int pname) {
457 return _getVertexAttrib(this, index, pname);
458 }
459 static Object _getVertexAttrib(receiver, index, pname) native;
460
461 int getVertexAttribOffset(int index, int pname) {
462 return _getVertexAttribOffset(this, index, pname);
463 }
464 static int _getVertexAttribOffset(receiver, index, pname) native;
465
466 void hint(int target, int mode) {
467 _hint(this, target, mode);
468 return;
469 }
470 static void _hint(receiver, target, mode) native;
471
472 bool isBuffer(WebGLBuffer buffer) {
473 return _isBuffer(this, buffer);
474 }
475 static bool _isBuffer(receiver, buffer) native;
476
477 bool isContextLost() {
478 return _isContextLost(this);
479 }
480 static bool _isContextLost(receiver) native;
481
482 bool isEnabled(int cap) {
483 return _isEnabled(this, cap);
484 }
485 static bool _isEnabled(receiver, cap) native;
486
487 bool isFramebuffer(WebGLFramebuffer framebuffer) {
488 return _isFramebuffer(this, framebuffer);
489 }
490 static bool _isFramebuffer(receiver, framebuffer) native;
491
492 bool isProgram(WebGLProgram program) {
493 return _isProgram(this, program);
494 }
495 static bool _isProgram(receiver, program) native;
496
497 bool isRenderbuffer(WebGLRenderbuffer renderbuffer) {
498 return _isRenderbuffer(this, renderbuffer);
499 }
500 static bool _isRenderbuffer(receiver, renderbuffer) native;
501
502 bool isShader(WebGLShader shader) {
503 return _isShader(this, shader);
504 }
505 static bool _isShader(receiver, shader) native;
506
507 bool isTexture(WebGLTexture texture) {
508 return _isTexture(this, texture);
509 }
510 static bool _isTexture(receiver, texture) native;
511
512 void lineWidth(num width) {
513 _lineWidth(this, width);
514 return;
515 }
516 static void _lineWidth(receiver, width) native;
517
518 void linkProgram(WebGLProgram program) {
519 _linkProgram(this, program);
520 return;
521 }
522 static void _linkProgram(receiver, program) native;
523
524 void pixelStorei(int pname, int param) {
525 _pixelStorei(this, pname, param);
526 return;
527 }
528 static void _pixelStorei(receiver, pname, param) native;
529
530 void polygonOffset(num factor, num units) {
531 _polygonOffset(this, factor, units);
532 return;
533 }
534 static void _polygonOffset(receiver, factor, units) native;
535
536 void readPixels(int x, int y, int width, int height, int format, int type, Arr ayBufferView pixels) {
537 _readPixels(this, x, y, width, height, format, type, pixels);
538 return;
539 }
540 static void _readPixels(receiver, x, y, width, height, format, type, pixels) n ative;
541
542 void releaseShaderCompiler() {
543 _releaseShaderCompiler(this);
544 return;
545 }
546 static void _releaseShaderCompiler(receiver) native;
547
548 void renderbufferStorage(int target, int internalformat, int width, int height ) {
549 _renderbufferStorage(this, target, internalformat, width, height);
550 return;
551 }
552 static void _renderbufferStorage(receiver, target, internalformat, width, heig ht) native;
553
554 void sampleCoverage(num value, bool invert) {
555 _sampleCoverage(this, value, invert);
556 return;
557 }
558 static void _sampleCoverage(receiver, value, invert) native;
559
560 void scissor(int x, int y, int width, int height) {
561 _scissor(this, x, y, width, height);
562 return;
563 }
564 static void _scissor(receiver, x, y, width, height) native;
565
566 void shaderSource(WebGLShader shader, String string) {
567 _shaderSource(this, shader, string);
568 return;
569 }
570 static void _shaderSource(receiver, shader, string) native;
571
572 void stencilFunc(int func, int ref, int mask) {
573 _stencilFunc(this, func, ref, mask);
574 return;
575 }
576 static void _stencilFunc(receiver, func, ref, mask) native;
577
578 void stencilFuncSeparate(int face, int func, int ref, int mask) {
579 _stencilFuncSeparate(this, face, func, ref, mask);
580 return;
581 }
582 static void _stencilFuncSeparate(receiver, face, func, ref, mask) native;
583
584 void stencilMask(int mask) {
585 _stencilMask(this, mask);
586 return;
587 }
588 static void _stencilMask(receiver, mask) native;
589
590 void stencilMaskSeparate(int face, int mask) {
591 _stencilMaskSeparate(this, face, mask);
592 return;
593 }
594 static void _stencilMaskSeparate(receiver, face, mask) native;
595
596 void stencilOp(int fail, int zfail, int zpass) {
597 _stencilOp(this, fail, zfail, zpass);
598 return;
599 }
600 static void _stencilOp(receiver, fail, zfail, zpass) native;
601
602 void stencilOpSeparate(int face, int fail, int zfail, int zpass) {
603 _stencilOpSeparate(this, face, fail, zfail, zpass);
604 return;
605 }
606 static void _stencilOpSeparate(receiver, face, fail, zfail, zpass) native;
607
608 void texImage2D(int target, int level, int internalformat, int format_OR_width , int height_OR_type, var border_OR_canvas_OR_image_OR_pixels_OR_video, [int for mat = null, int type = null, ArrayBufferView pixels = null]) {
609 if (border_OR_canvas_OR_image_OR_pixels_OR_video is ImageData) {
610 if (format === null) {
611 if (type === null) {
612 if (pixels === null) {
613 _texImage2D(this, target, level, internalformat, format_OR_width, he ight_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
614 return;
615 }
616 }
617 }
618 } else {
619 if (border_OR_canvas_OR_image_OR_pixels_OR_video is HTMLImageElement) {
620 if (format === null) {
621 if (type === null) {
622 if (pixels === null) {
623 _texImage2D_2(this, target, level, internalformat, format_OR_width , height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
624 return;
625 }
626 }
627 }
628 } else {
629 if (border_OR_canvas_OR_image_OR_pixels_OR_video is HTMLCanvasElement) {
630 if (format === null) {
631 if (type === null) {
632 if (pixels === null) {
633 _texImage2D_3(this, target, level, internalformat, format_OR_wid th, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
634 return;
635 }
636 }
637 }
638 } else {
639 if (border_OR_canvas_OR_image_OR_pixels_OR_video is HTMLVideoElement) {
640 if (format === null) {
641 if (type === null) {
642 if (pixels === null) {
643 _texImage2D_4(this, target, level, internalformat, format_OR_w idth, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video);
644 return;
645 }
646 }
647 }
648 } else {
649 if (border_OR_canvas_OR_image_OR_pixels_OR_video is int) {
650 _texImage2D_5(this, target, level, internalformat, format_OR_width , height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type, pi xels);
651 return;
652 }
653 }
654 }
655 }
656 }
657 throw "Incorrect number or type of arguments";
658 }
659 static void _texImage2D(receiver, target, level, internalformat, format_OR_wid th, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video) native;
660 static void _texImage2D_2(receiver, target, level, internalformat, format_OR_w idth, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video) native;
661 static void _texImage2D_3(receiver, target, level, internalformat, format_OR_w idth, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video) native;
662 static void _texImage2D_4(receiver, target, level, internalformat, format_OR_w idth, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video) native;
663 static void _texImage2D_5(receiver, target, level, internalformat, format_OR_w idth, height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, format, type , pixels) native;
664
665 void texParameterf(int target, int pname, num param) {
666 _texParameterf(this, target, pname, param);
667 return;
668 }
669 static void _texParameterf(receiver, target, pname, param) native;
670
671 void texParameteri(int target, int pname, int param) {
672 _texParameteri(this, target, pname, param);
673 return;
674 }
675 static void _texParameteri(receiver, target, pname, param) native;
676
677 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format _OR_width, int height_OR_type, var canvas_OR_format_OR_image_OR_pixels_OR_video, [int type = null, ArrayBufferView pixels = null]) {
678 if (canvas_OR_format_OR_image_OR_pixels_OR_video is ImageData) {
679 if (type === null) {
680 if (pixels === null) {
681 _texSubImage2D(this, target, level, xoffset, yoffset, format_OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
682 return;
683 }
684 }
685 } else {
686 if (canvas_OR_format_OR_image_OR_pixels_OR_video is HTMLImageElement) {
687 if (type === null) {
688 if (pixels === null) {
689 _texSubImage2D_2(this, target, level, xoffset, yoffset, format_OR_wi dth, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
690 return;
691 }
692 }
693 } else {
694 if (canvas_OR_format_OR_image_OR_pixels_OR_video is HTMLCanvasElement) {
695 if (type === null) {
696 if (pixels === null) {
697 _texSubImage2D_3(this, target, level, xoffset, yoffset, format_OR_ width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
698 return;
699 }
700 }
701 } else {
702 if (canvas_OR_format_OR_image_OR_pixels_OR_video is HTMLVideoElement) {
703 if (type === null) {
704 if (pixels === null) {
705 _texSubImage2D_4(this, target, level, xoffset, yoffset, format_O R_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video);
706 return;
707 }
708 }
709 } else {
710 if (canvas_OR_format_OR_image_OR_pixels_OR_video is int) {
711 _texSubImage2D_5(this, target, level, xoffset, yoffset, format_OR_ width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, pixel s);
712 return;
713 }
714 }
715 }
716 }
717 }
718 throw "Incorrect number or type of arguments";
719 }
720 static void _texSubImage2D(receiver, target, level, xoffset, yoffset, format_O R_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native;
721 static void _texSubImage2D_2(receiver, target, level, xoffset, yoffset, format _OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native;
722 static void _texSubImage2D_3(receiver, target, level, xoffset, yoffset, format _OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native;
723 static void _texSubImage2D_4(receiver, target, level, xoffset, yoffset, format _OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video) native;
724 static void _texSubImage2D_5(receiver, target, level, xoffset, yoffset, format _OR_width, height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, type, p ixels) native;
725
726 void uniform1f(WebGLUniformLocation location, num x) {
727 _uniform1f(this, location, x);
728 return;
729 }
730 static void _uniform1f(receiver, location, x) native;
731
732 void uniform1fv(WebGLUniformLocation location, Float32Array v) {
733 _uniform1fv(this, location, v);
734 return;
735 }
736 static void _uniform1fv(receiver, location, v) native;
737
738 void uniform1i(WebGLUniformLocation location, int x) {
739 _uniform1i(this, location, x);
740 return;
741 }
742 static void _uniform1i(receiver, location, x) native;
743
744 void uniform1iv(WebGLUniformLocation location, Int32Array v) {
745 _uniform1iv(this, location, v);
746 return;
747 }
748 static void _uniform1iv(receiver, location, v) native;
749
750 void uniform2f(WebGLUniformLocation location, num x, num y) {
751 _uniform2f(this, location, x, y);
752 return;
753 }
754 static void _uniform2f(receiver, location, x, y) native;
755
756 void uniform2fv(WebGLUniformLocation location, Float32Array v) {
757 _uniform2fv(this, location, v);
758 return;
759 }
760 static void _uniform2fv(receiver, location, v) native;
761
762 void uniform2i(WebGLUniformLocation location, int x, int y) {
763 _uniform2i(this, location, x, y);
764 return;
765 }
766 static void _uniform2i(receiver, location, x, y) native;
767
768 void uniform2iv(WebGLUniformLocation location, Int32Array v) {
769 _uniform2iv(this, location, v);
770 return;
771 }
772 static void _uniform2iv(receiver, location, v) native;
773
774 void uniform3f(WebGLUniformLocation location, num x, num y, num z) {
775 _uniform3f(this, location, x, y, z);
776 return;
777 }
778 static void _uniform3f(receiver, location, x, y, z) native;
779
780 void uniform3fv(WebGLUniformLocation location, Float32Array v) {
781 _uniform3fv(this, location, v);
782 return;
783 }
784 static void _uniform3fv(receiver, location, v) native;
785
786 void uniform3i(WebGLUniformLocation location, int x, int y, int z) {
787 _uniform3i(this, location, x, y, z);
788 return;
789 }
790 static void _uniform3i(receiver, location, x, y, z) native;
791
792 void uniform3iv(WebGLUniformLocation location, Int32Array v) {
793 _uniform3iv(this, location, v);
794 return;
795 }
796 static void _uniform3iv(receiver, location, v) native;
797
798 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w) {
799 _uniform4f(this, location, x, y, z, w);
800 return;
801 }
802 static void _uniform4f(receiver, location, x, y, z, w) native;
803
804 void uniform4fv(WebGLUniformLocation location, Float32Array v) {
805 _uniform4fv(this, location, v);
806 return;
807 }
808 static void _uniform4fv(receiver, location, v) native;
809
810 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w) {
811 _uniform4i(this, location, x, y, z, w);
812 return;
813 }
814 static void _uniform4i(receiver, location, x, y, z, w) native;
815
816 void uniform4iv(WebGLUniformLocation location, Int32Array v) {
817 _uniform4iv(this, location, v);
818 return;
819 }
820 static void _uniform4iv(receiver, location, v) native;
821
822 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) {
823 _uniformMatrix2fv(this, location, transpose, array);
824 return;
825 }
826 static void _uniformMatrix2fv(receiver, location, transpose, array) native;
827
828 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) {
829 _uniformMatrix3fv(this, location, transpose, array);
830 return;
831 }
832 static void _uniformMatrix3fv(receiver, location, transpose, array) native;
833
834 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array) {
835 _uniformMatrix4fv(this, location, transpose, array);
836 return;
837 }
838 static void _uniformMatrix4fv(receiver, location, transpose, array) native;
839
840 void useProgram(WebGLProgram program) {
841 _useProgram(this, program);
842 return;
843 }
844 static void _useProgram(receiver, program) native;
845
846 void validateProgram(WebGLProgram program) {
847 _validateProgram(this, program);
848 return;
849 }
850 static void _validateProgram(receiver, program) native;
851
852 void vertexAttrib1f(int indx, num x) {
853 _vertexAttrib1f(this, indx, x);
854 return;
855 }
856 static void _vertexAttrib1f(receiver, indx, x) native;
857
858 void vertexAttrib1fv(int indx, Float32Array values) {
859 _vertexAttrib1fv(this, indx, values);
860 return;
861 }
862 static void _vertexAttrib1fv(receiver, indx, values) native;
863
864 void vertexAttrib2f(int indx, num x, num y) {
865 _vertexAttrib2f(this, indx, x, y);
866 return;
867 }
868 static void _vertexAttrib2f(receiver, indx, x, y) native;
869
870 void vertexAttrib2fv(int indx, Float32Array values) {
871 _vertexAttrib2fv(this, indx, values);
872 return;
873 }
874 static void _vertexAttrib2fv(receiver, indx, values) native;
875
876 void vertexAttrib3f(int indx, num x, num y, num z) {
877 _vertexAttrib3f(this, indx, x, y, z);
878 return;
879 }
880 static void _vertexAttrib3f(receiver, indx, x, y, z) native;
881
882 void vertexAttrib3fv(int indx, Float32Array values) {
883 _vertexAttrib3fv(this, indx, values);
884 return;
885 }
886 static void _vertexAttrib3fv(receiver, indx, values) native;
887
888 void vertexAttrib4f(int indx, num x, num y, num z, num w) {
889 _vertexAttrib4f(this, indx, x, y, z, w);
890 return;
891 }
892 static void _vertexAttrib4f(receiver, indx, x, y, z, w) native;
893
894 void vertexAttrib4fv(int indx, Float32Array values) {
895 _vertexAttrib4fv(this, indx, values);
896 return;
897 }
898 static void _vertexAttrib4fv(receiver, indx, values) native;
899
900 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset) {
901 _vertexAttribPointer(this, indx, size, type, normalized, stride, offset);
902 return;
903 }
904 static void _vertexAttribPointer(receiver, indx, size, type, normalized, strid e, offset) native;
905
906 void viewport(int x, int y, int width, int height) {
907 _viewport(this, x, y, width, height);
908 return;
909 }
910 static void _viewport(receiver, x, y, width, height) native;
911
912 String get typeName() { return "WebGLRenderingContext"; }
913 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698