APIdia Launch Partner
Top Fields Constructors Methods
com.badlogic.gdx.maps.tiled

public Class TiledMapImageLayer

extends MapLayer
Class Inheritance
Imports
com.badlogic.gdx.graphics.Pixmap, com.badlogic.gdx.graphics.g2d.TextureRegion, com.badlogic.gdx.maps.MapLayer

Field Summary

Modifier and TypeField and Description
private TextureRegion
private boolean
private boolean
private boolean
private float
x

private float
y

Constructor Summary

AccessConstructor and Description
public
TiledMapImageLayer(TextureRegion region, float x, float y, boolean repeatX, boolean repeatY)

Method Summary

Modifier and TypeMethod and Description
private boolean

Returns:

boolean
checkTransparencySupport
(TextureRegion
TextureRegion of the ImageLayer
region
)

TiledMap ImageLayers can support transparency through tint color if the image provided supports the proper pixel format.

private boolean
public TextureRegion
public float
getX()

public float
getY()

public boolean
public boolean
public void
setRepeatX(boolean repeatX)

public void
setRepeatY(boolean repeatY)

public void
public void
setX(float x)

public void
setY(float y)

public boolean
Inherited from com.badlogic.gdx.maps.MapLayer:
calculateRenderOffsetsgetCombinedTintColorgetNamegetObjectsgetOffsetXgetOffsetYgetOpacitygetParallaxXgetParallaxYgetParentgetPropertiesgetRenderOffsetXgetRenderOffsetYgetTintColorinvalidateRenderOffsetisVisiblesetNamesetOffsetXsetOffsetYsetOpacitysetParallaxXsetParallaxYsetParentsetTintColorsetVisible

Field Detail

regionback to summary
private TextureRegion region
repeatXback to summary
private boolean repeatX
repeatYback to summary
private boolean repeatY
supportsTransparencyback to summary
private boolean supportsTransparency
xback to summary
private float x
yback to summary
private float y

Constructor Detail

TiledMapImageLayerback to summary
public TiledMapImageLayer(TextureRegion region, float x, float y, boolean repeatX, boolean repeatY)

Method Detail

checkTransparencySupportback to summary
private boolean checkTransparencySupport(TextureRegion region)

TiledMap ImageLayers can support transparency through tint color if the image provided supports the proper pixel format. Here we check to see if the file supports transparency by checking the format of the TextureData.

Parameters
region:TextureRegion

TextureRegion of the ImageLayer

Returns:boolean

boolean

formatHasAlphaback to summary
private boolean formatHasAlpha(Pixmap.Format format)
getTextureRegionback to summary
public TextureRegion getTextureRegion()
getXback to summary
public float getX()
getYback to summary
public float getY()
isRepeatXback to summary
public boolean isRepeatX()
isRepeatYback to summary
public boolean isRepeatY()
setRepeatXback to summary
public void setRepeatX(boolean repeatX)
setRepeatYback to summary
public void setRepeatY(boolean repeatY)
setTextureRegionback to summary
public void setTextureRegion(TextureRegion region)
setXback to summary
public void setX(float x)
setYback to summary
public void setY(float y)
supportsTransparencyback to summary
public boolean supportsTransparency()