imgLoadIcoIo function
Load a ICO image directly.
If you know you definitely have a ICO image, you can call this function, which will skip SDL_image's file format detection routines. Generally it's better to use the abstract interfaces; also, there is only an SDL_IOStream interface available here.
\param src an SDL_IOStream to load image data from. \returns SDL surface, or NULL on error.
\since This function is available since SDL_image 3.0.0.
\sa IMG_LoadAVIF_IO \sa IMG_LoadCUR_IO \sa IMG_LoadBMP_IO \sa IMG_LoadGIF_IO \sa IMG_LoadJPG_IO \sa IMG_LoadJXL_IO \sa IMG_LoadLBM_IO \sa IMG_LoadPCX_IO \sa IMG_LoadPNG_IO \sa IMG_LoadPNM_IO \sa IMG_LoadSVG_IO \sa IMG_LoadQOI_IO \sa IMG_LoadTGA_IO \sa IMG_LoadTIF_IO \sa IMG_LoadXCF_IO \sa IMG_LoadXPM_IO \sa IMG_LoadXV_IO \sa IMG_LoadWEBP_IO
extern SDL_DECLSPEC SDL_Surface * SDLCALL IMG_LoadICO_IO(SDL_IOStream *src)
Implementation
Pointer<SdlSurface> imgLoadIcoIo(Pointer<SdlIoStream> src) {
final imgLoadIcoIoLookupFunction = libSdl3Image.lookupFunction<
Pointer<SdlSurface> Function(Pointer<SdlIoStream> src),
Pointer<SdlSurface> Function(Pointer<SdlIoStream> src)>('IMG_LoadICO_IO');
return imgLoadIcoIoLookupFunction(src);
}