List of usage examples for com.badlogic.gdx.graphics.g2d PolygonSpriteBatch PolygonSpriteBatch
public PolygonSpriteBatch(int size)
From source file:es.eucm.ead.editor.EditorApplicationListener.java
License:Open Source License
protected Stage createStage() { batch = new PolygonSpriteBatch(2500) { final int MAX = 2500 * 5; @Override//from ww w .j a va 2 s.com public void draw(Texture texture, float[] spriteVertices, int offset, int count) { while (count > MAX) { super.draw(texture, spriteVertices, offset, MAX); offset += MAX; count -= MAX; } super.draw(texture, spriteVertices, offset, count); } }; return new Stage(new ScreenViewport(), batch); }