SDL_ttf

SDL_ttf > Functions > General

TTF_WasInit

int TTF_WasInit()

Query the initialization status of the truetype font API. You may, of course, use this before TTF_Init to avoid initializing twice in a row. Or use this to determine if you need to call TTF_Quit.

if(!TTF_WasInit() && TTF_Init()==-1) {
    printf("TTF_Init: %s\n", TTF_GetError());
    exit(1);
}

See Also

TTF_Init, TTF_Quit

SDL_ttf_copy/Functions/General/TTF_WasInit (last edited 2009-02-25 23:12:18 by sign-4d0949c8)