|
libgdx API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.badlogic.gdx.graphics.g2d.TextureRegion
com.badlogic.gdx.graphics.g2d.Sprite
com.badlogic.gdx.graphics.g2d.TextureAtlas.AtlasSprite
public static class TextureAtlas.AtlasSprite
A sprite that, if whitespace was stripped from the region when it was packed, is automatically positioned as if whitespace had not been stripped.
| Constructor Summary | |
|---|---|
TextureAtlas.AtlasSprite(TextureAtlas.AtlasRegion region)
|
|
| Method Summary | |
|---|---|
void |
flip(boolean x,
boolean y)
|
TextureAtlas.AtlasRegion |
getAtlasRegion()
|
float |
getHeight()
|
float |
getOriginX()
|
float |
getOriginY()
|
float |
getWidth()
|
float |
getX()
|
float |
getY()
|
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. |
| Methods inherited from class com.badlogic.gdx.graphics.g2d.Sprite |
|---|
draw, draw, getBoundingRectangle, getColor, getRotation, getScaleX, getScaleY, getVertices, rotate, rotate90, scale, scroll, set, setColor, setColor, setRegion, setRotation, setScale, setScale, setU, setU2, setV, setV2, setX, setY, translate, translateX, translateY |
| Methods inherited from class com.badlogic.gdx.graphics.g2d.TextureRegion |
|---|
getRegionHeight, getRegionWidth, getRegionX, getRegionY, getTexture, getU, getU2, getV, getV2, setRegion, setRegion, setRegion, setRegion, setRegionHeight, setRegionWidth, setRegionX, setRegionY, setTexture, split, split |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TextureAtlas.AtlasSprite(TextureAtlas.AtlasRegion region)
| Method Detail |
|---|
public void setPosition(float x,
float y)
SpriteSprite.setBounds(float, float, float, float).
setPosition in class Sprite
public void setBounds(float x,
float y,
float width,
float height)
Sprite
setBounds in class Sprite
public void setSize(float width,
float height)
SpriteSprite.setBounds(float, float, float, float).
setSize in class Sprite
public void setOrigin(float originX,
float originY)
Sprite
setOrigin in class Sprite
public void flip(boolean x,
boolean y)
flip in class Spritepublic float getX()
getX in class Spritepublic float getY()
getY in class Spritepublic float getOriginX()
getOriginX in class Spritepublic float getOriginY()
getOriginY in class Spritepublic float getWidth()
getWidth in class Spritepublic float getHeight()
getHeight in class Spritepublic TextureAtlas.AtlasRegion getAtlasRegion()
|
libgdx API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||