public abstract class GraphicsUtils
extends java.lang.Object
Constructor and Description |
---|
GraphicsUtils() |
Modifier and Type | Method and Description |
---|---|
abstract Color |
newColor(byte r,
byte g,
byte b,
byte a) |
abstract Color |
newColor(Color color) |
abstract Color |
newColor(float r,
float g,
float b,
float a) |
abstract Color |
newColor(int rgba8888) |
abstract Color |
newColor(int r,
int g,
int b,
int a) |
abstract CustomCursor |
newCustomCursor(Pixmap upPixmap,
Pixmap downPixmap,
int xHotspot,
int yHotspot)
Creates a new custom mouse cursor.
|
abstract FrameBuffer |
newFrameBuffer(int width,
int height) |
abstract NinePatch |
newNinePatch(Texture texture,
int left,
int right,
int top,
int bottom) |
abstract NinePatch |
newNinePatch(TextureRegion region,
int left,
int right,
int top,
int bottom) |
abstract ParticleEffect |
newParticleEffect() |
abstract ParticleEffect |
newParticleEffect(FileHandle effectFile,
FileHandle imagesDir) |
abstract ParticleEffect |
newParticleEffect(FileHandle effectFile,
TextureAtlas atlas) |
abstract Pixmap |
newPixmap(FileHandle file) |
abstract Pixmap |
newPixmap(int width,
int height,
PixmapFormat format) |
abstract Color |
newReadOnlyColor(byte r,
byte g,
byte b,
byte a) |
abstract Color |
newReadOnlyColor(Color color) |
abstract Color |
newReadOnlyColor(float r,
float g,
float b,
float a) |
abstract Color |
newReadOnlyColor(int rgba8888) |
abstract Color |
newReadOnlyColor(int r,
int g,
int b,
int a) |
abstract Shader |
newShader(java.lang.String path)
Loads a shader at the specified path.
|
abstract Sprite |
newSprite(Sprite sprite) |
abstract Sprite |
newSprite(Texture texture) |
abstract Sprite |
newSprite(Texture texture,
int width,
int height) |
abstract Sprite |
newSprite(Texture texture,
int x,
int y,
int width,
int height) |
abstract Sprite |
newSprite(TextureRegion textureRegion) |
abstract Sprite |
newSprite(TextureRegion textureRegion,
int width,
int height) |
abstract Sprite |
newSprite(TextureRegion textureRegion,
int x,
int y,
int width,
int height) |
abstract SpriteCache |
newSpriteCache() |
abstract Texture |
newTexture(byte[] fileData) |
abstract Texture |
newTexture(FileHandle file) |
abstract Texture |
newTexture(FileHandle file,
PixmapFormat format) |
abstract Texture |
newTexture(Pixmap pixmap) |
abstract Texture |
newTexture(Pixmap pixmap,
PixmapFormat format) |
abstract TextureAtlas |
newTextureAtlas(FileHandle packFile)
Loads the specified pack file, using the parent directory of the pack file to find the page images.
|
abstract TextureAtlas |
newTextureAtlas(FileHandle packFile,
boolean flip) |
abstract TextureAtlas |
newTextureAtlas(FileHandle packFile,
FileHandle imagesDir) |
abstract TextureAtlas |
newTextureAtlas(FileHandle packFile,
FileHandle imagesDir,
boolean flip) |
abstract TextureRegion |
newTextureRegion(Texture texture) |
abstract TextureRegion |
newTextureRegion(Texture texture,
int width,
int height) |
abstract TextureRegion |
newTextureRegion(Texture texture,
int x,
int y,
int width,
int height) |
abstract TextureRegion |
newTextureRegion(TextureRegion textureRegion) |
abstract TextureRegion |
newTextureRegion(TextureRegion textureRegion,
int width,
int height) |
abstract TextureRegion |
newTextureRegion(TextureRegion textureRegion,
int x,
int y,
int width,
int height) |
TilingDrawable |
newTilingDrawable(TextureRegion textureRegion) |
public abstract Color newColor(int rgba8888)
public abstract Color newColor(int r, int g, int b, int a)
public abstract Color newColor(float r, float g, float b, float a)
public abstract Color newColor(byte r, byte g, byte b, byte a)
public abstract Color newReadOnlyColor(int rgba8888)
public abstract Color newReadOnlyColor(int r, int g, int b, int a)
public abstract Color newReadOnlyColor(float r, float g, float b, float a)
public abstract Color newReadOnlyColor(byte r, byte g, byte b, byte a)
public abstract Pixmap newPixmap(int width, int height, PixmapFormat format)
public abstract Pixmap newPixmap(FileHandle file)
public abstract Texture newTexture(FileHandle file)
public abstract Texture newTexture(FileHandle file, PixmapFormat format)
public abstract Texture newTexture(Pixmap pixmap, PixmapFormat format)
public abstract Texture newTexture(byte[] fileData)
public abstract TextureRegion newTextureRegion(Texture texture)
public abstract TextureRegion newTextureRegion(Texture texture, int width, int height)
public abstract TextureRegion newTextureRegion(Texture texture, int x, int y, int width, int height)
public abstract TextureRegion newTextureRegion(TextureRegion textureRegion)
public abstract TextureRegion newTextureRegion(TextureRegion textureRegion, int width, int height)
public abstract TextureRegion newTextureRegion(TextureRegion textureRegion, int x, int y, int width, int height)
public abstract Sprite newSprite(TextureRegion textureRegion)
public abstract Sprite newSprite(TextureRegion textureRegion, int width, int height)
public abstract Sprite newSprite(TextureRegion textureRegion, int x, int y, int width, int height)
public abstract TextureAtlas newTextureAtlas(FileHandle packFile)
public abstract 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.public abstract TextureAtlas newTextureAtlas(FileHandle packFile, FileHandle imagesDir)
public abstract 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.public abstract ParticleEffect newParticleEffect()
public abstract ParticleEffect newParticleEffect(FileHandle effectFile, FileHandle imagesDir)
public abstract ParticleEffect newParticleEffect(FileHandle effectFile, TextureAtlas atlas)
public abstract NinePatch newNinePatch(Texture texture, int left, int right, int top, int bottom)
public abstract NinePatch newNinePatch(TextureRegion region, int left, int right, int top, int bottom)
public TilingDrawable newTilingDrawable(TextureRegion textureRegion)
public abstract Shader newShader(java.lang.String path)
path
- The shader pathShader
public abstract FrameBuffer newFrameBuffer(int width, int height)
public abstract 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)public abstract SpriteCache newSpriteCache()