SFML community forums

Help => General => Topic started by: KZ on September 20, 2012, 12:17:28 pm

Title: Version function
Post by: KZ on September 20, 2012, 12:17:28 pm
Hi!

Great job, this library.
I use it and I make the library version appear in the 'About' sections of my softwares.

But I am a bit lazy and I did not find any function that returns the version of the SFML lib used.

Does it exist?
Otherwise, is it planned to implement one in the future versions of SFML libs? (it could be a good idea)

Thanks.
KZ.
Title: Re: Version function
Post by: eXpl0it3r on September 20, 2012, 12:22:18 pm
Yes SFML_VERSION_MAJOR and SFML_VERSION_MINOR see here (https://github.com/SFML/SFML/blob/master/include/SFML/Config.hpp).
Title: Re: Version function
Post by: KZ on September 20, 2012, 12:27:45 pm
Sorry I didn't find it.
I really searched for it, though.

Thanks a lot!
KZ
Title: Re: Version function
Post by: Nexus on September 20, 2012, 12:47:53 pm
I don't know whether the macros are mentioned anywhere in the documentation or the tutorials, so you actually already have to know it ;)