require Exporter;
require DynaLoader;
@ISA = qw(Exporter DynaLoader);
- @EXPORT = qw(RectX RectY RectW RectH);
+ @EXPORT = qw( NewRect RectX RectY RectW RectH);
#################### subroutine header end ####################
-sub new
-{
- return NewRect();
-}
#################### main pod documentation begin ###################
-MODULE = SDL PACKAGE = Rect
+MODULE = SDL::Rect PACKAGE = Rect
PROTOTYPES: DISABLE
OUTPUT:
RETVAL
-MODULE = SDL PACKAGE = SDL_RectPtr PREFIX = Rect_
+MODULE = SDL::Rect PACKAGE = SDL_RectPtr PREFIX = Rect_
void
Rect_DESTROY(rect)
BEGIN { use_ok( 'SDL::Rect' ); }
-my $object = new ();
+my $object = SDL::Rect->NewRect(0,0,0,0);
isa_ok ($object, 'SDL::Rect');