chickadee » sdl2 » egg-version


Returns a list of three nonnegative integers, indicating the version number of the sdl2 egg itself, which is independent of the version number of SDL. For example, the list '(1 2 3) means sdl2 egg version 1.2.3.

NOTE: This procedure is available in sdl2 egg version 0.2.0 or higher. If you want to check the egg version, but users of your program might be using earlier than egg version 0.2.0, you can add the following code to your program. It will define the egg-version procedure only if using an earlier version of the sdl2 egg.

(use (prefix sdl2 sdl2:))

#+(not sdl2-0.2.0+)
(define (sdl2:egg-version) '(0 1 1))

;; Usage:
(printf "You are using sdl2 egg version ~S.~%" (sdl2:egg-version))