Package com.prineside.tdi2.utils
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCacheArray
(String name, int sizePerCache, com.badlogic.gdx.graphics.glutils.ShaderProgram shaderProgram, boolean useIndices) -
Method Summary
Modifier and TypeMethodDescriptionvoid
dispose()
Releases all resources of this object.void
end()
com.badlogic.gdx.utils.Array<SpriteCacheExtended>
com.badlogic.gdx.graphics.glutils.ShaderProgram
int
boolean
start()
-
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
-
end
public void end() -
swapCachesIfFull
- Returns:
- new cache to draw on if current one is full, otherwise returns the current one
-
getPreparedCaches
-
dispose
public void dispose()Description copied from interface:com.badlogic.gdx.utils.Disposable
Releases all resources of this object.- Specified by:
dispose
in interfacecom.badlogic.gdx.utils.Disposable
-