public class StaticTileRenderer extends java.lang.Object implements TileRenderer
TileRenderer for single tile images| Constructor and Description | 
|---|
| StaticTileRenderer(TilesetSource tilesetSource,
                  Tile tile) | 
| Modifier and Type | Method and Description | 
|---|---|
| void | dispose() | 
| void | draw(Graphics g,
    int renderX,
    int renderY)Renders the  Tileat the given coordinates | 
| void | draw(Graphics g,
    int renderX,
    int renderY,
    boolean flipH,
    boolean flipV,
    boolean flipD)Renders the  Tileat the given coordinates | 
| static void | drawTileImage(Graphics g,
             Sprite tileImage,
             int renderX,
             int renderY,
             boolean flipH,
             boolean flipV,
             boolean flipD) | 
| Sprite | getCurrentTileImage()Returns the current  Tileimage | 
| void | update(float delta)Updates the  Tileframe | 
public StaticTileRenderer(TilesetSource tilesetSource, Tile tile)
public void update(float delta)
TileRendererTile frameupdate in interface TileRendererdelta - The time since the last update in secondspublic void draw(Graphics g, int renderX, int renderY)
TileRendererTile at the given coordinatesdraw in interface TileRendererg - The Graphics context to userenderX - The x coordinate to render atrenderY - The y coordinate to render atpublic void draw(Graphics g, int renderX, int renderY, boolean flipH, boolean flipV, boolean flipD)
TileRendererTile at the given coordinatesdraw in interface TileRendererg - The Graphics context to userenderX - The x coordinate to render atrenderY - The y coordinate to render atflipH - True if the tile is flipped horizontallyflipV - True if the tile is flipped verticallyflipD - True if the tile is flipped (anti) diagonally - rotationpublic Sprite getCurrentTileImage()
TileRendererTile imagegetCurrentTileImage in interface TileRendererpublic void dispose()
dispose in interface com.badlogic.gdx.utils.Disposable