.\" This manpage content is licensed under Creative Commons .\" Attribution 4.0 International (CC BY 4.0) .\" https://creativecommons.org/licenses/by/4.0/ .\" This manpage was generated from SDL_image's wiki page for IMG_LoadAnimationTyped_RW: .\" https://wiki.libsdl.org/SDL_image/IMG_LoadAnimationTyped_RW .\" Generated with SDL/build-scripts/wikiheaders.pl .\" revision 3~git20240129~750f1c1+ds-1 .\" Please report issues in this manpage's content at: .\" https://github.com/libsdl-org/sdlwiki/issues/new .\" Please report issues in the generation of this manpage from the wiki at: .\" https://github.com/libsdl-org/SDL/issues/new?title=Misgenerated%20manpage%20for%20IMG_LoadAnimationTyped_RW .\" SDL_image can be found at https://libsdl.org/projects/SDL_image .de URL \$2 \(laURL: \$1 \(ra\$3 .. .if \n[.g] .mso www.tmac .TH IMG_LoadAnimationTyped_RW 3 "SDL_image 3.0.0" "SDL_image" "SDL_image3 FUNCTIONS" .SH NAME IMG_LoadAnimationTyped_RW \- Load an animation from an SDL datasource .SH SYNOPSIS .nf .B #include \(dqSDL3_image/SDL_image.h\(dq .PP .BI "IMG_Animation * IMG_LoadAnimationTyped_RW(SDL_RWops *src, SDL_bool freesrc, const char *type); .fi .SH DESCRIPTION Even though this function accepts a file type, SDL_image may still try other decoders that are capable of detecting file type from the contents of the image data, but may rely on the caller-provided type string for formats that it cannot autodetect\[char46] If .BR type is NULL, SDL_image will rely solely on its ability to guess the format\[char46] If .BR freesrc is SDL_TRUE, the RWops will be closed before returning, whether this function succeeds or not\[char46] SDL_image reads everything it needs from the RWops during this call in any case\[char46] When done with the returned animation, the app should dispose of it with a call to .BR IMG_FreeAnimation ()\[char46] .SH FUNCTION PARAMETERS .TP .I src an SDL_RWops that data will be read from\[char46] .TP .I freesrc SDL_TRUE to close/free the SDL_RWops before returning, SDL_FALSE to leave it open\[char46] .TP .I type a filename extension that represent this data ("GIF", etc)\[char46] .SH RETURN VALUE Returns a new .BR IMG_Animation , or NULL on error\[char46] .SH AVAILABILITY This function is available since SDL_image 3\[char46]0\[char46]0\[char46] .SH SEE ALSO .BR IMG_LoadAnimation (3), .BR IMG_LoadAnimation_RW (3), .BR IMG_FreeAnimation (3)