use of com.b3dgs.lionengine.core.RasterImage in project lionengine by b3dgs.
the class MapTileRasteredModel method loadSheets.
/*
* MapTileRastered
*/
@Override
public void loadSheets(Media rasterConfig, boolean smooth) {
final Collection<Integer> sheets = map.getSheets();
final Iterator<Integer> itr = sheets.iterator();
final int th = map.getTileHeight();
while (itr.hasNext()) {
final Integer sheet = itr.next();
final RasterImage raster = new RasterImage(map.getSheet(sheet).getSurface(), rasterConfig, th, smooth);
raster.loadRasters(map.getTileHeight(), false, sheet.toString());
final List<SpriteTiled> rastersSheet = getRasters(sheet);
for (final ImageBuffer bufferRaster : raster.getRasters()) {
final SpriteTiled sheetRaster = Drawable.loadSpriteTiled(bufferRaster, map.getTileWidth(), th);
rastersSheet.add(sheetRaster);
}
}
}
Aggregations