Class Batch
java.lang.Object
org.collebol.client.gui.graphics.renderer.Batch
The Batch class represents a collection of items to be rendered with a specific texture;
Its allows adding items with specific positions, scales rotation and origin point.
This class is useful for batching multiple renderable items together to optimize rendering performance.
Usage:
Batch batch = new Batch(textureid);
batch.addItem(position, zoom, rotation, origin);
- Since:
- 1.0-dev
- Author:
- ColleBol - contact@collebol.org
-
Constructor Details
-
Batch
public Batch(int textureid) - Parameters:
textureid- the texture id that must be rendered!
-
-
Method Details
-
getTexture
public int getTexture() -
getItems