Class CacheBatch

java.lang.Object
arc.graphics.g2d.Batch
arc.graphics.g2d.CacheBatch
All Implemented Interfaces:
Disposable

public class CacheBatch extends Batch
  • Constructor Details

    • CacheBatch

      public CacheBatch(int size)
    • CacheBatch

      public CacheBatch(SpriteCache cache)
  • Method Details

    • flush

      public void flush()
      Specified by:
      flush in class Batch
    • setColor

      public void setColor(Color tint)
      Overrides:
      setColor in class Batch
    • setColor

      public void setColor(float r, float g, float b, float a)
      Overrides:
      setColor in class Batch
    • setPackedColor

      public void setPackedColor(float color)
      Overrides:
      setPackedColor in class Batch
    • getColor

      public Color getColor()
      Overrides:
      getColor in class Batch
    • getPackedColor

      public float getPackedColor()
      Overrides:
      getPackedColor in class Batch
    • setProjection

      public void setProjection(Mat projection)
      Overrides:
      setProjection in class Batch
    • beginCache

      public void beginCache()
    • endCache

      public int endCache()
    • draw

      protected void draw(Texture texture, float[] spriteVertices, int offset, int count)
      Specified by:
      draw in class Batch
    • draw

      protected void draw(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation)
      Specified by:
      draw in class Batch
    • setShader

      public void setShader(Shader shader)
      Overrides:
      setShader in class Batch
    • setShader

      public void setShader(Shader shader, boolean apply)
      Overrides:
      setShader in class Batch
    • dispose

      public void dispose()
      Description copied from interface: Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface Disposable
      Overrides:
      dispose in class Batch
    • beginDraw

      public void beginDraw()
    • endDraw

      public void endDraw()
    • drawCache

      public void drawCache(int id)