SDL Wiki
[ front page | index | search | recent changes | git repo | offline html ]

SDL_GetTexturePalette

Get the palette used by a texture.

Header File

Defined in <SDL3/SDL_render.h>

Syntax

SDL_Palette * SDL_GetTexturePalette(SDL_Texture *texture);

Function Parameters

SDL_Texture * texture the texture to query.

Return Value

(SDL_Palette *) 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.

Version

This function is available since SDL 3.4.0.

See Also


CategoryAPI, CategoryAPIFunction, CategoryRender


[ edit | delete | history | feedback | raw ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.