sdlFreePalette function

void sdlFreePalette(
  1. Pointer<SdlPalette> palette
)

Free a palette created with SDL_AllocPalette().

\param palette the SDL_Palette structure to be freed

\since This function is available since SDL 2.0.0.

\sa SDL_AllocPalette

extern DECLSPEC void SDLCALL SDL_FreePalette(SDL_Palette * palette)

Implementation

void sdlFreePalette(Pointer<SdlPalette> palette) {
  final sdlFreePaletteLookupFunction = libSdl2.lookupFunction<
      Void Function(Pointer<SdlPalette> palette),
      void Function(Pointer<SdlPalette> palette)>('SDL_FreePalette');
  return sdlFreePaletteLookupFunction(palette);
}