chickadee » sdl2-ttf » current-version

compiled-versionprocedure
current-versionprocedure

Returns a list of three nonnegative integers, indicating a version number of SDL_ttf. For example, the list (2 0 0) indicates SDL_ttf 2.0.0.

  • compiled-version returns the version of SDL_ttf that the sdl2-ttf egg was compiled with.
  • current-version returns the version of SDL_ttf that the sdl2-ttf egg is currently using.

For example, the user may have compiled the sdl2-ttf egg with SDL_ttf 2.0.0, then later upgraded SDL_ttf to 2.1.0, but not yet recompiled the sdl2-ttf egg with the new version. In such a case, compiled-version would return (2 0 0), and current-version would return (2 1 0). But, features from the new version would not be available until the user recompiles the sdl2-ttf egg.

See SDL_TTF_VERSION and TTF_Linked_Version.