OUTPUT:
RETVAL
-
-SDL_Surface *
-surface_load (CLASS, filename )
- char* CLASS
- char* filename
- CODE:
- RETVAL = IMG_Load(filename);
- OUTPUT:
- RETVAL
-
int
surface_blit ( src, src_rect, dest, dest_rect )
SDL_Surface *src
OUTPUT:
RETVAL
+#ifdef HAVE_SDL_IMAGE
+
+SDL_Surface *
+IMG_Load ( filename )
+ char *filename
+ CODE:
+ char* CLASS = "SDL::Surface";
+ RETVAL = IMG_Load(filename);
+ OUTPUT:
+ RETVAL
+
+#endif
+
=for comment
Comment out for now as it does not compile
OUTPUT:
RETVAL
-#ifdef HAVE_SDL_IMAGE
-
-SDL_Surface *
-IMGLoad ( fname )
- char *fname
- CODE:
- RETVAL = IMG_Load(fname);
- OUTPUT:
- RETVAL
-
-#endif
-
SDL_Surface*
SurfaceCopy ( surface )
SDL_Surface *surface
is( $clip_rect->w, 640, 'clip_rect has width' );
is( $clip_rect->h, 320, 'clip_rect has height' );
-my $image = SDL::Surface->load('test/data/logo.png');
+my $image = SDL::IMG_Load('test/data/logo.png');
is( $image->w, 608, 'image has width' );
is( $image->h, 126, 'image has height' );