X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FSDL%2FTool%2FGraphic.pm;h=697089dfddc8e82cc0fb2fad8e26b16bbbeec312;hb=896b04ee008898e1c1edbdd432bedaa8643400dc;hp=45b82789bcd7935d849cb4dff243e1454eb4dcc2;hpb=7b6a53a1f5064ca5b8ab0243f7bcf6209e6bf5a4;p=sdlgit%2FSDL_perl.git diff --git a/lib/SDL/Tool/Graphic.pm b/lib/SDL/Tool/Graphic.pm index 45b8278..697089d 100644 --- a/lib/SDL/Tool/Graphic.pm +++ b/lib/SDL/Tool/Graphic.pm @@ -99,6 +99,8 @@ sub grayScale { sub invertColor { my ( $self, $surface ) = @_; + #Added because of strict if we needed global + #do $workingSurface init outside subs. my $workingSurface; if($surface->isa('SDL::Surface')) { $workingSurface = $$surface; @@ -127,46 +129,3 @@ croak "SDL::Tool::Graphic requires SDL_gfx support\n" 1; - -__END__; - -=pod - - - -=head1 NAME - -SDL::Tool::Graphic - -=head1 DESCRIPTION - -L is a module for zooming and rotating L objects. - -=head1 METHODS - -=head2 zoom ( surface, xzoom, yzoom, smooth ) - -C scales a L along the two axis independently. - -=head2 rotoZoom ( surface, angle, zoom, smooth ) - -C rotates and fixed axis zooms a L. - -=head2 grayScale ( surface ) - -C rotates and fixed axis zooms a L. - -=head2 invertColor ( surface ) - -C inverts the color of a . - - -=head1 AUTHOR - -Russell E. Valentine - -=head1 SEE ALSO - -L L - -=cut