public class LibgdxGraphicsUtils extends java.lang.Object implements GraphicsUtils
| Constructor and Description |
|---|
LibgdxGraphicsUtils() |
| 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) |
public Color newColor(int rgba8888)
newColor in interface GraphicsUtilspublic Color newColor(int r, int g, int b, int a)
newColor in interface GraphicsUtilspublic Color newColor(float r, float g, float b, float a)
newColor in interface GraphicsUtilspublic Color newColor(byte r, byte g, byte b, byte a)
newColor in interface GraphicsUtilspublic Color newColor(Color color)
newColor in interface GraphicsUtilspublic Pixmap newPixmap(int width, int height, PixmapFormat format)
newPixmap in interface GraphicsUtilspublic Pixmap newPixmap(FileHandle file)
newPixmap in interface GraphicsUtilspublic Texture newTexture(FileHandle file)
newTexture in interface GraphicsUtilspublic Texture newTexture(FileHandle file, PixmapFormat format)
newTexture in interface GraphicsUtilspublic Texture newTexture(Pixmap pixmap)
newTexture in interface GraphicsUtilspublic Texture newTexture(Pixmap pixmap, PixmapFormat format)
newTexture in interface GraphicsUtilspublic Texture newTexture(byte[] fileData)
newTexture in interface GraphicsUtilspublic TextureRegion newTextureRegion(Texture texture)
newTextureRegion in interface GraphicsUtilspublic TextureRegion newTextureRegion(Texture texture, int width, int height)
newTextureRegion in interface GraphicsUtilspublic TextureRegion newTextureRegion(Texture texture, int x, int y, int width, int height)
newTextureRegion in interface GraphicsUtilspublic TextureRegion newTextureRegion(TextureRegion textureRegion)
newTextureRegion in interface GraphicsUtilspublic TextureRegion newTextureRegion(TextureRegion textureRegion, int width, int height)
newTextureRegion in interface GraphicsUtilspublic TextureRegion newTextureRegion(TextureRegion textureRegion, int x, int y, int width, int height)
newTextureRegion in interface GraphicsUtilspublic Sprite newSprite(Texture texture)
newSprite in interface GraphicsUtilspublic Sprite newSprite(Texture texture, int width, int height)
newSprite in interface GraphicsUtilspublic Sprite newSprite(Texture texture, int x, int y, int width, int height)
newSprite in interface GraphicsUtilspublic Sprite newSprite(TextureRegion textureRegion)
newSprite in interface GraphicsUtilspublic Sprite newSprite(TextureRegion textureRegion, int width, int height)
newSprite in interface GraphicsUtilspublic Sprite newSprite(TextureRegion textureRegion, int x, int y, int width, int height)
newSprite in interface GraphicsUtilspublic Sprite newSprite(Sprite sprite)
newSprite in interface GraphicsUtilspublic TextureAtlas newTextureAtlas(FileHandle packFile)
GraphicsUtilsnewTextureAtlas in interface GraphicsUtilspublic TextureAtlas newTextureAtlas(FileHandle packFile, boolean flip)
newTextureAtlas in interface GraphicsUtilsflip - If true, all regions loaded will be flipped for use with a perspective where 0,0 is the upper left corner.public TextureAtlas newTextureAtlas(FileHandle packFile, FileHandle imagesDir)
newTextureAtlas in interface GraphicsUtilspublic TextureAtlas newTextureAtlas(FileHandle packFile, FileHandle imagesDir, boolean flip)
newTextureAtlas in interface GraphicsUtilsflip - If true, all regions loaded will be flipped for use with a perspective where 0,0 is the upper left corner.public ParticleEffect newParticleEffect()
newParticleEffect in interface GraphicsUtilspublic ParticleEffect newParticleEffect(FileHandle effectFile, FileHandle imagesDir)
newParticleEffect in interface GraphicsUtilspublic ParticleEffect newParticleEffect(FileHandle effectFile, TextureAtlas atlas)
newParticleEffect in interface GraphicsUtilspublic NinePatch newNinePatch(Texture texture, int left, int right, int top, int bottom)
newNinePatch in interface GraphicsUtilspublic NinePatch newNinePatch(TextureRegion region, int left, int right, int top, int bottom)
newNinePatch in interface GraphicsUtilspublic TilingDrawable newTilingDrawable(TextureRegion textureRegion)
newTilingDrawable in interface GraphicsUtilspublic Shader newShader(java.lang.String path)
GraphicsUtilsnewShader in interface GraphicsUtilspath - The shader pathShaderpublic FrameBuffer newFrameBuffer(int width, int height)
newFrameBuffer in interface GraphicsUtilspublic CustomCursor newCustomCursor(Pixmap upPixmap, Pixmap downPixmap, int xHotspot, int yHotspot)
GraphicsUtilsInputProcessor or added to a InputMultiplexer.newCustomCursor in interface GraphicsUtilsupPixmap - 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)