Skip to content

Rework TextureAtlasBuilder APIs for asset loaders #2987

@B-Reif

Description

@B-Reif

What problem does this solve or what need does it fill?

Currently the TextureAtlasBuilder API requires the use of the Assets API, tracking its constituent textures through Handles and Assets<Texture>. This limits atlas construction to contexts where the Assets API is available. Specifically, it would help to be able to construct an Atlas during Asset::load where only the load_context API is available.

What solution would you like?

Expand or modify the TextureAtlasBuilder API to work with lower-level types or with a load context.

What alternative(s) have you considered?

Currently the only options are to

  • move atlas construction into Systems, which isn't ideal for conveniently loading Asset types, or
  • re-implement the TextureAtlasBuilder internals externally

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-AssetsLoad files from disk to use for things like images, models, and soundsC-UsabilityA targeted quality-of-life change that makes Bevy easier to use

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions