https://github.com/ruk33/texture_packer
https://github.com/ruk33/texture_packer
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ruk33/texture_packer
- Owner: Ruk33
- Created: 2023-11-22T21:58:13.000Z (almost 2 years ago)
- Default Branch: master
- Last Pushed: 2025-04-19T02:43:46.000Z (6 months ago)
- Last Synced: 2025-06-25T06:45:03.965Z (4 months ago)
- Language: C++
- Size: 356 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme
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.pnghow 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