A port of the libgdx texture packer