Skip to content

Commit

Permalink
docs for surface_xy(), surface_size() and surface_size_xy()
Browse files Browse the repository at this point in the history
  • Loading branch information
FROGGS committed Mar 20, 2011
1 parent 30e8db3 commit 578f47c
Showing 1 changed file with 11 additions and 35 deletions.
46 changes: 11 additions & 35 deletions lib/pods/SDL/GFX/Rotozoom.pod
Expand Up @@ -65,47 +65,23 @@ Example:


=head2 surface_xy =head2 surface_xy


SDL_Surface * my $new_surface = SDL::GFX::Rotozoom::surface_xy( $surface, $angle, $zoom_x, $zoom_y, $smooth );
gfx_roto_surface_xy(src, angle, zoomx, zoomy, smooth)
SDL_Surface * src Same as L<SDL::GFX::Rotozoom::surface|/surface> but you can specify the zoomlevel for x and y separately.
double angle
double zoomx
double zoomy
int smooth
PREINIT:
char *CLASS = "SDL::Surface";
CODE:
RETVAL = rotozoomSurfaceXY(src, angle, zoomx, zoomy, smooth);
OUTPUT:
RETVAL


=head2 surface_size =head2 surface_size


void my ($new_width, $new_height) = @{ SDL::GFX::Rotozoom::surface_size( $width, $height, $angle, $zoom ) };
gfx_roto_surface_size(width, height, angle, zoom, dstwidth, dstheight)
int width C<surface_size> will give you the width and height of an rotating/zoom operation for the given C<$width> and C<$height>.
int height Helpful for knowing the surface size before actually do the rotating/zoom operation.
double angle
double zoom
int *dstwidth
int *dstheight
CODE:
rotozoomSurfaceSize(width, height, angle, zoom, dstwidth, dstheight);


=head2 surface_size_xy =head2 surface_size_xy


void my ($new_width, $new_height) = @{ SDL::GFX::Rotozoom::surface_size_xy( $width, $height, $angle, $zoom_x, $zoom_y ) };
gfx_roto_surface_size_xy(width, height, angle, zoomx, zoomy, dstwidth, dstheight)
int width Same as L<SDL::GFX::Rotozoom::surface_size|/surface_size> but you can specify the zoomlevel for x and y separately.
int height
double angle
double zoomx
double zoomy
int *dstwidth
int *dstheight
CODE:
rotozoomSurfaceSizeXY(width, height, angle, zoomx, zoomy, dstwidth, dstheight);

=head2 zoom_surface =head2 zoom_surface


SDL_Surface * SDL_Surface *
Expand Down

0 comments on commit 578f47c

Please sign in to comment.