ttfInit function
Initialize SDL_ttf.
You must successfully call this function before it is safe to call any other function in this library, with one exception: a human-readable error message can be retrieved from TTF_GetError() if this function fails.
SDL must be initialized before calls to functions in this library, because this library uses utility functions from the SDL library.
It is safe to call this more than once; the library keeps a counter of init calls, and decrements it on each call to TTF_Quit, so you must pair your init and quit calls.
\returns 0 on success, -1 on error.
\since This function is available since SDL_ttf 2.0.12.
\sa TTF_Quit
extern DECLSPEC int SDLCALL TTF_Init(void)
Implementation
int ttfInit() {
final ttfInitLookupFunction =
libSdl2Ttf.lookupFunction<Int32 Function(), int Function()>('TTF_Init');
return ttfInitLookupFunction();
}