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, 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, setU, setU2, setV, setV2, split, toPixmap
public 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()
TextureAtlasRegion
getRotatedPackedWidth
in interface TextureAtlasRegion
public float getRotatedPackedHeight()
TextureAtlasRegion
getRotatedPackedHeight
in interface TextureAtlasRegion
public java.lang.String getName()
TextureAtlasRegion
getName
in interface TextureAtlasRegion
public java.lang.String getTexturePath()
TextureAtlasRegion
getTexturePath
in interface TextureAtlasRegion
public void setTexture(Texture texture)
setTexture
in interface TextureRegion
setTexture
in class LibgdxTextureRegion
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