RETVAL
int
-surface_blit ( src, src_rect, dest, dest_rect )
- SDL_Surface *src
- SDL_Surface *dest
- SDL_Rect *src_rect
- SDL_Rect *dest_rect
- CODE:
- RETVAL = SDL_BlitSurface(src,src_rect,dest,dest_rect);
- OUTPUT:
- RETVAL
-
-int
surface_fill_rect ( dest, dest_rect, color )
SDL_Surface *dest
SDL_Color *color
OUTPUT:
RETVAL
+int
+BlitSurface ( src, src_rect, dest, dest_rect )
+ SDL_Surface *src
+ SDL_Surface *dest
+ SDL_Rect *src_rect
+ SDL_Rect *dest_rect
+ CODE:
+ RETVAL = SDL_BlitSurface(src,src_rect,dest,dest_rect);
+ OUTPUT:
+ RETVAL
=for comment
OUTPUT:
RETVAL
-int
-BlitSurface ( src, src_rect, dest, dest_rect )
- SDL_Surface *src
-
- SDL_Surface *dest
-
- SDL_Rect *src_rect
-
- SDL_Rect *dest_rect
- CODE:
- RETVAL = SDL_BlitSurface(src,src_rect,dest,dest_rect);
- OUTPUT:
- RETVAL
-
=cut
int
ok( 1, 'Managed to fill_rect' );
my $small_rect = SDL::Rect->new( 0, 0, 64, 64 );
-$image->blit( $small_rect, $surface, $small_rect );
+SDL::BlitSurface($image, $small_rect, $surface, $small_rect );
ok( 1, 'Managed to blit' );
#my $image_format = $surface->display;