Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add NamedMultiTextureAtlas and IndexedMultiTextureAtlas. #35

Open
Possseidon opened this issue Mar 27, 2021 · 0 comments
Open

Add NamedMultiTextureAtlas and IndexedMultiTextureAtlas. #35

Possseidon opened this issue Mar 27, 2021 · 0 comments
Assignees
Labels
dang-gl enhancement New feature or request

Comments

@Possseidon
Copy link
Owner

Since MultiTextureAtlas is templated, it cannot be created dynamically with different sizes, which might be necessary in scripting or some other rare use cases in which the size is not known at compile time.

Therefore NamedMultiTextureAtlas shall use string keys for the different SubTextures (using a map) and IndexedMultiTextureAtlas shall use integer keys in the form of std::size_t (using a vector).

The names/count should be given at construction however, as once the first texture is added, it does not make much sense to add another SubTexture afterwards, so we might as well give it directly at construction.

@Possseidon Possseidon added enhancement New feature or request dang-gl labels Mar 27, 2021
@Possseidon Possseidon self-assigned this Mar 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dang-gl enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant