Package com.badlogic.gdx.tools.texturepacker

Examples of com.badlogic.gdx.tools.texturepacker.TexturePacker$Packer


    BufferedImage tile;
    Vector2 tileLocation;
    TileSetLayout packerTileSet;
    Graphics g;

    packer = new TexturePacker(texturePackerSettings);

    for (TiledMapTileSet set : sets.values()) {
      String tilesetName = set.getName();
      System.out.println("Processing tileset " + tilesetName);
      IntArray usedIds = this.settings.stripUnusedTiles ? getUsedIdsBucket(tilesetName, -1) : null;
View Full Code Here


    private byte[] pack200(byte[] data) throws Exception
    {
        JarInputStream in = new JarInputStream(new ByteArrayInputStream(data));
        ByteArrayOutputStream out = new ByteArrayOutputStream();

        Packer packer = Pack200.newPacker();

        SortedMap<String, String> props = packer.properties();
        props.put(Packer.EFFORT, "9");
        props.put(Packer.KEEP_FILE_ORDER, Packer.TRUE);
        props.put(Packer.UNKNOWN_ATTRIBUTE, Packer.PASS);

        final PrintStream err = new PrintStream(System.err);
        System.setErr(new PrintStream(Constants.getNullStream()));
        packer.pack(in, out);
        System.setErr(err);

        in.close();
        out.close();
View Full Code Here

TOP

Related Classes of com.badlogic.gdx.tools.texturepacker.TexturePacker$Packer

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.