public class LibgdxTextureAtlasRegion extends LibgdxTextureRegion implements TextureAtlasRegion
| Modifier and Type | Field and Description |
|---|---|
int |
height |
int |
index |
java.lang.String |
name |
int |
offsetX |
int |
offsetY |
int |
originalHeight |
int |
originalWidth |
boolean |
rotate |
java.lang.String |
texturePath |
int |
width |
int |
x |
int |
y |
textureRegion| Constructor and Description |
|---|
LibgdxTextureAtlasRegion(java.lang.String texturePath,
java.lang.String name,
int index,
int x,
int y,
int width,
int height,
boolean rotate,
int originalWidth,
int originalHeight,
int offsetX,
int offsetY) |
LibgdxTextureAtlasRegion(Texture texture,
java.lang.String name,
int index,
int x,
int y,
int width,
int height,
boolean rotate,
int originalWidth,
int originalHeight,
int offsetX,
int offsetY) |
| Modifier and Type | Method and Description |
|---|---|
int |
getIndex()
The number at the end of the original filename
|
java.lang.String |
getName()
Returns the name (path) of the region up to the first underscore (underscores are special instructions to packer)
|
float |
getOffsetX()
Offset from the left of the original image to the left of the packed image after whitespace was removed for packing
|
float |
getOffsetY()
Offset from the top of the original image to the top of the packed image after whitespace was removed for packing
|
float |
getOriginalHeight()
Height of the image before whitespace was removed for packing
|
float |
getOriginalWidth()
Width of the image before whitespace was removed for packing
|
float |
getPackedHeight()
Height of the image after whitespace was removed for packing
|
float |
getPackedWidth()
Width of the image after whitespace was removed for packing
|
float |
getRotatedPackedHeight()
Returns the packed height considering the rotate value, if it is true then it returns the packedWidth, otherwise it
returns the packedHeight.
|
float |
getRotatedPackedWidth()
Returns the packed width considering the rotate value, if it is true then it returns the packedHeight, otherwise it
returns the packedWidth.
|
java.lang.String |
getTexturePath()
Returns the name (path) of the texture used by this region
|
void |
setTexture(Texture texture) |
flip, getRegionHeight, getRegionWidth, getRegionX, getRegionY, getTexture, getU, getU2, getV, getV2, isFlipX, isFlipY, scroll, setFlip, setFlipX, setFlipY, setRegion, setRegion, setRegion, setRegion, setRegion, setRegionHeight, setRegionWidth, setRegionX, setRegionY, setU, setU2, setV, setV2, split, toPixmapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitflip, getRegionHeight, getRegionWidth, getRegionX, getRegionY, getTexture, getU, getU2, getV, getV2, isFlipX, isFlipY, scroll, setFlip, setFlipX, setFlipY, setRegion, setRegion, setRegion, setRegion, setRegion, setRegionHeight, setRegionWidth, setRegionX, setRegionY, setU, setU2, setV, setV2, split, toPixmappublic final java.lang.String name
public final java.lang.String texturePath
public final boolean rotate
public final int x
public final int y
public final int width
public final int height
public final int originalWidth
public final int originalHeight
public final int offsetX
public final int offsetY
public final int index
public LibgdxTextureAtlasRegion(Texture texture, java.lang.String name, int index, int x, int y, int width, int height, boolean rotate, int originalWidth, int originalHeight, int offsetX, int offsetY)
public LibgdxTextureAtlasRegion(java.lang.String texturePath,
java.lang.String name,
int index,
int x,
int y,
int width,
int height,
boolean rotate,
int originalWidth,
int originalHeight,
int offsetX,
int offsetY)
public float getRotatedPackedWidth()
TextureAtlasRegiongetRotatedPackedWidth in interface TextureAtlasRegionpublic float getRotatedPackedHeight()
TextureAtlasRegiongetRotatedPackedHeight in interface TextureAtlasRegionpublic java.lang.String getName()
TextureAtlasRegiongetName in interface TextureAtlasRegionpublic java.lang.String getTexturePath()
TextureAtlasRegiongetTexturePath in interface TextureAtlasRegionpublic void setTexture(Texture texture)
setTexture in interface TextureRegionsetTexture in class LibgdxTextureRegionpublic int getIndex()
TextureAtlasRegiongetIndex in interface TextureAtlasRegionpublic float getPackedWidth()
TextureAtlasRegiongetPackedWidth in interface TextureAtlasRegionpublic float getPackedHeight()
TextureAtlasRegiongetPackedHeight in interface TextureAtlasRegionpublic float getOriginalWidth()
TextureAtlasRegiongetOriginalWidth in interface TextureAtlasRegionpublic float getOriginalHeight()
TextureAtlasRegiongetOriginalHeight in interface TextureAtlasRegionpublic float getOffsetX()
TextureAtlasRegiongetOffsetX in interface TextureAtlasRegionpublic float getOffsetY()
TextureAtlasRegiongetOffsetY in interface TextureAtlasRegion