Skip to content

Save and Load Texture Atlas. #1233

Description

@DragonMoffon

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]
        },
    ...
    } 
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions