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
This commit is contained in:
groogy 2010-11-17 08:16:11 +00:00
parent 6f83501b27
commit a951ee4581
2 changed files with 10 additions and 2 deletions

View File

@ -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 ) );

View File

@ -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.