-
Notifications
You must be signed in to change notification settings - Fork 363
Closed
Labels
Milestone
Description
Save and Load Texture Atlas.
Offer a way to save a generated Texture atlas or part of one and have it be loadable later.
What should be added/changed?
A TextureAtlas.save() and TextureAtlas.load().
What would it help with?
Exporting games, and run speed since no texture writing needs to be done at run time.
A bonus benefit is sprites that are only ever on the GPU and their textures never need to be loaded.
Could be two parts. A png file and a Json file that could look like
{
"Source": ".../atlas.png",
"Size": [100, 100],
"Textures": {
"light.png<params>": {
"pos": [120, 145],
"size": [100, 100]
},
...
}
}pushfoo