public interface GraphicsUtils
Modifier and Type | Method and Description |
---|---|
Color |
newColor(byte r,
byte g,
byte b,
byte a) |
Color |
newColor(Color color) |
Color |
newColor(float r,
float g,
float b,
float a) |
Color |
newColor(int rgba8888) |
Color |
newColor(int r,
int g,
int b,
int a) |
CustomCursor |
newCustomCursor(Pixmap upPixmap,
Pixmap downPixmap,
int xHotspot,
int yHotspot)
Creates a new custom mouse cursor.
|
FrameBuffer |
newFrameBuffer(int width,
int height) |
NinePatch |
newNinePatch(Texture texture,
int left,
int right,
int top,
int bottom) |
NinePatch |
newNinePatch(TextureRegion region,
int left,
int right,
int top,
int bottom) |
ParticleEffect |
newParticleEffect() |
ParticleEffect |
newParticleEffect(FileHandle effectFile,
FileHandle imagesDir) |
ParticleEffect |
newParticleEffect(FileHandle effectFile,
TextureAtlas atlas) |
Pixmap |
newPixmap(FileHandle file) |
Pixmap |
newPixmap(int width,
int height,
PixmapFormat format) |
Shader |
newShader(java.lang.String path)
Loads a shader at the specified path.
|
Sprite |
newSprite(Sprite sprite) |
Sprite |
newSprite(Texture texture) |
Sprite |
newSprite(Texture texture,
int width,
int height) |
Sprite |
newSprite(Texture texture,
int x,
int y,
int width,
int height) |
Sprite |
newSprite(TextureRegion textureRegion) |
Sprite |
newSprite(TextureRegion textureRegion,
int width,
int height) |
Sprite |
newSprite(TextureRegion textureRegion,
int x,
int y,
int width,
int height) |
Texture |
newTexture(byte[] fileData) |
Texture |
newTexture(FileHandle file) |
Texture |
newTexture(FileHandle file,
PixmapFormat format) |
Texture |
newTexture(Pixmap pixmap) |
Texture |
newTexture(Pixmap pixmap,
PixmapFormat format) |
TextureAtlas |
newTextureAtlas(FileHandle packFile)
Loads the specified pack file, using the parent directory of the pack file to find the page images.
|
TextureAtlas |
newTextureAtlas(FileHandle packFile,
boolean flip) |
TextureAtlas |
newTextureAtlas(FileHandle packFile,
FileHandle imagesDir) |
TextureAtlas |
newTextureAtlas(FileHandle packFile,
FileHandle imagesDir,
boolean flip) |
TextureRegion |
newTextureRegion(Texture texture) |
TextureRegion |
newTextureRegion(Texture texture,
int width,
int height) |
TextureRegion |
newTextureRegion(Texture texture,
int x,
int y,
int width,
int height) |
TextureRegion |
newTextureRegion(TextureRegion textureRegion) |
TextureRegion |
newTextureRegion(TextureRegion textureRegion,
int width,
int height) |
TextureRegion |
newTextureRegion(TextureRegion textureRegion,
int x,
int y,
int width,
int height) |
TilingDrawable |
newTilingDrawable(TextureRegion textureRegion) |
Color newColor(int rgba8888)
Color newColor(int r, int g, int b, int a)
Color newColor(float r, float g, float b, float a)
Color newColor(byte r, byte g, byte b, byte a)
Pixmap newPixmap(int width, int height, PixmapFormat format)
Pixmap newPixmap(FileHandle file)
Texture newTexture(FileHandle file)
Texture newTexture(FileHandle file, PixmapFormat format)
Texture newTexture(Pixmap pixmap, PixmapFormat format)
Texture newTexture(byte[] fileData)
TextureRegion newTextureRegion(Texture texture)
TextureRegion newTextureRegion(Texture texture, int width, int height)
TextureRegion newTextureRegion(Texture texture, int x, int y, int width, int height)
TextureRegion newTextureRegion(TextureRegion textureRegion)
TextureRegion newTextureRegion(TextureRegion textureRegion, int width, int height)
TextureRegion newTextureRegion(TextureRegion textureRegion, int x, int y, int width, int height)
Sprite newSprite(TextureRegion textureRegion)
Sprite newSprite(TextureRegion textureRegion, int width, int height)
Sprite newSprite(TextureRegion textureRegion, int x, int y, int width, int height)
TextureAtlas newTextureAtlas(FileHandle packFile)
TextureAtlas newTextureAtlas(FileHandle packFile, boolean flip)
flip
- If true, all regions loaded will be flipped for use with a perspective where 0,0 is the upper left corner.TextureAtlas newTextureAtlas(FileHandle packFile, FileHandle imagesDir)
TextureAtlas newTextureAtlas(FileHandle packFile, FileHandle imagesDir, boolean flip)
flip
- If true, all regions loaded will be flipped for use with a perspective where 0,0 is the upper left corner.ParticleEffect newParticleEffect()
ParticleEffect newParticleEffect(FileHandle effectFile, FileHandle imagesDir)
ParticleEffect newParticleEffect(FileHandle effectFile, TextureAtlas atlas)
NinePatch newNinePatch(TextureRegion region, int left, int right, int top, int bottom)
TilingDrawable newTilingDrawable(TextureRegion textureRegion)
Shader newShader(java.lang.String path)
path
- The shader pathShader
FrameBuffer newFrameBuffer(int width, int height)
CustomCursor newCustomCursor(Pixmap upPixmap, Pixmap downPixmap, int xHotspot, int yHotspot)
InputProcessor
or added to a InputMultiplexer
.upPixmap
- The image to use in the mouse button up statedownPixmap
- The image to use in the mouse button down statexHotspot
- The x location of the hotspot pixel within the cursor image (origin top-left corner)yHotspot
- The y location of the hotspot pixel within the cursor image (origin top-left corner)