Function loadSO

Loads the SDL2_image shared dynamic library, which wraps bindbc-sdl's loadSDLImage function

void loadSO (
  string libName = null
) @trusted;

Unless if bindbc-sdl is on static mode (by adding a BindSDL_Static version), this function will exist and must be called before any calls are made to the library. Otherwise, a segfault will happen upon any function calls.


libName name or path to look the SDL2_image SO/DLL for, otherwise null for default searching path


dsdl2.SDLException if failed to find the library