| Modifier and Type | Field and Description |
|---|---|
| protected Batch | |
| protected Rectangle | |
| protected TiledMap | |
| protected static final int | |
| protected boolean | |
| protected Rectangle | |
| protected float | |
| protected float[] | |
| protected Rectangle |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| protected void | |
| public void | dispose()
Implements com. Releases all resources of this object. |
| protected void | |
| public Batch | |
| protected float | Returns: The float color value to use for rendering.The layer to render. layer, Color The current color of the batch. batchColor)Calculates the float color for rendering an image layer, taking into account the layer's tint color, opacity, and whether the image format supports transparency then multiplying is against the batchColor |
| public TiledMap | |
| protected float | getTileLayerColor(TiledMapTileLayer layer, Color batchColor)
Calculates the float color for rendering a tile layer, taking into account the layer's tint color and opacity, then multiplying is against the batchColor |
| public float | |
| public Rectangle | |
| public void | |
| public void | render(int[] layers)
Implements com. Renders the given layers of a map. |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | |
| public void | setView(OrthographicCamera camera)
Implements com. Sets the projection matrix and viewbounds from the given camera. |
| public void | setView(Matrix4 projection, float x, float y, float width, float height)
Implements com. Sets the projection matrix for rendering, as well as the bounds of the map which should be rendered. |
| batch | back to summary |
|---|---|
| protected Batch batch | |
| imageBounds | back to summary |
|---|---|
| protected Rectangle imageBounds | |
| map | back to summary |
|---|---|
| protected TiledMap map | |
| NUM_VERTICES | back to summary |
|---|---|
| protected static final int NUM_VERTICES | |
| ownsBatch | back to summary |
|---|---|
| protected boolean ownsBatch | |
| repeatedImageBounds | back to summary |
|---|---|
| protected Rectangle repeatedImageBounds | |
| unitScale | back to summary |
|---|---|
| protected float unitScale | |
| vertices | back to summary |
|---|---|
| protected float[] vertices | |
| viewBounds | back to summary |
|---|---|
| protected Rectangle viewBounds | |
| BatchTiledMapRenderer | back to summary |
|---|---|
| public BatchTiledMapRenderer(TiledMap map) | |
| BatchTiledMapRenderer | back to summary |
|---|---|
| public BatchTiledMapRenderer(TiledMap map, float unitScale) | |
| BatchTiledMapRenderer | back to summary |
|---|---|
| public BatchTiledMapRenderer(TiledMap map, Batch batch) | |
| BatchTiledMapRenderer | back to summary |
|---|---|
| public BatchTiledMapRenderer(TiledMap map, float unitScale, Batch batch) | |
| beginRender | back to summary |
|---|---|
| protected void beginRender() Called before the rendering of all layers starts. | |
| dispose | back to summary |
|---|---|
| public void dispose() Implements com. Doc from com. Releases all resources of this object.
| |
| endRender | back to summary |
|---|---|
| protected void endRender() Called after the rendering of all layers ended. | |
| getBatch | back to summary |
|---|---|
| public Batch getBatch() | |
| getImageLayerColor | back to summary |
|---|---|
| protected float getImageLayerColor(TiledMapImageLayer layer, Color batchColor) Calculates the float color for rendering an image layer, taking into account the layer's tint color, opacity, and whether the image format supports transparency then multiplying is against the batchColor
| |
| getMap | back to summary |
|---|---|
| public TiledMap getMap() | |
| getTileLayerColor | back to summary |
|---|---|
| protected float getTileLayerColor(TiledMapTileLayer layer, Color batchColor) Calculates the float color for rendering a tile layer, taking into account the layer's tint color and opacity, then multiplying is against the batchColor | |
| getUnitScale | back to summary |
|---|---|
| public float getUnitScale() | |
| getViewBounds | back to summary |
|---|---|
| public Rectangle getViewBounds() | |
| render | back to summary |
|---|---|
| public void render() Implements com. Doc from com. Renders all the layers of a map.
| |
| render | back to summary |
|---|---|
| public void render(int[] layers) Implements com. Doc from com. Renders the given layers of a map.
| |
| renderImageLayer | back to summary |
|---|---|
| public void renderImageLayer(TiledMapImageLayer layer) Implements com.
| |
| renderMapLayer | back to summary |
|---|---|
| public void renderMapLayer(MapLayer layer) | |
| renderObject | back to summary |
|---|---|
| public void renderObject(MapObject object) Implements com.
| |
| renderObjects | back to summary |
|---|---|
| public void renderObjects(MapLayer layer) Implements com.
| |
| setMap | back to summary |
|---|---|
| public void setMap(TiledMap map) | |
| setView | back to summary |
|---|---|
| public void setView(OrthographicCamera camera) Implements com. Doc from com. Sets the projection matrix and viewbounds from the given camera. If the camera changes, you have to call this method again. The viewbounds are taken from the camera's position and viewport size as well as the scale. This method will only work if the camera's direction vector is (0,0,-1) and its up vector is (0, 1, 0), which are the defaults.
| |
| setView | back to summary |
|---|---|
| public void setView(Matrix4 projection, float x, float y, float width, float height) Implements com. Doc from com. Sets the projection matrix for rendering, as well as the bounds of the map which should be rendered. Make sure that the frustum spanned by the projection matrix coincides with the viewbounds.
| |