public class ShapeTextureCache
extends java.lang.Object
| Constructor and Description | 
|---|
ShapeTextureCache()
Constructor 
 | 
| Modifier and Type | Method and Description | 
|---|---|
com.badlogic.gdx.graphics.Texture | 
getCircleTexture(com.badlogic.gdx.graphics.Color color,
                int radius,
                int lineHeight)
Returns a circle texture for the provided  
Color | 
com.badlogic.gdx.graphics.Texture | 
getFilledCircleTexture(com.badlogic.gdx.graphics.Color color,
                      int radius)
Returns a filled circular texture for the provided  
Color | 
com.badlogic.gdx.graphics.Texture | 
getFilledRectangleTexture(com.badlogic.gdx.graphics.Color color)
Returns a filled rectangular texture for the provided  
Color | 
com.badlogic.gdx.graphics.Texture | 
getRectangleTexture(com.badlogic.gdx.graphics.Color color,
                   int width,
                   int height,
                   int lineHeight)
Returns a rectangular texture for the provided  
Color | 
public com.badlogic.gdx.graphics.Texture getFilledRectangleTexture(com.badlogic.gdx.graphics.Color color)
Colorcolor - 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 Colorpublic com.badlogic.gdx.graphics.Texture getRectangleTexture(com.badlogic.gdx.graphics.Color color,
                                                    int width,
                                                    int height,
                                                    int lineHeight)
Colorcolor - The Color to fetch a texture ofwidth - The width of the rectangleheight - The height of the rectanglelineHeight - The line height of the rectangleTexture if this is first time it has been
         requested, otherwise it will return a cached instance of the
         Texture for the given Colorpublic com.badlogic.gdx.graphics.Texture getCircleTexture(com.badlogic.gdx.graphics.Color color,
                                                 int radius,
                                                 int lineHeight)
Colorcolor - The Color to fetch a texture ofradius - The radius of the circlelineHeight - The line height of the circleTexture if this is first time it has been
         requested, otherwise it will return a cached instance of the
         Texture for the given Colorpublic com.badlogic.gdx.graphics.Texture getFilledCircleTexture(com.badlogic.gdx.graphics.Color color,
                                                       int radius)
Colorcolor - The Color to fetch a texture ofradius - The radius of the circleTexture if this is first time it has been
         requested, otherwise it will return a cached instance of the
         Texture for the given Color