Skip to main content

IMG_LoadGIFAnimation_IO

Function IMG_LoadGIFAnimation_IO 

Source
pub unsafe extern "C" fn IMG_LoadGIFAnimation_IO(
    src: *mut SDL_IOStream,
) -> *mut IMG_Animation
Expand description

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_IOStream interface available here.

Parameter: src an SDL_IOStream that data will be read from.

Returns: a new IMG_Animation, or NULL on error.

Available Since: This function is available since SDL_image 3.0.0.

See Also: IMG_isGIF

See Also: IMG_LoadAnimation

See Also: IMG_LoadAnimation_IO

See Also: IMG_LoadAnimationTyped_IO

See Also: IMG_LoadANIAnimation_IO

See Also: IMG_LoadAPNGAnimation_IO

See Also: IMG_LoadAVIFAnimation_IO

See Also: IMG_LoadWEBPAnimation_IO

See Also: IMG_FreeAnimation