Index: client/html/generated/src/interface/WebGLRenderingContext.dart |
diff --git a/client/html/generated/src/interface/WebGLRenderingContext.dart b/client/html/generated/src/interface/WebGLRenderingContext.dart |
index 5645c5eb0aa95c673f27721e925a668fb6c79d23..33dca9c9fd7d57ae51f79846a1bc95b5e9a796e3 100644 |
--- a/client/html/generated/src/interface/WebGLRenderingContext.dart |
+++ b/client/html/generated/src/interface/WebGLRenderingContext.dart |
@@ -802,12 +802,27 @@ interface WebGLRenderingContext extends CanvasRenderingContext { |
void stencilOpSeparate(int face, int fail, int zfail, int zpass); |
- 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]); |
+ /** |
+ * http://www.khronos.org/registry/webgl/specs/latest/webgl.idl |
+ * The version of texImage2D that accepts HTML elements has |
+ * been renamed to [texImage2DHtml]. |
+ */ |
+ void texImage2D(int target, int level, int internalformat, |
+ int width, int height, int border, int format, int type, |
+ ArrayBufferView pixels); |
+ |
+ /** |
+ * This method corresponds to the version of the texImage2D method that |
+ * accepts an [image] that is an [:ImageData:], [:ImageElement:], |
+ * [:CanvasElement:] or [:VideoElement:]. |
+ */ |
+ 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
|
void texParameterf(int target, int pname, num param); |
void texParameteri(int target, int pname, int param); |
+ // TODO(jacobr): same transformation as for texImage2D |
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 type, ArrayBufferView pixels]); |
void uniform1f(WebGLUniformLocation location, num x); |