mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
Removed an unnecessary definition of the new function.
git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/branches/sfml2@1603 4e206d99-4929-0410-ac5d-dfc041789085
This commit is contained in:
parent
8c3ec2b353
commit
0d2581a4df
@ -241,18 +241,10 @@ static VALUE Vector2_Initialize( VALUE self, VALUE someArgs )
|
|||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE Vector2_New( int anArgCount, VALUE * someArgs, VALUE aKlass )
|
|
||||||
{
|
|
||||||
return rb_call_super( anArgCount, someArgs );
|
|
||||||
}
|
|
||||||
|
|
||||||
void Init_Vector2( void )
|
void Init_Vector2( void )
|
||||||
{
|
{
|
||||||
globalVector2Class = rb_define_class_under( GetNamespace(), "Vector2", rb_cObject );
|
globalVector2Class = rb_define_class_under( GetNamespace(), "Vector2", rb_cObject );
|
||||||
|
|
||||||
// Class methods
|
|
||||||
rb_define_singleton_method( globalVector2Class, "new", FUNCPTR( Vector2_New ), -1 );
|
|
||||||
|
|
||||||
// Instance methods
|
// Instance methods
|
||||||
rb_define_method( globalVector2Class, "initialize", FUNCPTR( Vector2_Initialize ), -2 );
|
rb_define_method( globalVector2Class, "initialize", FUNCPTR( Vector2_Initialize ), -2 );
|
||||||
rb_define_method( globalVector2Class, "eql?", FUNCPTR( Vector2_Initialize ), 1 );
|
rb_define_method( globalVector2Class, "eql?", FUNCPTR( Vector2_Initialize ), 1 );
|
||||||
|
@ -267,18 +267,10 @@ static VALUE Vector3_Initialize( VALUE self, VALUE someArgs )
|
|||||||
return self;
|
return self;
|
||||||
}
|
}
|
||||||
|
|
||||||
VALUE Vector3_New( int anArgCount, VALUE * someArgs, VALUE aKlass )
|
|
||||||
{
|
|
||||||
return rb_call_super( anArgCount, someArgs );
|
|
||||||
}
|
|
||||||
|
|
||||||
void Init_Vector3( void )
|
void Init_Vector3( void )
|
||||||
{
|
{
|
||||||
globalVector3Class = rb_define_class_under( GetNamespace(), "Vector3", rb_cObject );
|
globalVector3Class = rb_define_class_under( GetNamespace(), "Vector3", rb_cObject );
|
||||||
|
|
||||||
// Class methods
|
|
||||||
rb_define_singleton_method( globalVector3Class, "new", FUNCPTR( Vector3_New ), -1 );
|
|
||||||
|
|
||||||
// Instance methods
|
// Instance methods
|
||||||
rb_define_method( globalVector3Class, "initialize", FUNCPTR( Vector3_Initialize ), -2 );
|
rb_define_method( globalVector3Class, "initialize", FUNCPTR( Vector3_Initialize ), -2 );
|
||||||
rb_define_method( globalVector3Class, "eql?", FUNCPTR( Vector3_Initialize ), 1 );
|
rb_define_method( globalVector3Class, "eql?", FUNCPTR( Vector3_Initialize ), 1 );
|
||||||
|
Loading…
Reference in New Issue
Block a user