1DIFFERENCES TO MAIN APIs/UNSUSPECTED BEHAVIOUR 2[GWTGL20] 3- unfixable: client side arrays (vertex arrays) are unsupported. VertexArray and IndexArray class simulate VAs via 4 VBOs so SpriteBatch etc. still work as intended. 5- getters are not implemented, some are not supported by WebGL 6- uniform location id allocation returns multiple ids if one queries for one uniform multiple times. Not an issue as long 7 as you don't start comparing those ids to each other. 8 9[GwtInput] 10- mapping of a couple of (minor) keys is bad, see FIXMEs 11 12[GwtFileHandle] 13- only internal and defined classpath files are supported. 14- if you try to access an audio file or an image file via FileHandle#read() and other such methods, 15you won't get anything sensible. 16- binary files specified in the assets.txt file can be opened but are slow to read, avoid if possible. 17 18[Reflection] 19- Reflection is available for defined classes. Please see http://code.google.com/p/libgdx/wiki/Reflection 20 21DIFFERENCES IN EMULATION 22[BufferUtils emu] 23- BufferUtils#newLongBuffer() works but will not return a direct buffer. Since we don't pass long 24 buffers to OpenGL ES we should be fine. 25 26[Texture emu] 27- all textures are RGBA8888, i have yet to find a way to get proper pixel formats working. 28 29[Pixmap emu] 30- All Pixmaps have RGBA8888 as the internal format, i have yet to find a way to fix that. Doesn't seem 31feasible due to the use of Canvas. 32- This is highly experimental and hacked. Pixmap#getPixels() returns an IntBuffer that contains a single 33 integer. You can not read pixel data with this method! 34- Colors returned by Pixmap#getPixel() may slightly deviate from the original colors on some browsers on 35 MacOSX due to the use of ImageIO which modifies colors while decoding PNGs... 36- everything else should work as intended, some things might deviate from the usual behaviour a bit. 37 38[NumberUtils emu] 39- double to long, long to double methods return 0. 40 41[InputStreamReader emu] 42- assumes encoding is UTF-8, always. 43 44[System emu] 45- ripped from GWT with additions by jgw. 46- Excluded explicitely in .classpath of gdx-backends-gwt! 47- Excluded from ant build (build-template.xml)! 48 49[Unsupported Classes] 50GdxBuild.java 51GdxNativesLoader.java 52SharedLibraryLoader.java 53Gdx2DPixmap.java 54PixmapIO.java 55ETC1.java 56ETC1TextureData.java 57KTXTextureData.java 58ScreenUtils.java 59RemoteInput.java 60RemoteSender.java 61AtomicQueue.java 62LittleEndianInputStream.java 63PauseableThread.java 64