Tao.Sdl SDK Documentation

SdlTtf.TTF_WasInit Method 

Check if the TTF engine is initialized.

[Visual Basic]
Public Shared Function TTF_WasInit() As Integer
[C#]
public static int TTF_WasInit();

Return Value

Remarks

Query the initilization status of the truetype font API.

You may, of course, use this before TTF_Init to avoid initilizing twice in a row. Or use this to determine if you need to call TTF_Quit.

Binds to C-function in SDL_ttf.h

            int TTF_WasInit()
            

Example

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

See Also

SdlTtf Class | Tao.Sdl Namespace | TTF_Init | TTF_Quit