An open API service indexing awesome lists of open source software.

https://github.com/ruk33/texture_packer


https://github.com/ruk33/texture_packer

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

          

texture packer
packs multiple images into one and generates a header file with
the coordinates of all files.

example
the output of this tool can be observed in the examples folder.
the command executed was: texture_packer.exe sprites 9foo.png 9bar.png 19baz.png

how to use?
you can use the executable included in this repository (texture_packer.exe)
or compile following the steps in build/installation/compile.

texture_packer.exe output_name 1a.png 1b.png ...

this generates two files:
output_name.png: image of 2048x2048 pixels containing 1a.png, 1b.png, etc in one file.
output_name.h: contains the path, coordinates, dimensions and frames of all images.

each filename must include the number of frames at the beginning. for
example, from a file named 2knight.png we can infer it has 2 frames.

build/installation/compile
run build.bat or simply use the texture_packer.exe included in the
repository.

credits
thanks to stb_rect_pack, stb_image and stb_image_write from:
https://github.com/nothings/stb