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; 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 ) static VALUE Color_Initialize( int argc, VALUE * args, VALUE self )
{ {
rb_iv_set( self, "@r", INT2NUM( 0 ) ); rb_iv_set( self, "@r", INT2NUM( 0 ) );