[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

3.1.2 TTF_Init

int TTF_Init()

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

Returns: 0 on success, -1 on any error

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

See Also:
3.1.4 TTF_Quit, 3.1.3 TTF_WasInit



This document was generated on November, 13 2009 using texi2html