SDL_GetTexturePalette - Man Page
Get the palette used by a texture.
Synopsis
#include <SDL3/SDL_render.h> SDL_Palette * SDL_GetTexturePalette(SDL_Texture *texture);
Function Parameters
- texture
the texture to query.
Return Value
Returns a pointer to the palette used by the texture, or NULL if there is no palette used.
Thread Safety
This function should only be called on the main thread.
Availability
This function is available since SDL 3.4.0.
See Also
Referenced By
SDL 3.3.2 Simple Directmedia Layer SDL3 FUNCTIONS