Class IsoTileRenderer

java.lang.Object
com.badlogic.gdx.maps.tiled.renderers.BatchTiledMapRenderer
com.deco2800.game.areas.terrain.IsoTileRenderer
All Implemented Interfaces:
com.badlogic.gdx.maps.MapRenderer, com.badlogic.gdx.maps.tiled.TiledMapRenderer, com.badlogic.gdx.utils.Disposable

public class IsoTileRenderer extends com.badlogic.gdx.maps.tiled.renderers.BatchTiledMapRenderer
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static com.badlogic.gdx.math.Matrix4
     
    static com.badlogic.gdx.math.Vector3
     

    Fields inherited from class com.badlogic.gdx.maps.tiled.renderers.BatchTiledMapRenderer

    batch, imageBounds, map, NUM_VERTICES, ownsBatch, unitScale, vertices, viewBounds
  • Constructor Summary

    Constructors
    Constructor
    Description
    IsoTileRenderer(com.badlogic.gdx.maps.tiled.TiledMap map)
     
    IsoTileRenderer(com.badlogic.gdx.maps.tiled.TiledMap map, float unitScale)
     
    IsoTileRenderer(com.badlogic.gdx.maps.tiled.TiledMap map, float unitScale, com.badlogic.gdx.graphics.g2d.Batch batch)
     
    IsoTileRenderer(com.badlogic.gdx.maps.tiled.TiledMap map, com.badlogic.gdx.graphics.g2d.Batch batch)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    renderTileLayer(com.badlogic.gdx.maps.tiled.TiledMapTileLayer layer)
     
    com.badlogic.gdx.math.Vector3
    translateScreenToIso(com.badlogic.gdx.math.Vector2 vec)
     

    Methods inherited from class com.badlogic.gdx.maps.tiled.renderers.BatchTiledMapRenderer

    beginRender, dispose, endRender, getBatch, getMap, getUnitScale, getViewBounds, render, render, renderImageLayer, renderMapLayer, renderObject, renderObjects, setMap, setView, setView

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • invIsotransform

      public static com.badlogic.gdx.math.Matrix4 invIsotransform
    • screenPos

      public static com.badlogic.gdx.math.Vector3 screenPos
  • Constructor Details

    • IsoTileRenderer

      public IsoTileRenderer(com.badlogic.gdx.maps.tiled.TiledMap map)
    • IsoTileRenderer

      public IsoTileRenderer(com.badlogic.gdx.maps.tiled.TiledMap map, com.badlogic.gdx.graphics.g2d.Batch batch)
    • IsoTileRenderer

      public IsoTileRenderer(com.badlogic.gdx.maps.tiled.TiledMap map, float unitScale)
    • IsoTileRenderer

      public IsoTileRenderer(com.badlogic.gdx.maps.tiled.TiledMap map, float unitScale, com.badlogic.gdx.graphics.g2d.Batch batch)
  • Method Details

    • translateScreenToIso

      public com.badlogic.gdx.math.Vector3 translateScreenToIso(com.badlogic.gdx.math.Vector2 vec)
    • renderTileLayer

      public void renderTileLayer(com.badlogic.gdx.maps.tiled.TiledMapTileLayer layer)