From bbb8cbb25adcdc6419435fa0e9d64446a5142339 Mon Sep 17 00:00:00 2001 From: groogy Date: Mon, 15 Nov 2010 13:48:53 +0000 Subject: [PATCH] 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 --- bindings/ruby/sfml-window/window/Window.cpp | 1 + bindings/ruby/sfml-window/window/main.cpp | 3 --- bindings/ruby/sfml-window/window/main.hpp | 2 ++ 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/bindings/ruby/sfml-window/window/Window.cpp b/bindings/ruby/sfml-window/window/Window.cpp index db8b6ec5..9f950e18 100644 --- a/bindings/ruby/sfml-window/window/Window.cpp +++ b/bindings/ruby/sfml-window/window/Window.cpp @@ -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" ); diff --git a/bindings/ruby/sfml-window/window/main.cpp b/bindings/ruby/sfml-window/window/main.cpp index 6561e73f..2e2e7cfa 100644 --- a/bindings/ruby/sfml-window/window/main.cpp +++ b/bindings/ruby/sfml-window/window/main.cpp @@ -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 ) ); } } diff --git a/bindings/ruby/sfml-window/window/main.hpp b/bindings/ruby/sfml-window/window/main.hpp index 246590ac..db953c87 100644 --- a/bindings/ruby/sfml-window/window/main.hpp +++ b/bindings/ruby/sfml-window/window/main.hpp @@ -25,6 +25,8 @@ #include "ruby.h" +#define SFML_STATIC + VALUE GetNamespace( void ); // Ruby initiation function