ttfWasInit function
Check if SDL_ttf is initialized.
This reports the number of times the library has been initialized by a call to TTF_Init(), without a paired deinitialization request from TTF_Quit().
In short: if it's greater than zero, the library is currently initialized and ready to work. If zero, it is not initialized.
Despite the return value being a signed integer, this function should not return a negative number.
\returns the current number of initialization calls, that need to eventually be paired with this many calls to TTF_Quit().
\since This function is available since SDL_ttf 2.0.12.
\sa TTF_Init \sa TTF_Quit
extern DECLSPEC int SDLCALL TTF_WasInit(void)
Implementation
int ttfWasInit() {
final ttfWasInitLookupFunction = libSdl2Ttf
.lookupFunction<Int32 Function(), int Function()>('TTF_WasInit');
return ttfWasInitLookupFunction();
}