public class LibgdxTextureAtlasRegion extends LibgdxTextureRegion implements TextureAtlasRegion
Modifier and Type | Field and Description |
---|---|
LibgdxTextureAtlasWrapper.AtlasRegion |
atlasRegion |
textureRegion
Constructor and Description |
---|
LibgdxTextureAtlasRegion(LibgdxTextureAtlasWrapper.AtlasRegion atlasRegion) |
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.
|
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, setTexture, setU, setU2, setV, setV2, split, toPixmap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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, setTexture, setU, setU2, setV, setV2, split, toPixmap
public final LibgdxTextureAtlasWrapper.AtlasRegion atlasRegion
public LibgdxTextureAtlasRegion(LibgdxTextureAtlasWrapper.AtlasRegion atlasRegion)
public java.lang.String getName()
TextureAtlasRegion
getName
in interface TextureAtlasRegion
public int getIndex()
TextureAtlasRegion
getIndex
in interface TextureAtlasRegion
public float getPackedWidth()
TextureAtlasRegion
getPackedWidth
in interface TextureAtlasRegion
public float getPackedHeight()
TextureAtlasRegion
getPackedHeight
in interface TextureAtlasRegion
public float getOriginalWidth()
TextureAtlasRegion
getOriginalWidth
in interface TextureAtlasRegion
public float getOriginalHeight()
TextureAtlasRegion
getOriginalHeight
in interface TextureAtlasRegion
public float getOffsetX()
TextureAtlasRegion
getOffsetX
in interface TextureAtlasRegion
public float getOffsetY()
TextureAtlasRegion
getOffsetY
in interface TextureAtlasRegion
public float getRotatedPackedWidth()
TextureAtlasRegion
getRotatedPackedWidth
in interface TextureAtlasRegion
public float getRotatedPackedHeight()
TextureAtlasRegion
getRotatedPackedHeight
in interface TextureAtlasRegion