Example usage for com.badlogic.gdx.maps.tiled TiledMapRenderer interface-usage

List of usage examples for com.badlogic.gdx.maps.tiled TiledMapRenderer interface-usage

Introduction

In this page you can find the example usage for com.badlogic.gdx.maps.tiled TiledMapRenderer interface-usage.

Usage

From source file br.com.animvs.koalory.entities.engine.graphics.tiles.TileRenderer.java

/**
 * Renders ortho tiles by caching geometry on the GPU. How much is cached is controlled by {@link #setOverCache(float)}. When the
 * view reaches the edge of the cached tiles, the cache is rebuilt at the new view position.
 * <p/>
 * This class may have poor performance when tiles are often changed dynamically, since the cache must be rebuilt after each
 * change.

From source file com.khoa.demo1.BatchTiledMapRenderer.java

public abstract class BatchTiledMapRenderer implements TiledMapRenderer, Disposable {
    protected TiledMap map;

    protected float unitScale;

    protected SpriteBatch spriteBatch;