OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2009 Apple Inc. All rights reserved. | 2 * Copyright (C) 2009 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 23 matching lines...) Expand all Loading... |
34 typedef long GLsizei; | 34 typedef long GLsizei; |
35 typedef long long GLintptr; | 35 typedef long long GLintptr; |
36 typedef long long GLsizeiptr; | 36 typedef long long GLsizeiptr; |
37 typedef octet GLubyte; // 'octet' should be an unsigned 8 bit type. | 37 typedef octet GLubyte; // 'octet' should be an unsigned 8 bit type. |
38 typedef unsigned short GLushort; | 38 typedef unsigned short GLushort; |
39 typedef unsigned long GLuint; | 39 typedef unsigned long GLuint; |
40 typedef unrestricted float GLfloat; | 40 typedef unrestricted float GLfloat; |
41 typedef unrestricted float GLclampf; | 41 typedef unrestricted float GLclampf; |
42 | 42 |
43 [ | 43 [ |
44 // FIXME: [DoNotCheckConstants] and [TypeChecking=Interface|Nullable] should
be applied | 44 // FIXME: [DoNotCheckConstants] and [TypeChecking=Interface|Unrestricted] sh
ould be applied |
45 // to members and not need to be put on implementing interface | 45 // to members and not need to be put on implementing interface |
46 // DoNotCheckConstants, // need to put on implementing interface | 46 // DoNotCheckConstants, // need to put on implementing interface |
47 NoInterfaceObject, // Always used on target of 'implements' | 47 NoInterfaceObject, // Always used on target of 'implements' |
48 // TypeChecking=Interface|Nullable|Unrestricted, // need to put on implement
ing interface | 48 // TypeChecking=Interface|Unrestricted, // need to put on implementing inter
face |
| 49 WillBeGarbageCollected, |
49 ] interface WebGLRenderingContextBase { | 50 ] interface WebGLRenderingContextBase { |
50 | 51 |
51 readonly attribute HTMLCanvasElement canvas; | 52 readonly attribute HTMLCanvasElement canvas; |
52 | 53 |
53 /* ClearBufferMask */ | 54 /* ClearBufferMask */ |
54 const GLenum DEPTH_BUFFER_BIT = 0x00000100; | 55 const GLenum DEPTH_BUFFER_BIT = 0x00000100; |
55 const GLenum STENCIL_BUFFER_BIT = 0x00000400; | 56 const GLenum STENCIL_BUFFER_BIT = 0x00000400; |
56 const GLenum COLOR_BUFFER_BIT = 0x00004000; | 57 const GLenum COLOR_BUFFER_BIT = 0x00004000; |
57 | 58 |
58 /* BeginMode */ | 59 /* BeginMode */ |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 [DartNoAutoScope] void finish(); | 539 [DartNoAutoScope] void finish(); |
539 [DartNoAutoScope] void flush(); | 540 [DartNoAutoScope] void flush(); |
540 [DartNoAutoScope] void framebufferRenderbuffer(GLenum target, GLenum attachm
ent, GLenum renderbuffertarget, WebGLRenderbuffer? renderbuffer); | 541 [DartNoAutoScope] void framebufferRenderbuffer(GLenum target, GLenum attachm
ent, GLenum renderbuffertarget, WebGLRenderbuffer? renderbuffer); |
541 [DartNoAutoScope] void framebufferTexture2D(GLenum target, GLenum attachment
, GLenum textarget, WebGLTexture? texture, GLint level); | 542 [DartNoAutoScope] void framebufferTexture2D(GLenum target, GLenum attachment
, GLenum textarget, WebGLTexture? texture, GLint level); |
542 [DartNoAutoScope] void frontFace(GLenum mode); | 543 [DartNoAutoScope] void frontFace(GLenum mode); |
543 [DartNoAutoScope] void generateMipmap(GLenum target); | 544 [DartNoAutoScope] void generateMipmap(GLenum target); |
544 | 545 |
545 [DartNoAutoScope] WebGLActiveInfo getActiveAttrib(WebGLProgram? program, GLu
int index); | 546 [DartNoAutoScope] WebGLActiveInfo getActiveAttrib(WebGLProgram? program, GLu
int index); |
546 [DartNoAutoScope] WebGLActiveInfo getActiveUniform(WebGLProgram? program, GL
uint index); | 547 [DartNoAutoScope] WebGLActiveInfo getActiveUniform(WebGLProgram? program, GL
uint index); |
547 | 548 |
548 [Custom, DartNoAutoScope] void getAttachedShaders(WebGLProgram? program); | 549 [DartNoAutoScope] sequence<WebGLShader>? getAttachedShaders(WebGLProgram? pr
ogram); |
549 | 550 |
550 [DartNoAutoScope] GLint getAttribLocation(WebGLProgram? program, DOMString n
ame); | 551 [DartNoAutoScope] GLint getAttribLocation(WebGLProgram? program, DOMString n
ame); |
551 | 552 |
552 [Custom] any getBufferParameter(GLenum target, GLenum pname); | 553 [Custom] any getBufferParameter(GLenum target, GLenum pname); |
553 | 554 |
554 WebGLContextAttributes getContextAttributes(); | 555 WebGLContextAttributes getContextAttributes(); |
555 | 556 |
556 GLenum getError(); | 557 GLenum getError(); |
557 | 558 |
558 // object getExtension(DOMString name); | 559 // object getExtension(DOMString name); |
559 [Custom] any getExtension(DOMString name); | 560 [Custom] any getExtension(DOMString name); |
560 | 561 |
561 [Custom] any getFramebufferAttachmentParameter(GLenum target, GLenum attachm
ent, GLenum pname); | 562 [Custom] any getFramebufferAttachmentParameter(GLenum target, GLenum attachm
ent, GLenum pname); |
562 [Custom] any getParameter(GLenum pname); | 563 [Custom] any getParameter(GLenum pname); |
563 [Custom] any getProgramParameter(WebGLProgram? program, GLenum pname); | 564 [Custom] any getProgramParameter(WebGLProgram? program, GLenum pname); |
564 [TreatReturnedNullStringAs=Null] DOMString getProgramInfoLog(WebGLProgram? p
rogram); | 565 DOMString? getProgramInfoLog(WebGLProgram? program); |
565 [Custom] any getRenderbufferParameter(GLenum target, GLenum pname); | 566 [Custom] any getRenderbufferParameter(GLenum target, GLenum pname); |
566 [Custom] any getShaderParameter(WebGLShader? shader, GLenum pname); | 567 [Custom] any getShaderParameter(WebGLShader? shader, GLenum pname); |
567 | 568 |
568 [TreatReturnedNullStringAs=Null] DOMString getShaderInfoLog(WebGLShader?
shader); | 569 DOMString? getShaderInfoLog(WebGLShader? shader); |
569 | 570 |
570 WebGLShaderPrecisionFormat getShaderPrecisionFormat(GLenum shadertype, GLenu
m precisiontype); | 571 WebGLShaderPrecisionFormat getShaderPrecisionFormat(GLenum shadertype, GLenu
m precisiontype); |
571 | 572 |
572 [TreatReturnedNullStringAs=Null] DOMString getShaderSource(WebGLShader? s
hader); | 573 DOMString? getShaderSource(WebGLShader? shader); |
573 | 574 |
574 [Custom] sequence<DOMString> getSupportedExtensions(); | 575 sequence<DOMString>? getSupportedExtensions(); |
575 | 576 |
576 [Custom] any getTexParameter(GLenum target, GLenum pname); | 577 [Custom] any getTexParameter(GLenum target, GLenum pname); |
577 | 578 |
578 [Custom] any getUniform(WebGLProgram? program, WebGLUniformLocation location
); | 579 [Custom] any getUniform(WebGLProgram? program, WebGLUniformLocation? locatio
n); |
579 | 580 |
580 WebGLUniformLocation getUniformLocation(WebGLProgram? program, DOMString nam
e); | 581 WebGLUniformLocation getUniformLocation(WebGLProgram? program, DOMString nam
e); |
581 | 582 |
582 [Custom] any getVertexAttrib(GLuint index, GLenum pname); | 583 [Custom] any getVertexAttrib(GLuint index, GLenum pname); |
583 | 584 |
584 GLsizeiptr getVertexAttribOffset(GLuint index, GLenum pname); | 585 GLsizeiptr getVertexAttribOffset(GLuint index, GLenum pname); |
585 | 586 |
586 [DartNoAutoScope] void hint(GLenum target, GLenum mode); | 587 [DartNoAutoScope] void hint(GLenum target, GLenum mode); |
587 [DartNoAutoScope] GLboolean isBuffer(WebGLBuffer? buffer); | 588 [DartNoAutoScope] GLboolean isBuffer(WebGLBuffer? buffer); |
588 [DartNoAutoScope] GLboolean isContextLost(); | 589 [DartNoAutoScope] GLboolean isContextLost(); |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
680 [Custom, DartNoAutoScope] void vertexAttrib2fv(GLuint indx, Float32Array val
ues); | 681 [Custom, DartNoAutoScope] void vertexAttrib2fv(GLuint indx, Float32Array val
ues); |
681 [DartNoAutoScope] void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLf
loat z); | 682 [DartNoAutoScope] void vertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLf
loat z); |
682 [Custom, DartNoAutoScope] void vertexAttrib3fv(GLuint indx, Float32Array val
ues); | 683 [Custom, DartNoAutoScope] void vertexAttrib3fv(GLuint indx, Float32Array val
ues); |
683 [DartNoAutoScope] void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLf
loat z, GLfloat w); | 684 [DartNoAutoScope] void vertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLf
loat z, GLfloat w); |
684 [Custom, DartNoAutoScope] void vertexAttrib4fv(GLuint indx, Float32Array val
ues); | 685 [Custom, DartNoAutoScope] void vertexAttrib4fv(GLuint indx, Float32Array val
ues); |
685 [DartNoAutoScope] void vertexAttribPointer(GLuint indx, GLint size, GLenum t
ype, GLboolean normalized, | 686 [DartNoAutoScope] void vertexAttribPointer(GLuint indx, GLint size, GLenum t
ype, GLboolean normalized, |
686 GLsizei stride, GLintptr offset); | 687 GLsizei stride, GLintptr offset); |
687 | 688 |
688 [DartNoAutoScope] void viewport(GLint x, GLint y, GLsizei width, GLsizei hei
ght); | 689 [DartNoAutoScope] void viewport(GLint x, GLint y, GLsizei width, GLsizei hei
ght); |
689 }; | 690 }; |
OLD | NEW |