Skip to content
/ atlas Public
forked from Kai-46/atlas

a texture atlas generator for the texture mapping project

License

Notifications You must be signed in to change notification settings

millerjv/atlas

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

atlas

A small utility for generating a texture atlas from all the images and truetype fonts in a directory.

Basic usage

atlas assetdir

This will pack the images and fonts from assetdir and create the file out.png. out.txt will also be created, containing a list of all the packed images and their locations.

The -f argument can be used to specify a custom line format for the text file, for example, the following might be used for XML:

atlas -f "<image name='%s' x='%d' y='%d' width='%d' height='%d'/>" assetdir

Run atlas --help for a list of all possible arguments.

Example

The directory 'example/' contains an example for generating texture atlas. The expected outputs are 'example/out.png' and 'example/out.txt'. I

License

This project is free software; you can redistribute it and/or modify it under the terms of the MIT license. See LICENSE for details.

The project uses several of the stb libraries which are in the public domain.

About

a texture atlas generator for the texture mapping project

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 99.9%
  • Shell 0.1%