imgLoadGifAnimationRw function

Pointer<ImgAnimation> imgLoadGifAnimationRw(
  1. Pointer<SdlRWops> src
)

Load a GIF animation directly.

If you know you definitely have a GIF 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_RWops interface available here.

\param src an SDL_RWops that data will be read from. \returns a new IMG_Animation, or NULL on error.

\since This function is available since SDL_image 2.6.0.

\sa IMG_LoadAnimation \sa IMG_LoadAnimation_RW \sa IMG_LoadAnimationTyped_RW \sa IMG_FreeAnimation

extern DECLSPEC IMG_Animation * SDLCALL IMG_LoadGIFAnimation_RW(SDL_RWops *src)

Implementation

Pointer<ImgAnimation> imgLoadGifAnimationRw(Pointer<SdlRWops> src) {
  final imgLoadGifAnimationRwLookupFunction = libSdl2Image.lookupFunction<
      Pointer<ImgAnimation> Function(Pointer<SdlRWops> src),
      Pointer<ImgAnimation> Function(
          Pointer<SdlRWops> src)>('IMG_LoadGIFAnimation_RW');
  return imgLoadGifAnimationRwLookupFunction(src);
}