loadSO

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

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.

version(!BindSDL_Static)
@safe @trusted
static if(bindSDLImage)
void
loadSO
(
string libName = null
)

Parameters

libName string

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

Throws

dsdl2.SDLException if failed to find the library

Meta