Get the palette used by a texture.
Defined in <SDL3/SDL_render.h>
SDL_Palette * SDL_GetTexturePalette(SDL_Texture *texture);
SDL_Texture * | texture | the texture to query. |
(SDL_Palette *) Returns a pointer to the palette used by the texture, or NULL if there is no palette used.
This function should only be called on the main thread.
This function is available since SDL 3.4.0.