public class ShapeTextureCache
extends java.lang.Object
Constructor and Description |
---|
ShapeTextureCache()
Constructor
|
Modifier and Type | Method and Description |
---|---|
com.badlogic.gdx.graphics.Texture |
getFilledRectangleTexture(LibgdxColor color)
Returns a filled rectangular texture for the provided
LibgdxColor |
public com.badlogic.gdx.graphics.Texture getFilledRectangleTexture(LibgdxColor color)
LibgdxColor
color
- The LibgdxColor
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 LibgdxColor