Removed some debugging output and added another alias for SFML::Window

git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1648 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
groogy 2010-11-15 13:48:53 +00:00
parent 262d9bfc1d
commit bbb8cbb25a
3 changed files with 3 additions and 3 deletions

View File

@ -533,6 +533,7 @@ void Init_Window( void )
rb_define_alias( globalWindowClass, "width", "getWidth" );
rb_define_alias( globalWindowClass, "opened?", "isOpened" );
rb_define_alias( globalWindowClass, "open?", "isOpened" );
rb_define_alias( globalWindowClass, "active=", "setActive" );

View File

@ -82,19 +82,16 @@ void CreateKeyEnum( void )
globalKeyNamespace = rb_define_module_under( globalSFMLNamespace, "Key" );
for( int index = static_cast< int >( sf::Key::A ); index <= sf::Key::Z; index++ )
{
std::cout << static_cast< char >( index ) << " => " << keyNamesLetters[ index - sf::Key::A ] << std::endl;
rb_define_const( globalKeyNamespace, keyNamesLetters[ index - sf::Key::A ], INT2FIX( index ) );
}
for( int index = static_cast< int >( sf::Key::Num0 ); index <= sf::Key::Num9; index++ )
{
std::cout << static_cast< char >( index ) << " => " << keyNamesNum[ index - sf::Key::Num0 ] << std::endl;
rb_define_const( globalKeyNamespace, keyNamesNum[ index - sf::Key::Num0 ], INT2FIX( index ) );
}
for( int index = static_cast< int >( sf::Key::Escape ); index <= sf::Key::Count; index++ )
{
std::cout << index << " => " << keyNamesMisc[ index - sf::Key::Escape ] << std::endl;
rb_define_const( globalKeyNamespace, keyNamesMisc[ index - sf::Key::Escape ], INT2FIX( index ) );
}
}

View File

@ -25,6 +25,8 @@
#include "ruby.h"
#define SFML_STATIC
VALUE GetNamespace( void );
// Ruby initiation function