Java com.badlogic.gdx.graphics.g2d SpriteCache fields, constructors, methods, implement or subclass

Example usage for Java com.badlogic.gdx.graphics.g2d SpriteCache fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.badlogic.gdx.graphics.g2d SpriteCache.

The text is from its open source code.

Constructor

SpriteCache(int size, boolean useIndices)
Creates a cache with the specified size, using a default shader if OpenGL ES 2.0 is being used.

Method

voidadd(TextureRegion region, float x, float y, float width, float height)
Adds the specified region to the cache.
voidbeginCache()
Starts the definition of a new cache, allowing the add and #endCache() methods to be called.
voidclear()
Invalidates all cache IDs and resets the SpriteCache so new caches can be added.
intendCache()
Ends the definition of a cache, returning the cache ID to be used with #draw(int) .
voidsetColor(Color tint)
Sets the color used to tint images when they are added to the SpriteCache.
voidsetColor(float color)
voidsetProjectionMatrix(Matrix4 projection)
voidsetTransformMatrix(Matrix4 transform)