SDL_ttf

SDL_ttf > Functions > General

TTF_Linked_Version

const SDL_version *TTF_Linked_Version()
void TTF_VERSION(SDL_version *compile_version)

This works similar to SDL_Linked_Version and SDL_VERSION. Using these you can compare the runtime version to the version that you compiled with.

SDL_version compile_version, *link_version;
TTF_VERSION(&compile_version);
printf("compiled with SDL_ttf version: %d.%d.%d\n", 
        compile_version.major,
        compile_version.minor,
        compile_version.patch);
link_version=TTF_Linked_Version();
printf("running with SDL_ttf version: %d.%d.%d\n", 
        link_version->major,
        link_version->minor,
        link_version->patch);

See Also

TTF_Init

SDL_ttf/Functions/General/TTF_Linked_Version (last edited 2008-04-17 08:18:38 by localhost)