Skip to content

intervinn/btxpack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Btxpack

Bare Texture Packer

Install

go install github.com/intervinn/btxpack/cmd/btxpack@latest

Usage

Consumes folder of images, emits combined image and the metadata file

btxpack -src=/assets -out=atlas.png -meta=atlas.json

Algorithms

  • line - places each assets one by one in a single line
  • shelf - fits all assets into a square with a size of power of two for better gpu something, uses a shelf algorithm for vertical stacking

Changelog

0.1.2

  • Added Shelf algorithm (-alg=shelf)

0.1.1

  • Refactor cmd arg parsing (remove cobra, use standard go flags)
  • Add C codegen

0.1.0

  • Initial release

License

MIT License.

About

Pack images into a texture atlas

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors