Android-Sprite-Batcher
Android-Sprite-Batcher copied to clipboard
A tool for drawing 2D sprites in Android using OpenGL
It would be great to draw a circle
We are using zipLibrary for unzipping obb file. In the recent upgrade we are getting frequent exception with message "didn't find signature at start of lfh" which is coming from...
java.lang.IllegalArgumentException: capacity + offset > baseSize at java.nio.DirectByteBuffer.(DirectByteBuffer.java:37) at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:72) at com.twicecircled.spritebatcher.SpriteBatcher.batchDraw(SpriteBatcher.java:321) at com.twicecircled.spritebatcher.SpriteBatcher.onDrawFrame(SpriteBatcher.java:202) at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1532) at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1249) java.lang.IllegalArgumentException: capacity + offset > baseSize at java.nio.DirectByteBuffer.(DirectByteBuffer.java:37) at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:72) at com.twicecircled.spritebatcher.SpriteBatcher.batchDraw(SpriteBatcher.java:331) ...
Why there is a problem when using OpenGL 2.0 .... when I'm using this code mGLView = new GLSurfaceView(this); mGLView.setEGLContextClientVersion(2); it displays an empty black screen and in the log...