From a951ee4581596d34a30302556a04516d834f4d8a Mon Sep 17 00:00:00 2001 From: groogy Date: Wed, 17 Nov 2010 08:16:11 +0000 Subject: [PATCH] Modified some comments in Vector2.cpp and added comments to Color.cpp git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1665 4e206d99-4929-0410-ac5d-dfc041789085 --- bindings/ruby/sfml-graphics/graphics/Color.cpp | 8 ++++++++ bindings/ruby/sfml-system/system/Vector2.cpp | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/bindings/ruby/sfml-graphics/graphics/Color.cpp b/bindings/ruby/sfml-graphics/graphics/Color.cpp index 0fc51cb91..3fa4a5624 100644 --- a/bindings/ruby/sfml-graphics/graphics/Color.cpp +++ b/bindings/ruby/sfml-graphics/graphics/Color.cpp @@ -141,6 +141,14 @@ static VALUE Color_Equal( VALUE self, VALUE anArgument ) return Qfalse; } +/* call-seq: + * Color.new() -> color + * Color.new([r,g,b,a=255]) -> color + * Color.new(vector) -> color + * Color.new(r,g,b,a=255) -> color + * + * Create a new color instance. + */ static VALUE Color_Initialize( int argc, VALUE * args, VALUE self ) { rb_iv_set( self, "@r", INT2NUM( 0 ) ); diff --git a/bindings/ruby/sfml-system/system/Vector2.cpp b/bindings/ruby/sfml-system/system/Vector2.cpp index aed44232a..bbf2f2bd5 100644 --- a/bindings/ruby/sfml-system/system/Vector2.cpp +++ b/bindings/ruby/sfml-system/system/Vector2.cpp @@ -197,9 +197,9 @@ static VALUE Vector2_StrictEqual( VALUE self, VALUE anArgument ) } /* call-seq: - * Vector2.new() -> vector + * Vector2.new() -> vector * Vector2.new([x,y]) -> vector - * Vector2.new(vector) -> vector + * Vector2.new(vector) -> vector * Vector2.new(x,y) -> vector * * Create a new vector instance.