public class LibgdxGraphicsUtils extends 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) |
Color |
newReadOnlyColor(byte r,
byte g,
byte b,
byte a) |
Color |
newReadOnlyColor(Color color) |
Color |
newReadOnlyColor(float r,
float g,
float b,
float a) |
Color |
newReadOnlyColor(int rgba8888) |
Color |
newReadOnlyColor(int r,
int g,
int b,
int a) |
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) |
SpriteCache |
newSpriteCache() |
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) |
newTilingDrawablepublic Color newColor(int rgba8888)
newColor in class GraphicsUtilspublic Color newColor(int r, int g, int b, int a)
newColor in class GraphicsUtilspublic Color newColor(float r, float g, float b, float a)
newColor in class GraphicsUtilspublic Color newColor(byte r, byte g, byte b, byte a)
newColor in class GraphicsUtilspublic Color newColor(Color color)
newColor in class GraphicsUtilspublic Color newReadOnlyColor(int rgba8888)
newReadOnlyColor in class GraphicsUtilspublic Color newReadOnlyColor(int r, int g, int b, int a)
newReadOnlyColor in class GraphicsUtilspublic Color newReadOnlyColor(float r, float g, float b, float a)
newReadOnlyColor in class GraphicsUtilspublic Color newReadOnlyColor(byte r, byte g, byte b, byte a)
newReadOnlyColor in class GraphicsUtilspublic Color newReadOnlyColor(Color color)
newReadOnlyColor in class GraphicsUtilspublic Pixmap newPixmap(int width, int height, PixmapFormat format)
newPixmap in class GraphicsUtilspublic Pixmap newPixmap(FileHandle file)
newPixmap in class GraphicsUtilspublic Texture newTexture(FileHandle file)
newTexture in class GraphicsUtilspublic Texture newTexture(FileHandle file, PixmapFormat format)
newTexture in class GraphicsUtilspublic Texture newTexture(Pixmap pixmap)
newTexture in class GraphicsUtilspublic Texture newTexture(Pixmap pixmap, PixmapFormat format)
newTexture in class GraphicsUtilspublic Texture newTexture(byte[] fileData)
newTexture in class GraphicsUtilspublic TextureRegion newTextureRegion(Texture texture)
newTextureRegion in class GraphicsUtilspublic TextureRegion newTextureRegion(Texture texture, int width, int height)
newTextureRegion in class GraphicsUtilspublic TextureRegion newTextureRegion(Texture texture, int x, int y, int width, int height)
newTextureRegion in class GraphicsUtilspublic TextureRegion newTextureRegion(TextureRegion textureRegion)
newTextureRegion in class GraphicsUtilspublic TextureRegion newTextureRegion(TextureRegion textureRegion, int width, int height)
newTextureRegion in class GraphicsUtilspublic TextureRegion newTextureRegion(TextureRegion textureRegion, int x, int y, int width, int height)
newTextureRegion in class GraphicsUtilspublic Sprite newSprite(Texture texture)
newSprite in class GraphicsUtilspublic Sprite newSprite(Texture texture, int width, int height)
newSprite in class GraphicsUtilspublic Sprite newSprite(Texture texture, int x, int y, int width, int height)
newSprite in class GraphicsUtilspublic Sprite newSprite(TextureRegion textureRegion)
newSprite in class GraphicsUtilspublic Sprite newSprite(TextureRegion textureRegion, int width, int height)
newSprite in class GraphicsUtilspublic Sprite newSprite(TextureRegion textureRegion, int x, int y, int width, int height)
newSprite in class GraphicsUtilspublic Sprite newSprite(Sprite sprite)
newSprite in class GraphicsUtilspublic TextureAtlas newTextureAtlas(FileHandle packFile)
GraphicsUtilsnewTextureAtlas in class GraphicsUtilspublic TextureAtlas newTextureAtlas(FileHandle packFile, boolean flip)
newTextureAtlas in class 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 class GraphicsUtilspublic TextureAtlas newTextureAtlas(FileHandle packFile, FileHandle imagesDir, boolean flip)
newTextureAtlas in class 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 class GraphicsUtilspublic ParticleEffect newParticleEffect(FileHandle effectFile, FileHandle imagesDir)
newParticleEffect in class GraphicsUtilspublic ParticleEffect newParticleEffect(FileHandle effectFile, TextureAtlas atlas)
newParticleEffect in class GraphicsUtilspublic NinePatch newNinePatch(Texture texture, int left, int right, int top, int bottom)
newNinePatch in class GraphicsUtilspublic NinePatch newNinePatch(TextureRegion region, int left, int right, int top, int bottom)
newNinePatch in class GraphicsUtilspublic Shader newShader(java.lang.String path)
GraphicsUtilsnewShader in class GraphicsUtilspath - The shader pathShaderpublic FrameBuffer newFrameBuffer(int width, int height)
newFrameBuffer in class GraphicsUtilspublic CustomCursor newCustomCursor(Pixmap upPixmap, Pixmap downPixmap, int xHotspot, int yHotspot)
GraphicsUtilsInputProcessor or added to a InputMultiplexer.newCustomCursor in class 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)public SpriteCache newSpriteCache()
newSpriteCache in class GraphicsUtils