public final class GraphicsFactory extends Object
Constructor and Description |
---|
GraphicsFactory() |
Modifier and Type | Method and Description |
---|---|
static com.badlogic.gdx.graphics.g2d.NinePatch |
createNinePatch(com.badlogic.gdx.graphics.Texture texture,
int borderRadius)
Creates a valid NinePatch from a texture with the given radius.
|
static com.badlogic.gdx.graphics.g2d.NinePatch |
createNinePatch(com.badlogic.gdx.graphics.Texture texture,
int borderRadius,
com.badlogic.gdx.graphics.Color color)
Creates a valid NinePatch from a texture with the given radius and the given color.
|
static com.badlogic.gdx.graphics.Texture |
createTexture(int width,
int height,
com.badlogic.gdx.graphics.Color color)
Creates a new texture of the given color and size
|
public static com.badlogic.gdx.graphics.Texture createTexture(int width, int height, com.badlogic.gdx.graphics.Color color)
width
- width of the textureheight
- height of the texturecolor
- color of the texturepublic static com.badlogic.gdx.graphics.g2d.NinePatch createNinePatch(com.badlogic.gdx.graphics.Texture texture, int borderRadius)
texture
- the textureborderRadius
- the border radiuspublic static com.badlogic.gdx.graphics.g2d.NinePatch createNinePatch(com.badlogic.gdx.graphics.Texture texture, int borderRadius, com.badlogic.gdx.graphics.Color color)
texture
- the textureborderRadius
- the border radiuscolor
- the colorCopyright © 2020. All rights reserved.