cute_aseprite_load_from_X option to not deref the color palette #416
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is kind of the dumbest solution to a feature that I would like in cute_aseprite. When it is compiling all of the layers together, it would be nice if there was some sort of option to not deref the color palette. I am using the image in indexed mode and it seems like a waste of cpu time to recompile the frames if it just got done looking up all of the palette colors. It also changes the api which isn't good. But I can't think of a better way to do it.
Edit:
Other solutions would be to wrap the behaviors in an ifdef? This would make it so you couldn't do both in a project.
Another way would be to add a cute_aseprite_load_from_memory_indexed(). This would take a bit more restructuring if you didn't want to just straight up have a complete copy of all of the code.