HomeSort by relevance Sort by last modified time
    Searched refs:tileset (Results 1 - 6 of 6) sorted by null

  /external/libgdx/gdx/src/com/badlogic/gdx/maps/tiled/
TiledMapTileSets.java 34 * @return tileset at index */
40 * @return tileset with matching name, null if it doesn't exist */
42 for (TiledMapTileSet tileset : tilesets) {
43 if (name.equals(tileset.getName())) {
44 return tileset;
50 /** @param tileset set to be added to the collection */
51 public void addTileSet (TiledMapTileSet tileset) {
52 tilesets.add(tileset);
55 /** Removes tileset at index
57 * @param index index at which to remove a tileset. *
77 TiledMapTileSet tileset = tilesets.get(i); local
    [all...]
TmxMapLoader.java 150 /** Loads the map data, given the XML root element and an {@link ImageResolver} used to return the tileset Textures
204 Array<Element> tilesets = root.getChildrenByName("tileset");
230 for (Element tileset : root.getChildrenByName("tileset")) {
231 String source = tileset.getAttribute("source", null);
234 tileset = xml.parse(tsxFile);
235 Element imageElement = tileset.getChildByName("image");
237 String imageSource = tileset.getChildByName("image").getAttribute("source");
241 for (Element tile : tileset.getChildrenByName("tile")) {
248 Element imageElement = tileset.getChildByName("image")
369 TiledMapTileSet tileset = new TiledMapTileSet(); local
    [all...]
TideMapLoader.java 102 /** Loads the map data, given the XML root element and an {@link ImageResolver} used to return the tileset Textures
131 for (Element tileset : tilesheets.getChildrenByName("TileSheet")) {
132 Element imageSource = tileset.getChildByName("ImageSource");
172 for (TiledMapTileSet tileset : tilesets) {
173 firstgid += tileset.size();
176 TiledMapTileSet tileset = new TiledMapTileSet(); local
177 tileset.setName(id);
178 tileset.getProperties().put("firstgid", firstgid);
188 tileset.putTile(gid++, tile);
194 loadProperties(tileset.getProperties(), properties);
    [all...]
AtlasTmxMapLoader.java 56 * in it indexed regions named after the tilesets used in the map. The indexes shall be local to the tileset (not the global id).
271 } else if (elementName.equals("tileset")) {
283 if (element.getName().equals("tileset")) {
321 throw new GdxRuntimeException("Error parsing external tileset.");
347 // get the TextureAtlas for this tileset
357 TiledMapTileSet tileset = new TiledMapTileSet(); local
358 MapProperties props = tileset.getProperties();
359 tileset.setName(name);
380 tileset.putTile(tileid, tile);
388 TiledMapTile tile = tileset.getTile(tileid)
    [all...]
  /external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tiledmappacker/
TileSetLayout.java 42 * @param tileset the tile set to process
44 protected TileSetLayout (int firstgid, TiledMapTileSet tileset, FileHandle baseDir) throws IOException {
45 int tileWidth = tileset.getProperties().get("tilewidth", Integer.class);
46 int tileHeight = tileset.getProperties().get("tileheight", Integer.class);
47 int margin = tileset.getProperties().get("margin", Integer.class);
48 int spacing = tileset.getProperties().get("spacing", Integer.class);
52 image = ImageIO.read(baseDir.child(tileset.getProperties().get("imagesource", String.class)).read());
TiledMapPacker.java 63 /** Given one or more TMX tilemaps, packs all tileset resources used across the maps, or the resources used per map, into a single,
71 * read the associated TextureAtlas representing the tileset.
82 private static final String TilesetsOutputDir = "tileset";
189 // if enabled, build a list of used tileids for the tileset used by this map
194 for (TiledMapTileSet tileset : map.getTileSets()) {
195 String tilesetName = tileset.getName();
197 tilesetsToPack.put(tilesetName, tileset);
252 // track this tileset to be packed if not already tracked
264 for (TiledMapTileSet tileset : map.getTileSets()) {
265 int firstgid = tileset.getProperties().get("firstgid", -1, Integer.class)
    [all...]

Completed in 191 milliseconds