pub unsafe extern "C" fn SDL_SetTexturePalette(
texture: *mut SDL_Texture,
palette: *mut SDL_Palette,
) -> boolExpand description
Set the palette used by a texture.
Setting the palette keeps an internal reference to the palette, which can be safely destroyed afterwards.
A single palette can be shared with many textures.
§Parameters
texture: the texture to update.palette: theSDL_Palettestructure to use.
§Return value
Returns true on success or false on failure; call SDL_GetError() for more
information.
§Thread safety
This function should only be called on the main thread.
§Availability
This function is available since SDL 3.4.0.