OLD | NEW |
---|---|
1 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 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 | 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. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 // WARNING: Do not edit - generated code. | 5 // WARNING: Do not edit - generated code. |
6 | 6 |
7 interface WebGLRenderingContext extends CanvasRenderingContext { | 7 interface WebGLRenderingContext extends CanvasRenderingContext { |
8 | 8 |
9 static final int ACTIVE_ATTRIBUTES = 0x8B89; | 9 static final int ACTIVE_ATTRIBUTES = 0x8B89; |
10 | 10 |
(...skipping 784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
795 void stencilFuncSeparate(int face, int func, int ref, int mask); | 795 void stencilFuncSeparate(int face, int func, int ref, int mask); |
796 | 796 |
797 void stencilMask(int mask); | 797 void stencilMask(int mask); |
798 | 798 |
799 void stencilMaskSeparate(int face, int mask); | 799 void stencilMaskSeparate(int face, int mask); |
800 | 800 |
801 void stencilOp(int fail, int zfail, int zpass); | 801 void stencilOp(int fail, int zfail, int zpass); |
802 | 802 |
803 void stencilOpSeparate(int face, int fail, int zfail, int zpass); | 803 void stencilOpSeparate(int face, int fail, int zfail, int zpass); |
804 | 804 |
805 void texImage2D(int target, int level, int internalformat, int format_OR_width , int height_OR_type, var border_OR_canvas_OR_image_OR_pixels, [int format, int type, ArrayBufferView pixels]); | 805 /** |
806 * http://www.khronos.org/registry/webgl/specs/latest/webgl.idl | |
807 * The version of texImage2D that accepts HTML elements has | |
808 * been renamed to [texImage2DHtml]. | |
809 */ | |
810 void texImage2D(int target, int level, int internalformat, | |
811 int width, int height, int border, int format, int type, | |
812 ArrayBufferView pixels); | |
813 | |
814 /** | |
815 * This method corresponds to the version of the texImage2D method that | |
816 * accepts an [image] that is an [:ImageData:], [:ImageElement:], | |
817 * [:CanvasElement:] or [:VideoElement:]. | |
818 */ | |
819 void texImage2DHtml(int target, int level, int internalformat, int format, int type, var image); | |
Jacob
2011/11/04 19:07:05
I'm not a huge fan of these two names.
Keeping the
nweiz
2011/11/04 21:09:06
Maybe call the second method texHtml2D?
Jacob
2011/11/04 22:26:13
for webgl the convention is to append cryptic stri
| |
806 | 820 |
807 void texParameterf(int target, int pname, num param); | 821 void texParameterf(int target, int pname, num param); |
808 | 822 |
809 void texParameteri(int target, int pname, int param); | 823 void texParameteri(int target, int pname, int param); |
810 | 824 |
825 // TODO(jacobr): same transformation as for texImage2D | |
811 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, [int typ e, ArrayBufferView pixels]); | 826 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, [int typ e, ArrayBufferView pixels]); |
812 | 827 |
813 void uniform1f(WebGLUniformLocation location, num x); | 828 void uniform1f(WebGLUniformLocation location, num x); |
814 | 829 |
815 void uniform1fv(WebGLUniformLocation location, Float32Array v); | 830 void uniform1fv(WebGLUniformLocation location, Float32Array v); |
816 | 831 |
817 void uniform1i(WebGLUniformLocation location, int x); | 832 void uniform1i(WebGLUniformLocation location, int x); |
818 | 833 |
819 void uniform1iv(WebGLUniformLocation location, Int32Array v); | 834 void uniform1iv(WebGLUniformLocation location, Int32Array v); |
820 | 835 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
865 void vertexAttrib3fv(int indx, Float32Array values); | 880 void vertexAttrib3fv(int indx, Float32Array values); |
866 | 881 |
867 void vertexAttrib4f(int indx, num x, num y, num z, num w); | 882 void vertexAttrib4f(int indx, num x, num y, num z, num w); |
868 | 883 |
869 void vertexAttrib4fv(int indx, Float32Array values); | 884 void vertexAttrib4fv(int indx, Float32Array values); |
870 | 885 |
871 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset); | 886 void vertexAttribPointer(int indx, int size, int type, bool normalized, int st ride, int offset); |
872 | 887 |
873 void viewport(int x, int y, int width, int height); | 888 void viewport(int x, int y, int width, int height); |
874 } | 889 } |
OLD | NEW |