- getters are not implemented, some are not supported by WebGL\r
- uniform location id allocation returns multiple ids if one queries for one uniform multiple times. Not an issue as long\r
as you don't start comparing those ids to each other.\r
-- glReadPixels does not work.\r
\r
[GwtInput]\r
- mapping of a couple of (minor) keys is bad, see FIXMEs\r
public void glReadPixels (int x, int y, int width, int height, int format, int type, Buffer pixels) {\r
// verify request\r
if ((format != WebGLRenderingContext.RGBA) || (type != WebGLRenderingContext.UNSIGNED_BYTE)) {\r
- throw new GdxRuntimeException("Only format UNSIGNED_BYTE for type RGBA is currently supported.");\r
+ throw new GdxRuntimeException("Only format RGBA and type UNSIGNED_BYTE are currently supported for glReadPixels(...).");\r
}\r
if (!(pixels instanceof ByteBuffer)) {\r
- throw new GdxRuntimeException("Inputed pixels buffer needs to be of type ByteBuffer.");\r
+ throw new GdxRuntimeException("Inputed pixels buffer needs to be of type ByteBuffer for glReadPixels(...).");\r
}\r
\r
// create new ArrayBufferView (4 bytes per pixel)\r