sdlGetTexturePalette function render
Get the palette used by a texture.
\param texture the texture to query. \returns a pointer to the palette used by the texture, or NULL if there is no palette used.
\threadsafety This function should only be called on the main thread.
\since This function is available since SDL 3.4.0.
\sa SDL_SetTexturePalette
extern SDL_DECLSPEC SDL_Palette * SDLCALL SDL_GetTexturePalette(SDL_Texture *texture)
Implementation
Pointer<SdlPalette> sdlGetTexturePalette(Pointer<SdlTexture> texture) {
final sdlGetTexturePaletteLookupFunction = _libSdl
.lookupFunction<
Pointer<SdlPalette> Function(Pointer<SdlTexture> texture),
Pointer<SdlPalette> Function(Pointer<SdlTexture> texture)
>('SDL_GetTexturePalette');
return sdlGetTexturePaletteLookupFunction(texture);
}