Class SortedSpriteBatch

All Implemented Interfaces:
Disposable
Direct Known Subclasses:
QueueBatch

public class SortedSpriteBatch extends SpriteBatch
Fast sorting implementation written by zxtej. Don't ask me how it works.
  • Field Details

    • requests

      protected arc.graphics.g2d.DrawRequest[] requests
    • sort

      protected boolean sort
    • flushing

      protected boolean flushing
    • requestZ

      protected float[] requestZ
    • numRequests

      protected int numRequests
  • Constructor Details

    • SortedSpriteBatch

      public SortedSpriteBatch()
  • Method Details

    • setSort

      protected void setSort(boolean sort)
      Description copied from class: Batch
      Enables or disables Z-sorting. Flushes the batch. Only does something on supported batches.
      Overrides:
      setSort in class Batch
    • setShader

      protected void setShader(Shader shader, boolean apply)
      Overrides:
      setShader in class Batch
    • setBlending

      protected void setBlending(Blending blending)
      Overrides:
      setBlending in class Batch
    • draw

      protected void draw(Texture texture, float[] spriteVertices, int offset, int count)
      Overrides:
      draw in class SpriteBatch
    • draw

      protected void draw(TextureRegion region, float x, float y, float originX, float originY, float width, float height, float rotation)
      Overrides:
      draw in class SpriteBatch
    • draw

      protected void draw(Runnable request)
      Overrides:
      draw in class Batch
    • expandRequests

      protected void expandRequests()
    • flush

      protected void flush()
      Overrides:
      flush in class SpriteBatch
    • flushRequests

      protected void flushRequests()
    • sortRequests

      protected void sortRequests()
    • sortRequestsThreaded

      protected void sortRequestsThreaded()
    • sortRequestsStandard

      protected void sortRequestsStandard()