X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=exp%2FSDL%2FRect%2Flib%2FSDL%2FRect.pm;h=77cd10834fb29619589bb3351c280c776654fa6c;hb=646b35594278095f62d30b0fbd96c3d5c4e93012;hp=6ad6abda065fb59412b2ec86e497fd7807604f9f;hpb=9cf69d41c40481a6139c1341d7f4809d349dfccd;p=sdlgit%2FSDL_perl.git diff --git a/exp/SDL/Rect/lib/SDL/Rect.pm b/exp/SDL/Rect/lib/SDL/Rect.pm index 6ad6abd..77cd108 100644 --- a/exp/SDL/Rect/lib/SDL/Rect.pm +++ b/exp/SDL/Rect/lib/SDL/Rect.pm @@ -2,12 +2,11 @@ package SDL::Rect; use strict; - use vars qw($VERSION @ISA @EXPORT); + use vars qw($VERSION @ISA); $VERSION = '0.01'; - require Exporter; require DynaLoader; - @ISA = qw(Exporter DynaLoader); - @EXPORT = qw(RectX RectY RectW RectH); + @ISA = qw(DynaLoader); + @@ -32,9 +31,12 @@ See Also : sub new { - return NewRect(); -} + my $self = shift; + my ($x, $y, $w, $h) = @_; + $self = \SDL::Rect::NewRect($x, $y, $w, $h); + return $self; +} #################### main pod documentation begin ################### ## Below is the stub of documentation for your module. @@ -97,8 +99,7 @@ perl(1). #################### main pod documentation end ################### -bootstrap SDL::Rect $VERSION; - +bootstrap SDL::Rect; 1; # The preceding line will help the module return a true value