public static class TextureAtlas.AtlasSprite extends Sprite
| Constructor and Description |
|---|
TextureAtlas.AtlasSprite(TextureAtlas.AtlasRegion region) |
TextureAtlas.AtlasSprite(TextureAtlas.AtlasSprite sprite) |
| Modifier and Type | Method and Description |
|---|---|
void |
flip(boolean x,
boolean y) |
TextureAtlas.AtlasRegion |
getAtlasRegion() |
float |
getHeight() |
float |
getHeightRatio() |
float |
getOriginX() |
float |
getOriginY() |
float |
getWidth() |
float |
getWidthRatio() |
float |
getX() |
float |
getY() |
void |
rotate90(boolean clockwise)
Rotates this sprite 90 degrees in-place by rotating the texture coordinates.
|
void |
setBounds(float x,
float y,
float width,
float height)
Sets the position and size of the sprite when drawn, before scaling and rotation are applied.
|
void |
setOrigin(float originX,
float originY)
Sets the origin in relation to the sprite's position for scaling and rotation.
|
void |
setPosition(float x,
float y)
Sets the position where the sprite will be drawn.
|
void |
setSize(float width,
float height)
Sets the size of the sprite when drawn, before scaling and rotation are applied.
|
draw, draw, getBoundingRectangle, getColor, getRotation, getScaleX, getScaleY, getVertices, rotate, scale, scroll, set, setColor, setColor, setColor, setRegion, setRotation, setScale, setScale, setU, setU2, setV, setV2, setX, setY, translate, translateX, translateYgetRegionHeight, getRegionWidth, getRegionX, getRegionY, getTexture, getU, getU2, getV, getV2, isFlipX, isFlipY, setRegion, setRegion, setRegion, setRegion, setRegionHeight, setRegionWidth, setRegionX, setRegionY, setTexture, split, splitpublic TextureAtlas.AtlasSprite(TextureAtlas.AtlasRegion region)
public TextureAtlas.AtlasSprite(TextureAtlas.AtlasSprite sprite)
public void setPosition(float x,
float y)
SpriteSprite.setBounds(float, float, float, float).setPosition in class Spritepublic void setBounds(float x,
float y,
float width,
float height)
Spritepublic void setSize(float width,
float height)
SpriteSprite.setBounds(float, float, float, float).public void setOrigin(float originX,
float originY)
Spritepublic void rotate90(boolean clockwise)
SpriteSprite.setRotation(float) and Sprite.rotate(float).public float getOriginX()
getOriginX in class Spritepublic float getOriginY()
getOriginY in class Spritepublic float getWidthRatio()
public float getHeightRatio()
public TextureAtlas.AtlasRegion getAtlasRegion()