Skip to content

TextureAtlasBuilder: Return unplaced textures instead of failing #23158

@ickshonpe

Description

@ickshonpe

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

TextureAtlasBuilder either places all the images it was given within an atlas of the given max_size or it fails and does nothing. There's no support for partial completion/failure.

What solution would you like?

Add an option so that if TextureAtlasBuilder::build fails to fit all images into a single max_size atlas texture, it returns an atlas containing the images that were successfully placed, along with a list of the unplaced images.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-FeatureA new feature, making something new possibleD-ModestA "normal" level of difficulty; suitable for simple features or challenging fixesS-Ready-For-ImplementationThis issue is ready for an implementation PR. Go for it!

    Type

    No type

    Projects

    Status

    Needs SME Triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions