SDL Wiki
(This function is part of SDL_ttf, a separate library from SDL.)

TTF_WasInit

Check if SDL_ttf is initialized.

Syntax

int TTF_WasInit(void);

Return Value

Returns the current number of initialization calls, that need to eventually be paired with this many calls to TTF_Quit().

Remarks

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.

Version

This function is available since SDL_ttf 2.0.12.


CategoryAPI


[ edit | delete | history | feedback | raw ]

[ front page | index | search | recent changes | git repo | offline html ]

All wiki content is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).
Wiki powered by ghwikipp.