https://github.com/doches/atlastool
Create OpenGL friendly texture atlases
https://github.com/doches/atlastool
Last synced: about 1 year ago
JSON representation
Create OpenGL friendly texture atlases
- Host: GitHub
- URL: https://github.com/doches/atlastool
- Owner: doches
- Created: 2010-09-29T13:09:46.000Z (almost 16 years ago)
- Default Branch: master
- Last Pushed: 2013-02-21T16:51:24.000Z (over 13 years ago)
- Last Synced: 2025-06-28T11:04:37.234Z (about 1 year ago)
- Language: Python
- Homepage:
- Size: 102 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.mdown
Awesome Lists containing this project
README
### AtlasTool.py
AtlasTool.py is a tool for creating texture atlases for use in OpenGL. It uses Pygame
(SDL) to render individual images into a single large texture, and outputs a texture atlas
indicating the position and size of each image within the resulting image.
#### Usage
python AtlasTool.py [options]
Options:
-h, --help show this help message and exit
-d DIR, --dir=DIR (REQUIRED) Path to a directory containing desired
texture images.
-s SURFACE_SIZE, --surface=SURFACE_SIZE
Size of the surface into which to render, of the form
WIDTHxHEIGHT). Defaults to 512x512.
-o OUTPUT, --output=OUTPUT
Filename to use when saving the texture and atlas.
Defaults to 'texture'