Added so that version information is available in the SFML namespace.

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1778 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
groogy 2011-01-26 21:51:34 +00:00
parent cf779be180
commit 2a79a3ec49
2 changed files with 5 additions and 0 deletions

View file

@ -44,6 +44,8 @@ void Init_system( void )
/* SFML namespace which contains the classes of this module. */
globalSFMLNamespace = rb_define_module( "SFML" );
rb_define_const(globalSFMLNamespace, "SystemLoaded", Qtrue);
rb_define_const(globalSFMLNamespace, "Version", rb_str_new2(LIB_VERSION));
rb_define_const(globalSFMLNamespace, "BindingVersion", rb_str_new2(BINDING_VERSION));
Init_Clock();
Init_Vector2();
Init_Vector3();