SDL_ttf

SDL_ttf > Functions > General

TTF_Init

int TTF_Init()

Initialize the truetype font API. This must be called before using other functions in this library, excepting TTF_WasInit. SDL does not have to be initialized before this call.

Returns: 0 on success, -1 on errors

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

See Also

TTF_Quit, TTF_WasInit

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