IMG_LoadWEBPAnimation_IO(3)

πŸ’– NAME πŸ’–

IMG_LoadWEBPAnimation_IO β€” Load a WEBP animation directly. periodt. This is the IMG_LoadWEBPAnimation_IO(3) page from the SDL_image3 FUNCTIONS manual, and it’s giving β€œI know for a fact this is WEBP” energy, bestie. πŸ’…

✨ SYNOPSIS ✨

okay so here’s the exact include + signature, no cap:

#include <SDL3_image/SDL_image.h>

IMG_Animation * IMG_LoadWEBPAnimation_IO(SDL_IOStream *src);

πŸ¦‹ DESCRIPTION πŸ¦‹

If you know you definitely have a WEBP image, you can call this function, and it will skip SDL_image's file format detection routines β€” like, no little format-sniffing side quest, it just goes straight in. πŸŽ€

That said, the manual says it's generally better to use the abstract interfaces. Also, there is only an SDL_IOStream interface available here, bestie. That's the whole situation. πŸ’–

πŸŽ€ FUNCTION PARAMETERS πŸŽ€

  • src β€” an SDL_IOStream that data will be read from. That's the source stream, slay.

πŸ”₯ RETURN VALUE πŸ”₯

Returns a new IMG_Animation, or NULL on error. So if you get NULL, that's an error, no cap. 😭

🌈 AVAILABILITY 🌈

This function is available since SDL_image 3.0.0. iconic behavior. ✨

πŸ‘‘ SEE ALSO πŸ‘‘

go peek at these besties:


okay that’s the whole page, bestie! 🫢 source/version check: SDL_image, SDL_image 3.4.4. The footer has no date on it, so I’m not inventing one β€” periodt. bye! πŸ’–

πŸ“¦ where this page comes from