1/*  Part of the SDL3 pack for SWI-Prolog.
    2
    3    SDL_image — image loading via SDL3_image.
    4
    5    @see https://wiki.libsdl.org/SDL_image
    6*/
    7
    8:- module(sdl_image, [
    9    img_load/2
   10]).   11
   12:- use_module(library(sdl/foreign), [img_load_/2]).
 img_load(+File:string, -Surface:blob) is det
Load an image file into a surface blob. File is the path to an image; the resulting format is auto-detected.
See also
- https://wiki.libsdl.org/SDL_image/IMG_Load
   21img_load(Surface, File) :-
   22   must_be(string, File),
   23   must_be(var, Surface),
   24   img_load_(Surface, File)