public class TextureMapObject extends MapObject
Constructor and Description |
---|
TextureMapObject()
Creates an empty texture map object
|
TextureMapObject(TextureRegion textureRegion)
Creates texture map object with the given region
|
Modifier and Type | Method and Description |
---|---|
float |
getOriginX() |
float |
getOriginY() |
float |
getRotation() |
float |
getScaleX() |
float |
getScaleY() |
TextureRegion |
getTextureRegion() |
float |
getX() |
float |
getY() |
void |
setOriginX(float x) |
void |
setOriginY(float y) |
void |
setRotation(float rotation) |
void |
setScaleX(float x) |
void |
setScaleY(float y) |
void |
setTextureRegion(TextureRegion region) |
void |
setX(float x) |
void |
setY(float y) |
getColor, getName, getOpacity, getProperties, isVisible, setColor, setName, setOpacity, setVisible
public TextureMapObject()
public TextureMapObject(TextureRegion textureRegion)
textureRegion
- the TextureRegion
to use.public float getX()
public void setX(float x)
x
- new x axis coordinatepublic float getY()
public void setY(float y)
y
- new y axis coordinatepublic float getOriginX()
public void setOriginX(float x)
x
- new x axis originpublic float getOriginY()
public void setOriginY(float y)
y
- new axis originpublic float getScaleX()
public void setScaleX(float x)
x
- new x axis scalepublic float getScaleY()
public void setScaleY(float y)
y
- new y axis scalepublic float getRotation()
public void setRotation(float rotation)
rotation
- new texture's rotation in radianspublic TextureRegion getTextureRegion()
public void setTextureRegion(TextureRegion region)
region
- new texture regionCopyright © 2015. All rights reserved.