public abstract class BatchTiledMapRenderer extends Object implements TiledMapRenderer, Disposable
| Constructor and Description |
|---|
BatchTiledMapRenderer(TiledMap map) |
BatchTiledMapRenderer(TiledMap map,
Batch batch) |
BatchTiledMapRenderer(TiledMap map,
float unitScale) |
BatchTiledMapRenderer(TiledMap map,
float unitScale,
Batch batch) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Releases all resources of this object.
|
Batch |
getBatch() |
TiledMap |
getMap() |
float |
getUnitScale() |
Rectangle |
getViewBounds() |
void |
render()
Renders all the layers of a map.
|
void |
render(int[] layers)
Renders the given layers of a map.
|
void |
renderImageLayer(TiledMapImageLayer layer) |
void |
renderObject(MapObject object) |
void |
renderObjects(MapLayer layer) |
void |
setMap(TiledMap map) |
void |
setView(Matrix4 projection,
float x,
float y,
float width,
float height)
Sets the projection matrix for rendering, as well as the bounds of the map which should be rendered.
|
void |
setView(OrthographicCamera camera)
Sets the projection matrix and viewbounds from the given camera.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitrenderTileLayerpublic BatchTiledMapRenderer(TiledMap map)
public BatchTiledMapRenderer(TiledMap map, float unitScale)
public TiledMap getMap()
public void setMap(TiledMap map)
public float getUnitScale()
public Batch getBatch()
public Rectangle getViewBounds()
public void setView(OrthographicCamera camera)
MapRenderersetView in interface MapRenderercamera - the OrthographicCamerapublic void setView(Matrix4 projection, float x, float y, float width, float height)
MapRenderersetView in interface MapRendererpublic void render()
MapRendererrender in interface MapRendererpublic void render(int[] layers)
MapRendererrender in interface MapRendererlayers - the layers to render.public void renderObjects(MapLayer layer)
renderObjects in interface TiledMapRendererpublic void renderObject(MapObject object)
renderObject in interface TiledMapRendererpublic void renderImageLayer(TiledMapImageLayer layer)
renderImageLayer in interface TiledMapRendererpublic void dispose()
Disposabledispose in interface DisposableCopyright © 2021. All rights reserved.