IMG_LoadPNG_IO3
Load a png image directly.
Usage
#include "SDL3_image/SDL_image.h"
SDL_Surface * IMG_LoadPNG_IO(SDL_IOStream *src);
Header file
Defined in SDL3_image/SDL_image.h
Overview
If you know you definitely have a PNG 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.
Function parameters
- src
-
an SDL_IOStream to load image data from.
Return value
Returns SDL surface, or NULL on error.