public class ShapeTextureCache
extends java.lang.Object
Constructor and Description |
---|
ShapeTextureCache()
Constructor
|
Modifier and Type | Method and Description |
---|---|
com.badlogic.gdx.graphics.Texture |
getFilledRectangleTexture(com.badlogic.gdx.graphics.Color color)
Returns a filled rectangular texture for the provided
Color |
public com.badlogic.gdx.graphics.Texture getFilledRectangleTexture(com.badlogic.gdx.graphics.Color color)
Color
color
- The Color
to fetch a texture ofTexture
if this is first time it has been
requested, otherwise it will return a cached instance of the
Texture
for the given Color