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