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

3.1.1 IMG_Linked_Version

const SDL_version *IMG_Linked_Version()
void SDL_IMAGE_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.
These functions/macros do not require any library initialization calls before using them.

 
SDL_version compile_version;
const SDL_version *link_version=IMG_Linked_Version();
SDL_IMAGE_VERSION(&compile_version);
printf("compiled with SDL_image version: %d.%d.%d\n", 
        compile_version.major,
        compile_version.minor,
        compile_version.patch);
printf("running with SDL_image version: %d.%d.%d\n", 
        link_version->major,
        link_version->minor,
        link_version->patch);

See Also:
3.1.2 IMG_Init



This document was generated on November, 3 2009 using texi2html