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);
+
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.
#################### main pod documentation end ###################
-bootstrap SDL::Rect $VERSION;
-
+bootstrap SDL::Rect;
1;
# The preceding line will help the module return a true value