-
Notifications
You must be signed in to change notification settings - Fork 89
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
Missing SDL_Palette support #143
Comments
What's your use case, if I may ask? https://wiki.libsdl.org/SDL2/SDL_Palette says one should never allocate palette manually (yet there are |
My use case is rendering 8-bit surfaces with palette 🙈 (I'm rewriting one of the old DOS RPGs in modern c++) DOS games often use palette animations etc, so I need to modify palettes and explicitly assign them to surfaces. RAII palette class/setter you mention would be nice to have 👍 |
Thanks for clarification, but that doesn't really answer the main question of whether you use AllocPalette. Code excerpt could also be useful |
sorry, I use it like this:
later I use |
It would be really nice to have a wrapper around https://wiki.libsdl.org/SDL2/SDL_Palette
The only function that takes palette argument is SDL_SetSurfacePalette
Thanks
The text was updated successfully, but these errors were encountered: