sigrid/atlas

Description
# atlas

Creates an atlas texture out of smaller images, dumps it to stdout as
a Plan 9 image and write the mapping between filenames of images and
their positions and dimensions to a file.

Dumping the resulting image file as two headers to be included in a C
program can be done by using provided `atlasc` script (it needs
[hx](https://git.sr.ht/~ft/hx) to be installed):
```
atlasc -b 0x000000ff -c grey8 *.png >atlas_priv.h >[2]atlas.h
```

## Installing

Clone, run `mk install`.

Install [hx](https://git.sr.ht/~ft/hx) to use `atlasc` script.

## TODO

Sub-atlases?
Last 5 commits (shortlog)
Date Author Short message Commit hash
2020-05-07 Sigrid update a link 174e947152b19130e4c0d54c96e3b04654adbe41
2020-05-07 Sigrid update install instructions 530f54915ce55bec17d7580453437173efe20374
2020-01-06 Sigrid keep w/h increments to a minimum 9273e8bdb036058c8deba9c0495f2aab765fd835
2020-01-04 Sigrid also write atlas dimensions to the offsets file 3971ccb2be32e517f6932bc88f6876d7881ff63f
2020-01-04 Sigrid add license and todo 5cf932b7a032a685aca7512336a70b608e605c9e
Files (browse)
.gitignore
LICENSE
README.md
atlas.c
atlasc
mkfile
stb_rect_pack.h