Example usage for Java com.badlogic.gdx.graphics.g2d SpriteCache fields, constructors, methods, implement or subclass
The text is from its open source code.
SpriteCache(int size, boolean useIndices) Creates a cache with the specified size, using a default shader if OpenGL ES 2.0 is being used. |
void | add(TextureRegion region, float x, float y, float width, float height) Adds the specified region to the cache. |
void | beginCache() Starts the definition of a new cache, allowing the add and #endCache() methods to be called. |
void | clear() Invalidates all cache IDs and resets the SpriteCache so new caches can be added. |
int | endCache() Ends the definition of a cache, returning the cache ID to be used with #draw(int) . |
void | setColor(Color tint) Sets the color used to tint images when they are added to the SpriteCache. |
void | setColor(float color) |
void | setProjectionMatrix(Matrix4 projection) |
void | setTransformMatrix(Matrix4 transform) |