Class SpriteCacheExtended.CacheArray

java.lang.Object
com.prineside.tdi2.utils.SpriteCacheExtended.CacheArray
All Implemented Interfaces:
com.badlogic.gdx.utils.Disposable
Enclosing class:
SpriteCacheExtended

public static final class SpriteCacheExtended.CacheArray extends Object implements com.badlogic.gdx.utils.Disposable
  • Field Details

    • dirty

      public boolean dirty
  • Constructor Details

    • CacheArray

      public CacheArray(String name, int sizePerCache, com.badlogic.gdx.graphics.glutils.ShaderProgram shaderProgram, boolean useIndices)
  • Method Details

    • getSizePerCache

      public int getSizePerCache()
    • isUseIndices

      public boolean isUseIndices()
    • getShaderProgram

      public com.badlogic.gdx.graphics.glutils.ShaderProgram getShaderProgram()
    • start

      public SpriteCacheExtended start()
    • end

      public void end()
    • swapCachesIfFull

      public SpriteCacheExtended swapCachesIfFull()
      Returns:
      new cache to draw on if current one is full, otherwise returns the current one
    • getPreparedCaches

      public com.badlogic.gdx.utils.Array<SpriteCacheExtended> getPreparedCaches()
    • dispose

      public void dispose()
      Description copied from interface: com.badlogic.gdx.utils.Disposable
      Releases all resources of this object.
      Specified by:
      dispose in interface com.badlogic.gdx.utils.Disposable