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

Side by Side Diff: lib/html/doc/interface/WebGLRenderingContext.dart

Issue 10544064: Add dummy dart:html library for documentation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 6 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) 2012, 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 /// @domName WebGLRenderingContext
8 interface WebGLRenderingContext extends CanvasRenderingContext {
9
10 static final int ACTIVE_ATTRIBUTES = 0x8B89;
11
12 static final int ACTIVE_TEXTURE = 0x84E0;
13
14 static final int ACTIVE_UNIFORMS = 0x8B86;
15
16 static final int ALIASED_LINE_WIDTH_RANGE = 0x846E;
17
18 static final int ALIASED_POINT_SIZE_RANGE = 0x846D;
19
20 static final int ALPHA = 0x1906;
21
22 static final int ALPHA_BITS = 0x0D55;
23
24 static final int ALWAYS = 0x0207;
25
26 static final int ARRAY_BUFFER = 0x8892;
27
28 static final int ARRAY_BUFFER_BINDING = 0x8894;
29
30 static final int ATTACHED_SHADERS = 0x8B85;
31
32 static final int BACK = 0x0405;
33
34 static final int BLEND = 0x0BE2;
35
36 static final int BLEND_COLOR = 0x8005;
37
38 static final int BLEND_DST_ALPHA = 0x80CA;
39
40 static final int BLEND_DST_RGB = 0x80C8;
41
42 static final int BLEND_EQUATION = 0x8009;
43
44 static final int BLEND_EQUATION_ALPHA = 0x883D;
45
46 static final int BLEND_EQUATION_RGB = 0x8009;
47
48 static final int BLEND_SRC_ALPHA = 0x80CB;
49
50 static final int BLEND_SRC_RGB = 0x80C9;
51
52 static final int BLUE_BITS = 0x0D54;
53
54 static final int BOOL = 0x8B56;
55
56 static final int BOOL_VEC2 = 0x8B57;
57
58 static final int BOOL_VEC3 = 0x8B58;
59
60 static final int BOOL_VEC4 = 0x8B59;
61
62 static final int BROWSER_DEFAULT_WEBGL = 0x9244;
63
64 static final int BUFFER_SIZE = 0x8764;
65
66 static final int BUFFER_USAGE = 0x8765;
67
68 static final int BYTE = 0x1400;
69
70 static final int CCW = 0x0901;
71
72 static final int CLAMP_TO_EDGE = 0x812F;
73
74 static final int COLOR_ATTACHMENT0 = 0x8CE0;
75
76 static final int COLOR_BUFFER_BIT = 0x00004000;
77
78 static final int COLOR_CLEAR_VALUE = 0x0C22;
79
80 static final int COLOR_WRITEMASK = 0x0C23;
81
82 static final int COMPILE_STATUS = 0x8B81;
83
84 static final int COMPRESSED_TEXTURE_FORMATS = 0x86A3;
85
86 static final int CONSTANT_ALPHA = 0x8003;
87
88 static final int CONSTANT_COLOR = 0x8001;
89
90 static final int CONTEXT_LOST_WEBGL = 0x9242;
91
92 static final int CULL_FACE = 0x0B44;
93
94 static final int CULL_FACE_MODE = 0x0B45;
95
96 static final int CURRENT_PROGRAM = 0x8B8D;
97
98 static final int CURRENT_VERTEX_ATTRIB = 0x8626;
99
100 static final int CW = 0x0900;
101
102 static final int DECR = 0x1E03;
103
104 static final int DECR_WRAP = 0x8508;
105
106 static final int DELETE_STATUS = 0x8B80;
107
108 static final int DEPTH_ATTACHMENT = 0x8D00;
109
110 static final int DEPTH_BITS = 0x0D56;
111
112 static final int DEPTH_BUFFER_BIT = 0x00000100;
113
114 static final int DEPTH_CLEAR_VALUE = 0x0B73;
115
116 static final int DEPTH_COMPONENT = 0x1902;
117
118 static final int DEPTH_COMPONENT16 = 0x81A5;
119
120 static final int DEPTH_FUNC = 0x0B74;
121
122 static final int DEPTH_RANGE = 0x0B70;
123
124 static final int DEPTH_STENCIL = 0x84F9;
125
126 static final int DEPTH_STENCIL_ATTACHMENT = 0x821A;
127
128 static final int DEPTH_TEST = 0x0B71;
129
130 static final int DEPTH_WRITEMASK = 0x0B72;
131
132 static final int DITHER = 0x0BD0;
133
134 static final int DONT_CARE = 0x1100;
135
136 static final int DST_ALPHA = 0x0304;
137
138 static final int DST_COLOR = 0x0306;
139
140 static final int DYNAMIC_DRAW = 0x88E8;
141
142 static final int ELEMENT_ARRAY_BUFFER = 0x8893;
143
144 static final int ELEMENT_ARRAY_BUFFER_BINDING = 0x8895;
145
146 static final int EQUAL = 0x0202;
147
148 static final int FASTEST = 0x1101;
149
150 static final int FLOAT = 0x1406;
151
152 static final int FLOAT_MAT2 = 0x8B5A;
153
154 static final int FLOAT_MAT3 = 0x8B5B;
155
156 static final int FLOAT_MAT4 = 0x8B5C;
157
158 static final int FLOAT_VEC2 = 0x8B50;
159
160 static final int FLOAT_VEC3 = 0x8B51;
161
162 static final int FLOAT_VEC4 = 0x8B52;
163
164 static final int FRAGMENT_SHADER = 0x8B30;
165
166 static final int FRAMEBUFFER = 0x8D40;
167
168 static final int FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 0x8CD1;
169
170 static final int FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 0x8CD0;
171
172 static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 0x8CD3;
173
174 static final int FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 0x8CD2;
175
176 static final int FRAMEBUFFER_BINDING = 0x8CA6;
177
178 static final int FRAMEBUFFER_COMPLETE = 0x8CD5;
179
180 static final int FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 0x8CD6;
181
182 static final int FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 0x8CD9;
183
184 static final int FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 0x8CD7;
185
186 static final int FRAMEBUFFER_UNSUPPORTED = 0x8CDD;
187
188 static final int FRONT = 0x0404;
189
190 static final int FRONT_AND_BACK = 0x0408;
191
192 static final int FRONT_FACE = 0x0B46;
193
194 static final int FUNC_ADD = 0x8006;
195
196 static final int FUNC_REVERSE_SUBTRACT = 0x800B;
197
198 static final int FUNC_SUBTRACT = 0x800A;
199
200 static final int GENERATE_MIPMAP_HINT = 0x8192;
201
202 static final int GEQUAL = 0x0206;
203
204 static final int GREATER = 0x0204;
205
206 static final int GREEN_BITS = 0x0D53;
207
208 static final int HIGH_FLOAT = 0x8DF2;
209
210 static final int HIGH_INT = 0x8DF5;
211
212 static final int INCR = 0x1E02;
213
214 static final int INCR_WRAP = 0x8507;
215
216 static final int INT = 0x1404;
217
218 static final int INT_VEC2 = 0x8B53;
219
220 static final int INT_VEC3 = 0x8B54;
221
222 static final int INT_VEC4 = 0x8B55;
223
224 static final int INVALID_ENUM = 0x0500;
225
226 static final int INVALID_FRAMEBUFFER_OPERATION = 0x0506;
227
228 static final int INVALID_OPERATION = 0x0502;
229
230 static final int INVALID_VALUE = 0x0501;
231
232 static final int INVERT = 0x150A;
233
234 static final int KEEP = 0x1E00;
235
236 static final int LEQUAL = 0x0203;
237
238 static final int LESS = 0x0201;
239
240 static final int LINEAR = 0x2601;
241
242 static final int LINEAR_MIPMAP_LINEAR = 0x2703;
243
244 static final int LINEAR_MIPMAP_NEAREST = 0x2701;
245
246 static final int LINES = 0x0001;
247
248 static final int LINE_LOOP = 0x0002;
249
250 static final int LINE_STRIP = 0x0003;
251
252 static final int LINE_WIDTH = 0x0B21;
253
254 static final int LINK_STATUS = 0x8B82;
255
256 static final int LOW_FLOAT = 0x8DF0;
257
258 static final int LOW_INT = 0x8DF3;
259
260 static final int LUMINANCE = 0x1909;
261
262 static final int LUMINANCE_ALPHA = 0x190A;
263
264 static final int MAX_COMBINED_TEXTURE_IMAGE_UNITS = 0x8B4D;
265
266 static final int MAX_CUBE_MAP_TEXTURE_SIZE = 0x851C;
267
268 static final int MAX_FRAGMENT_UNIFORM_VECTORS = 0x8DFD;
269
270 static final int MAX_RENDERBUFFER_SIZE = 0x84E8;
271
272 static final int MAX_TEXTURE_IMAGE_UNITS = 0x8872;
273
274 static final int MAX_TEXTURE_SIZE = 0x0D33;
275
276 static final int MAX_VARYING_VECTORS = 0x8DFC;
277
278 static final int MAX_VERTEX_ATTRIBS = 0x8869;
279
280 static final int MAX_VERTEX_TEXTURE_IMAGE_UNITS = 0x8B4C;
281
282 static final int MAX_VERTEX_UNIFORM_VECTORS = 0x8DFB;
283
284 static final int MAX_VIEWPORT_DIMS = 0x0D3A;
285
286 static final int MEDIUM_FLOAT = 0x8DF1;
287
288 static final int MEDIUM_INT = 0x8DF4;
289
290 static final int MIRRORED_REPEAT = 0x8370;
291
292 static final int NEAREST = 0x2600;
293
294 static final int NEAREST_MIPMAP_LINEAR = 0x2702;
295
296 static final int NEAREST_MIPMAP_NEAREST = 0x2700;
297
298 static final int NEVER = 0x0200;
299
300 static final int NICEST = 0x1102;
301
302 static final int NONE = 0;
303
304 static final int NOTEQUAL = 0x0205;
305
306 static final int NO_ERROR = 0;
307
308 static final int ONE = 1;
309
310 static final int ONE_MINUS_CONSTANT_ALPHA = 0x8004;
311
312 static final int ONE_MINUS_CONSTANT_COLOR = 0x8002;
313
314 static final int ONE_MINUS_DST_ALPHA = 0x0305;
315
316 static final int ONE_MINUS_DST_COLOR = 0x0307;
317
318 static final int ONE_MINUS_SRC_ALPHA = 0x0303;
319
320 static final int ONE_MINUS_SRC_COLOR = 0x0301;
321
322 static final int OUT_OF_MEMORY = 0x0505;
323
324 static final int PACK_ALIGNMENT = 0x0D05;
325
326 static final int POINTS = 0x0000;
327
328 static final int POLYGON_OFFSET_FACTOR = 0x8038;
329
330 static final int POLYGON_OFFSET_FILL = 0x8037;
331
332 static final int POLYGON_OFFSET_UNITS = 0x2A00;
333
334 static final int RED_BITS = 0x0D52;
335
336 static final int RENDERBUFFER = 0x8D41;
337
338 static final int RENDERBUFFER_ALPHA_SIZE = 0x8D53;
339
340 static final int RENDERBUFFER_BINDING = 0x8CA7;
341
342 static final int RENDERBUFFER_BLUE_SIZE = 0x8D52;
343
344 static final int RENDERBUFFER_DEPTH_SIZE = 0x8D54;
345
346 static final int RENDERBUFFER_GREEN_SIZE = 0x8D51;
347
348 static final int RENDERBUFFER_HEIGHT = 0x8D43;
349
350 static final int RENDERBUFFER_INTERNAL_FORMAT = 0x8D44;
351
352 static final int RENDERBUFFER_RED_SIZE = 0x8D50;
353
354 static final int RENDERBUFFER_STENCIL_SIZE = 0x8D55;
355
356 static final int RENDERBUFFER_WIDTH = 0x8D42;
357
358 static final int RENDERER = 0x1F01;
359
360 static final int REPEAT = 0x2901;
361
362 static final int REPLACE = 0x1E01;
363
364 static final int RGB = 0x1907;
365
366 static final int RGB565 = 0x8D62;
367
368 static final int RGB5_A1 = 0x8057;
369
370 static final int RGBA = 0x1908;
371
372 static final int RGBA4 = 0x8056;
373
374 static final int SAMPLER_2D = 0x8B5E;
375
376 static final int SAMPLER_CUBE = 0x8B60;
377
378 static final int SAMPLES = 0x80A9;
379
380 static final int SAMPLE_ALPHA_TO_COVERAGE = 0x809E;
381
382 static final int SAMPLE_BUFFERS = 0x80A8;
383
384 static final int SAMPLE_COVERAGE = 0x80A0;
385
386 static final int SAMPLE_COVERAGE_INVERT = 0x80AB;
387
388 static final int SAMPLE_COVERAGE_VALUE = 0x80AA;
389
390 static final int SCISSOR_BOX = 0x0C10;
391
392 static final int SCISSOR_TEST = 0x0C11;
393
394 static final int SHADER_TYPE = 0x8B4F;
395
396 static final int SHADING_LANGUAGE_VERSION = 0x8B8C;
397
398 static final int SHORT = 0x1402;
399
400 static final int SRC_ALPHA = 0x0302;
401
402 static final int SRC_ALPHA_SATURATE = 0x0308;
403
404 static final int SRC_COLOR = 0x0300;
405
406 static final int STATIC_DRAW = 0x88E4;
407
408 static final int STENCIL_ATTACHMENT = 0x8D20;
409
410 static final int STENCIL_BACK_FAIL = 0x8801;
411
412 static final int STENCIL_BACK_FUNC = 0x8800;
413
414 static final int STENCIL_BACK_PASS_DEPTH_FAIL = 0x8802;
415
416 static final int STENCIL_BACK_PASS_DEPTH_PASS = 0x8803;
417
418 static final int STENCIL_BACK_REF = 0x8CA3;
419
420 static final int STENCIL_BACK_VALUE_MASK = 0x8CA4;
421
422 static final int STENCIL_BACK_WRITEMASK = 0x8CA5;
423
424 static final int STENCIL_BITS = 0x0D57;
425
426 static final int STENCIL_BUFFER_BIT = 0x00000400;
427
428 static final int STENCIL_CLEAR_VALUE = 0x0B91;
429
430 static final int STENCIL_FAIL = 0x0B94;
431
432 static final int STENCIL_FUNC = 0x0B92;
433
434 static final int STENCIL_INDEX = 0x1901;
435
436 static final int STENCIL_INDEX8 = 0x8D48;
437
438 static final int STENCIL_PASS_DEPTH_FAIL = 0x0B95;
439
440 static final int STENCIL_PASS_DEPTH_PASS = 0x0B96;
441
442 static final int STENCIL_REF = 0x0B97;
443
444 static final int STENCIL_TEST = 0x0B90;
445
446 static final int STENCIL_VALUE_MASK = 0x0B93;
447
448 static final int STENCIL_WRITEMASK = 0x0B98;
449
450 static final int STREAM_DRAW = 0x88E0;
451
452 static final int SUBPIXEL_BITS = 0x0D50;
453
454 static final int TEXTURE = 0x1702;
455
456 static final int TEXTURE0 = 0x84C0;
457
458 static final int TEXTURE1 = 0x84C1;
459
460 static final int TEXTURE10 = 0x84CA;
461
462 static final int TEXTURE11 = 0x84CB;
463
464 static final int TEXTURE12 = 0x84CC;
465
466 static final int TEXTURE13 = 0x84CD;
467
468 static final int TEXTURE14 = 0x84CE;
469
470 static final int TEXTURE15 = 0x84CF;
471
472 static final int TEXTURE16 = 0x84D0;
473
474 static final int TEXTURE17 = 0x84D1;
475
476 static final int TEXTURE18 = 0x84D2;
477
478 static final int TEXTURE19 = 0x84D3;
479
480 static final int TEXTURE2 = 0x84C2;
481
482 static final int TEXTURE20 = 0x84D4;
483
484 static final int TEXTURE21 = 0x84D5;
485
486 static final int TEXTURE22 = 0x84D6;
487
488 static final int TEXTURE23 = 0x84D7;
489
490 static final int TEXTURE24 = 0x84D8;
491
492 static final int TEXTURE25 = 0x84D9;
493
494 static final int TEXTURE26 = 0x84DA;
495
496 static final int TEXTURE27 = 0x84DB;
497
498 static final int TEXTURE28 = 0x84DC;
499
500 static final int TEXTURE29 = 0x84DD;
501
502 static final int TEXTURE3 = 0x84C3;
503
504 static final int TEXTURE30 = 0x84DE;
505
506 static final int TEXTURE31 = 0x84DF;
507
508 static final int TEXTURE4 = 0x84C4;
509
510 static final int TEXTURE5 = 0x84C5;
511
512 static final int TEXTURE6 = 0x84C6;
513
514 static final int TEXTURE7 = 0x84C7;
515
516 static final int TEXTURE8 = 0x84C8;
517
518 static final int TEXTURE9 = 0x84C9;
519
520 static final int TEXTURE_2D = 0x0DE1;
521
522 static final int TEXTURE_BINDING_2D = 0x8069;
523
524 static final int TEXTURE_BINDING_CUBE_MAP = 0x8514;
525
526 static final int TEXTURE_CUBE_MAP = 0x8513;
527
528 static final int TEXTURE_CUBE_MAP_NEGATIVE_X = 0x8516;
529
530 static final int TEXTURE_CUBE_MAP_NEGATIVE_Y = 0x8518;
531
532 static final int TEXTURE_CUBE_MAP_NEGATIVE_Z = 0x851A;
533
534 static final int TEXTURE_CUBE_MAP_POSITIVE_X = 0x8515;
535
536 static final int TEXTURE_CUBE_MAP_POSITIVE_Y = 0x8517;
537
538 static final int TEXTURE_CUBE_MAP_POSITIVE_Z = 0x8519;
539
540 static final int TEXTURE_MAG_FILTER = 0x2800;
541
542 static final int TEXTURE_MIN_FILTER = 0x2801;
543
544 static final int TEXTURE_WRAP_S = 0x2802;
545
546 static final int TEXTURE_WRAP_T = 0x2803;
547
548 static final int TRIANGLES = 0x0004;
549
550 static final int TRIANGLE_FAN = 0x0006;
551
552 static final int TRIANGLE_STRIP = 0x0005;
553
554 static final int UNPACK_ALIGNMENT = 0x0CF5;
555
556 static final int UNPACK_COLORSPACE_CONVERSION_WEBGL = 0x9243;
557
558 static final int UNPACK_FLIP_Y_WEBGL = 0x9240;
559
560 static final int UNPACK_PREMULTIPLY_ALPHA_WEBGL = 0x9241;
561
562 static final int UNSIGNED_BYTE = 0x1401;
563
564 static final int UNSIGNED_INT = 0x1405;
565
566 static final int UNSIGNED_SHORT = 0x1403;
567
568 static final int UNSIGNED_SHORT_4_4_4_4 = 0x8033;
569
570 static final int UNSIGNED_SHORT_5_5_5_1 = 0x8034;
571
572 static final int UNSIGNED_SHORT_5_6_5 = 0x8363;
573
574 static final int VALIDATE_STATUS = 0x8B83;
575
576 static final int VENDOR = 0x1F00;
577
578 static final int VERSION = 0x1F02;
579
580 static final int VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 0x889F;
581
582 static final int VERTEX_ATTRIB_ARRAY_ENABLED = 0x8622;
583
584 static final int VERTEX_ATTRIB_ARRAY_NORMALIZED = 0x886A;
585
586 static final int VERTEX_ATTRIB_ARRAY_POINTER = 0x8645;
587
588 static final int VERTEX_ATTRIB_ARRAY_SIZE = 0x8623;
589
590 static final int VERTEX_ATTRIB_ARRAY_STRIDE = 0x8624;
591
592 static final int VERTEX_ATTRIB_ARRAY_TYPE = 0x8625;
593
594 static final int VERTEX_SHADER = 0x8B31;
595
596 static final int VIEWPORT = 0x0BA2;
597
598 static final int ZERO = 0;
599
600 /** @domName WebGLRenderingContext.drawingBufferHeight */
601 final int drawingBufferHeight;
602
603 /** @domName WebGLRenderingContext.drawingBufferWidth */
604 final int drawingBufferWidth;
605
606 /** @domName WebGLRenderingContext.activeTexture */
607 void activeTexture(int texture);
608
609 /** @domName WebGLRenderingContext.attachShader */
610 void attachShader(WebGLProgram program, WebGLShader shader);
611
612 /** @domName WebGLRenderingContext.bindAttribLocation */
613 void bindAttribLocation(WebGLProgram program, int index, String name);
614
615 /** @domName WebGLRenderingContext.bindBuffer */
616 void bindBuffer(int target, WebGLBuffer buffer);
617
618 /** @domName WebGLRenderingContext.bindFramebuffer */
619 void bindFramebuffer(int target, WebGLFramebuffer framebuffer);
620
621 /** @domName WebGLRenderingContext.bindRenderbuffer */
622 void bindRenderbuffer(int target, WebGLRenderbuffer renderbuffer);
623
624 /** @domName WebGLRenderingContext.bindTexture */
625 void bindTexture(int target, WebGLTexture texture);
626
627 /** @domName WebGLRenderingContext.blendColor */
628 void blendColor(num red, num green, num blue, num alpha);
629
630 /** @domName WebGLRenderingContext.blendEquation */
631 void blendEquation(int mode);
632
633 /** @domName WebGLRenderingContext.blendEquationSeparate */
634 void blendEquationSeparate(int modeRGB, int modeAlpha);
635
636 /** @domName WebGLRenderingContext.blendFunc */
637 void blendFunc(int sfactor, int dfactor);
638
639 /** @domName WebGLRenderingContext.blendFuncSeparate */
640 void blendFuncSeparate(int srcRGB, int dstRGB, int srcAlpha, int dstAlpha);
641
642 /** @domName WebGLRenderingContext.bufferData */
643 void bufferData(int target, data_OR_size, int usage);
644
645 /** @domName WebGLRenderingContext.bufferSubData */
646 void bufferSubData(int target, int offset, data);
647
648 /** @domName WebGLRenderingContext.checkFramebufferStatus */
649 int checkFramebufferStatus(int target);
650
651 /** @domName WebGLRenderingContext.clear */
652 void clear(int mask);
653
654 /** @domName WebGLRenderingContext.clearColor */
655 void clearColor(num red, num green, num blue, num alpha);
656
657 /** @domName WebGLRenderingContext.clearDepth */
658 void clearDepth(num depth);
659
660 /** @domName WebGLRenderingContext.clearStencil */
661 void clearStencil(int s);
662
663 /** @domName WebGLRenderingContext.colorMask */
664 void colorMask(bool red, bool green, bool blue, bool alpha);
665
666 /** @domName WebGLRenderingContext.compileShader */
667 void compileShader(WebGLShader shader);
668
669 /** @domName WebGLRenderingContext.compressedTexImage2D */
670 void compressedTexImage2D(int target, int level, int internalformat, int width , int height, int border, ArrayBufferView data);
671
672 /** @domName WebGLRenderingContext.compressedTexSubImage2D */
673 void compressedTexSubImage2D(int target, int level, int xoffset, int yoffset, int width, int height, int format, ArrayBufferView data);
674
675 /** @domName WebGLRenderingContext.copyTexImage2D */
676 void copyTexImage2D(int target, int level, int internalformat, int x, int y, i nt width, int height, int border);
677
678 /** @domName WebGLRenderingContext.copyTexSubImage2D */
679 void copyTexSubImage2D(int target, int level, int xoffset, int yoffset, int x, int y, int width, int height);
680
681 /** @domName WebGLRenderingContext.createBuffer */
682 WebGLBuffer createBuffer();
683
684 /** @domName WebGLRenderingContext.createFramebuffer */
685 WebGLFramebuffer createFramebuffer();
686
687 /** @domName WebGLRenderingContext.createProgram */
688 WebGLProgram createProgram();
689
690 /** @domName WebGLRenderingContext.createRenderbuffer */
691 WebGLRenderbuffer createRenderbuffer();
692
693 /** @domName WebGLRenderingContext.createShader */
694 WebGLShader createShader(int type);
695
696 /** @domName WebGLRenderingContext.createTexture */
697 WebGLTexture createTexture();
698
699 /** @domName WebGLRenderingContext.cullFace */
700 void cullFace(int mode);
701
702 /** @domName WebGLRenderingContext.deleteBuffer */
703 void deleteBuffer(WebGLBuffer buffer);
704
705 /** @domName WebGLRenderingContext.deleteFramebuffer */
706 void deleteFramebuffer(WebGLFramebuffer framebuffer);
707
708 /** @domName WebGLRenderingContext.deleteProgram */
709 void deleteProgram(WebGLProgram program);
710
711 /** @domName WebGLRenderingContext.deleteRenderbuffer */
712 void deleteRenderbuffer(WebGLRenderbuffer renderbuffer);
713
714 /** @domName WebGLRenderingContext.deleteShader */
715 void deleteShader(WebGLShader shader);
716
717 /** @domName WebGLRenderingContext.deleteTexture */
718 void deleteTexture(WebGLTexture texture);
719
720 /** @domName WebGLRenderingContext.depthFunc */
721 void depthFunc(int func);
722
723 /** @domName WebGLRenderingContext.depthMask */
724 void depthMask(bool flag);
725
726 /** @domName WebGLRenderingContext.depthRange */
727 void depthRange(num zNear, num zFar);
728
729 /** @domName WebGLRenderingContext.detachShader */
730 void detachShader(WebGLProgram program, WebGLShader shader);
731
732 /** @domName WebGLRenderingContext.disable */
733 void disable(int cap);
734
735 /** @domName WebGLRenderingContext.disableVertexAttribArray */
736 void disableVertexAttribArray(int index);
737
738 /** @domName WebGLRenderingContext.drawArrays */
739 void drawArrays(int mode, int first, int count);
740
741 /** @domName WebGLRenderingContext.drawElements */
742 void drawElements(int mode, int count, int type, int offset);
743
744 /** @domName WebGLRenderingContext.enable */
745 void enable(int cap);
746
747 /** @domName WebGLRenderingContext.enableVertexAttribArray */
748 void enableVertexAttribArray(int index);
749
750 /** @domName WebGLRenderingContext.finish */
751 void finish();
752
753 /** @domName WebGLRenderingContext.flush */
754 void flush();
755
756 /** @domName WebGLRenderingContext.framebufferRenderbuffer */
757 void framebufferRenderbuffer(int target, int attachment, int renderbuffertarge t, WebGLRenderbuffer renderbuffer);
758
759 /** @domName WebGLRenderingContext.framebufferTexture2D */
760 void framebufferTexture2D(int target, int attachment, int textarget, WebGLText ure texture, int level);
761
762 /** @domName WebGLRenderingContext.frontFace */
763 void frontFace(int mode);
764
765 /** @domName WebGLRenderingContext.generateMipmap */
766 void generateMipmap(int target);
767
768 /** @domName WebGLRenderingContext.getActiveAttrib */
769 WebGLActiveInfo getActiveAttrib(WebGLProgram program, int index);
770
771 /** @domName WebGLRenderingContext.getActiveUniform */
772 WebGLActiveInfo getActiveUniform(WebGLProgram program, int index);
773
774 /** @domName WebGLRenderingContext.getAttachedShaders */
775 List getAttachedShaders(WebGLProgram program);
776
777 /** @domName WebGLRenderingContext.getAttribLocation */
778 int getAttribLocation(WebGLProgram program, String name);
779
780 /** @domName WebGLRenderingContext.getBufferParameter */
781 Object getBufferParameter(int target, int pname);
782
783 /** @domName WebGLRenderingContext.getContextAttributes */
784 WebGLContextAttributes getContextAttributes();
785
786 /** @domName WebGLRenderingContext.getError */
787 int getError();
788
789 /** @domName WebGLRenderingContext.getExtension */
790 Object getExtension(String name);
791
792 /** @domName WebGLRenderingContext.getFramebufferAttachmentParameter */
793 Object getFramebufferAttachmentParameter(int target, int attachment, int pname );
794
795 /** @domName WebGLRenderingContext.getParameter */
796 Object getParameter(int pname);
797
798 /** @domName WebGLRenderingContext.getProgramInfoLog */
799 String getProgramInfoLog(WebGLProgram program);
800
801 /** @domName WebGLRenderingContext.getProgramParameter */
802 Object getProgramParameter(WebGLProgram program, int pname);
803
804 /** @domName WebGLRenderingContext.getRenderbufferParameter */
805 Object getRenderbufferParameter(int target, int pname);
806
807 /** @domName WebGLRenderingContext.getShaderInfoLog */
808 String getShaderInfoLog(WebGLShader shader);
809
810 /** @domName WebGLRenderingContext.getShaderParameter */
811 Object getShaderParameter(WebGLShader shader, int pname);
812
813 /** @domName WebGLRenderingContext.getShaderPrecisionFormat */
814 WebGLShaderPrecisionFormat getShaderPrecisionFormat(int shadertype, int precis iontype);
815
816 /** @domName WebGLRenderingContext.getShaderSource */
817 String getShaderSource(WebGLShader shader);
818
819 /** @domName WebGLRenderingContext.getTexParameter */
820 Object getTexParameter(int target, int pname);
821
822 /** @domName WebGLRenderingContext.getUniform */
823 Object getUniform(WebGLProgram program, WebGLUniformLocation location);
824
825 /** @domName WebGLRenderingContext.getUniformLocation */
826 WebGLUniformLocation getUniformLocation(WebGLProgram program, String name);
827
828 /** @domName WebGLRenderingContext.getVertexAttrib */
829 Object getVertexAttrib(int index, int pname);
830
831 /** @domName WebGLRenderingContext.getVertexAttribOffset */
832 int getVertexAttribOffset(int index, int pname);
833
834 /** @domName WebGLRenderingContext.hint */
835 void hint(int target, int mode);
836
837 /** @domName WebGLRenderingContext.isBuffer */
838 bool isBuffer(WebGLBuffer buffer);
839
840 /** @domName WebGLRenderingContext.isContextLost */
841 bool isContextLost();
842
843 /** @domName WebGLRenderingContext.isEnabled */
844 bool isEnabled(int cap);
845
846 /** @domName WebGLRenderingContext.isFramebuffer */
847 bool isFramebuffer(WebGLFramebuffer framebuffer);
848
849 /** @domName WebGLRenderingContext.isProgram */
850 bool isProgram(WebGLProgram program);
851
852 /** @domName WebGLRenderingContext.isRenderbuffer */
853 bool isRenderbuffer(WebGLRenderbuffer renderbuffer);
854
855 /** @domName WebGLRenderingContext.isShader */
856 bool isShader(WebGLShader shader);
857
858 /** @domName WebGLRenderingContext.isTexture */
859 bool isTexture(WebGLTexture texture);
860
861 /** @domName WebGLRenderingContext.lineWidth */
862 void lineWidth(num width);
863
864 /** @domName WebGLRenderingContext.linkProgram */
865 void linkProgram(WebGLProgram program);
866
867 /** @domName WebGLRenderingContext.pixelStorei */
868 void pixelStorei(int pname, int param);
869
870 /** @domName WebGLRenderingContext.polygonOffset */
871 void polygonOffset(num factor, num units);
872
873 /** @domName WebGLRenderingContext.readPixels */
874 void readPixels(int x, int y, int width, int height, int format, int type, Arr ayBufferView pixels);
875
876 /** @domName WebGLRenderingContext.releaseShaderCompiler */
877 void releaseShaderCompiler();
878
879 /** @domName WebGLRenderingContext.renderbufferStorage */
880 void renderbufferStorage(int target, int internalformat, int width, int height );
881
882 /** @domName WebGLRenderingContext.sampleCoverage */
883 void sampleCoverage(num value, bool invert);
884
885 /** @domName WebGLRenderingContext.scissor */
886 void scissor(int x, int y, int width, int height);
887
888 /** @domName WebGLRenderingContext.shaderSource */
889 void shaderSource(WebGLShader shader, String string);
890
891 /** @domName WebGLRenderingContext.stencilFunc */
892 void stencilFunc(int func, int ref, int mask);
893
894 /** @domName WebGLRenderingContext.stencilFuncSeparate */
895 void stencilFuncSeparate(int face, int func, int ref, int mask);
896
897 /** @domName WebGLRenderingContext.stencilMask */
898 void stencilMask(int mask);
899
900 /** @domName WebGLRenderingContext.stencilMaskSeparate */
901 void stencilMaskSeparate(int face, int mask);
902
903 /** @domName WebGLRenderingContext.stencilOp */
904 void stencilOp(int fail, int zfail, int zpass);
905
906 /** @domName WebGLRenderingContext.stencilOpSeparate */
907 void stencilOpSeparate(int face, int fail, int zfail, int zpass);
908
909 /** @domName WebGLRenderingContext.texImage2D */
910 void texImage2D(int target, int level, int internalformat, int format_OR_width , int height_OR_type, border_OR_canvas_OR_image_OR_pixels_OR_video, [int format, int type, ArrayBufferView pixels]);
911
912 /** @domName WebGLRenderingContext.texParameterf */
913 void texParameterf(int target, int pname, num param);
914
915 /** @domName WebGLRenderingContext.texParameteri */
916 void texParameteri(int target, int pname, int param);
917
918 /** @domName WebGLRenderingContext.texSubImage2D */
919 void texSubImage2D(int target, int level, int xoffset, int yoffset, int format _OR_width, int height_OR_type, canvas_OR_format_OR_image_OR_pixels_OR_video, [in t type, ArrayBufferView pixels]);
920
921 /** @domName WebGLRenderingContext.uniform1f */
922 void uniform1f(WebGLUniformLocation location, num x);
923
924 /** @domName WebGLRenderingContext.uniform1fv */
925 void uniform1fv(WebGLUniformLocation location, Float32Array v);
926
927 /** @domName WebGLRenderingContext.uniform1i */
928 void uniform1i(WebGLUniformLocation location, int x);
929
930 /** @domName WebGLRenderingContext.uniform1iv */
931 void uniform1iv(WebGLUniformLocation location, Int32Array v);
932
933 /** @domName WebGLRenderingContext.uniform2f */
934 void uniform2f(WebGLUniformLocation location, num x, num y);
935
936 /** @domName WebGLRenderingContext.uniform2fv */
937 void uniform2fv(WebGLUniformLocation location, Float32Array v);
938
939 /** @domName WebGLRenderingContext.uniform2i */
940 void uniform2i(WebGLUniformLocation location, int x, int y);
941
942 /** @domName WebGLRenderingContext.uniform2iv */
943 void uniform2iv(WebGLUniformLocation location, Int32Array v);
944
945 /** @domName WebGLRenderingContext.uniform3f */
946 void uniform3f(WebGLUniformLocation location, num x, num y, num z);
947
948 /** @domName WebGLRenderingContext.uniform3fv */
949 void uniform3fv(WebGLUniformLocation location, Float32Array v);
950
951 /** @domName WebGLRenderingContext.uniform3i */
952 void uniform3i(WebGLUniformLocation location, int x, int y, int z);
953
954 /** @domName WebGLRenderingContext.uniform3iv */
955 void uniform3iv(WebGLUniformLocation location, Int32Array v);
956
957 /** @domName WebGLRenderingContext.uniform4f */
958 void uniform4f(WebGLUniformLocation location, num x, num y, num z, num w);
959
960 /** @domName WebGLRenderingContext.uniform4fv */
961 void uniform4fv(WebGLUniformLocation location, Float32Array v);
962
963 /** @domName WebGLRenderingContext.uniform4i */
964 void uniform4i(WebGLUniformLocation location, int x, int y, int z, int w);
965
966 /** @domName WebGLRenderingContext.uniform4iv */
967 void uniform4iv(WebGLUniformLocation location, Int32Array v);
968
969 /** @domName WebGLRenderingContext.uniformMatrix2fv */
970 void uniformMatrix2fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array);
971
972 /** @domName WebGLRenderingContext.uniformMatrix3fv */
973 void uniformMatrix3fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array);
974
975 /** @domName WebGLRenderingContext.uniformMatrix4fv */
976 void uniformMatrix4fv(WebGLUniformLocation location, bool transpose, Float32Ar ray array);
977
978 /** @domName WebGLRenderingContext.useProgram */
979 void useProgram(WebGLProgram program);
980
981 /** @domName WebGLRenderingContext.validateProgram */
982 void validateProgram(WebGLProgram program);
983
984 /** @domName WebGLRenderingContext.vertexAttrib1f */
985 void vertexAttrib1f(int indx, num x);
986
987 /** @domName WebGLRenderingContext.vertexAttrib1fv */
988 void vertexAttrib1fv(int indx, Float32Array values);
989
990 /** @domName WebGLRenderingContext.vertexAttrib2f */
991 void vertexAttrib2f(int indx, num x, num y);
992
993 /** @domName WebGLRenderingContext.vertexAttrib2fv */
994 void vertexAttrib2fv(int indx, Float32Array values);
995
996 /** @domName WebGLRenderingContext.vertexAttrib3f */
997 void vertexAttrib3f(int indx, num x, num y, num z);
998
999 /** @domName WebGLRenderingContext.vertexAttrib3fv */
1000 void vertexAttrib3fv(int indx, Float32Array values);
1001
1002 /** @domName WebGLRenderingContext.vertexAttrib4f */
1003 void vertexAttrib4f(int indx, num x, num y, num z, num w);
1004
1005 /** @domName WebGLRenderingContext.vertexAttrib4fv */
1006 void vertexAttrib4fv(int indx, Float32Array values);
1007
1008 /** @domName WebGLRenderingContext.vertexAttribPointer */
1009 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset);
1010
1011 /** @domName WebGLRenderingContext.viewport */
1012 void viewport(int x, int y, int width, int height);
1013 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698