sdlFreeFormat function

void sdlFreeFormat(
  1. Pointer<SdlPixelFormat> format
)

Free an SDL_PixelFormat structure allocated by SDL_AllocFormat().

\param format the SDL_PixelFormat structure to free

\since This function is available since SDL 2.0.0.

\sa SDL_AllocFormat

extern DECLSPEC void SDLCALL SDL_FreeFormat(SDL_PixelFormat *format)

Implementation

void sdlFreeFormat(Pointer<SdlPixelFormat> format) {
  final sdlFreeFormatLookupFunction = libSdl2.lookupFunction<
      Void Function(Pointer<SdlPixelFormat> format),
      void Function(Pointer<SdlPixelFormat> format)>('SDL_FreeFormat');
  return sdlFreeFormatLookupFunction(format);
}