imgLoadWebpAnimationRw function
Load a WEBP animation directly.
If you know you definitely have a WEBP 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_LoadWEBPAnimation_RW(SDL_RWops *src)
Implementation
Pointer<ImgAnimation> imgLoadWebpAnimationRw(Pointer<SdlRWops> src) {
final imgLoadWebpAnimationRwLookupFunction = libSdl2Image.lookupFunction<
Pointer<ImgAnimation> Function(Pointer<SdlRWops> src),
Pointer<ImgAnimation> Function(
Pointer<SdlRWops> src)>('IMG_LoadWEBPAnimation_RW');
return imgLoadWebpAnimationRwLookupFunction(src);
}