Package se.llbit.chunky.resources.texturepack

Examples of se.llbit.chunky.resources.texturepack.TextureRef


    ZipFile texturePack = null;
    try {
      texturePack = new ZipFile(tpFile);
      for (String id: toLoad) {
        TextureRef tex = allTextures.get(id);
        if (tex.load(texturePack)) {
          notLoaded.remove(id);
        }
      }

      // fall back on terrain.png
View Full Code Here


      if (in != null) {
        BufferedImage spritemap = ImageIO.read(in);
        BufferedImage[] texture = getTerrainTextures(spritemap);

        for (String id: toLoad) {
          TextureRef tex = allTextures.get(id);
          if (notLoaded.contains(tex) && tex.loadFromTerrain(texture)) {
            notLoaded.remove(tex);
          }
        }
      }
    } catch (IOException e) {
View Full Code Here

TOP

Related Classes of se.llbit.chunky.resources.texturepack.TextureRef

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.