libgdx API

com.badlogic.gdx.graphics.g2d.tiled
Class SimpleTileAtlas

java.lang.Object
  extended by com.badlogic.gdx.graphics.g2d.tiled.TileAtlas
      extended by com.badlogic.gdx.graphics.g2d.tiled.SimpleTileAtlas
All Implemented Interfaces:
Disposable

public class SimpleTileAtlas
extends TileAtlas

Contains an atlas of tiles by tile id for use with TileMapRenderer It does not need to be loaded with packed files. Just plain textures.

Author:
Tomas Lazaro

Field Summary
 
Fields inherited from class com.badlogic.gdx.graphics.g2d.tiled.TileAtlas
regionsMap, textures
 
Constructor Summary
SimpleTileAtlas(TiledMap map, FileHandle inputDir)
          Creates a TileAtlas for use with TileMapRenderer.
 
Method Summary
 
Methods inherited from class com.badlogic.gdx.graphics.g2d.tiled.TileAtlas
dispose, flipRegions, getRegion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleTileAtlas

public SimpleTileAtlas(TiledMap map,
                       FileHandle inputDir)
Creates a TileAtlas for use with TileMapRenderer.

Parameters:
map - The tiled map
inputDir - The directory containing all needed textures in the map

libgdx API

Copyright 2010 Mario Zechner (contact@badlogicgames.com), Nathan Sweet (admin@esotericsoftware.com)