java.lang.Object
org.collebol.engine.gui.graphics.renderer.Batch

public class Batch extends Object
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)
  • Method Details

    • addItem

      public void addItem(Vector2D position, float scale, float rotation, Vector2D origin)
    • getTexture

      public int getTexture()
    • getItems

      public List<Batch.BatchItem> getItems()