Function loadSO

Loads the SDL2_ttf shared dynamic library, which wraps bindbc-sdl's loadSDLTTF 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.

Parameters

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

Throws

dsdl2.SDLException if failed to find the library