CODE:
SDL_UnlockSurface(surface);
+
+SDL_Surface *
+video_convert_surface( src, fmt, flags)
+ SDL_Surface* src
+ SDL_PixelFormat* fmt
+ Uint32 flags
+ PREINIT:
+ char *CLASS = "SDL::Surface";
+ CODE:
+ RETVAL = SDL_ConvertSurface(src, fmt, flags);
+ OUTPUT:
+ RETVAL
use Test::More;
use SDL::Rect;
-plan ( tests => 23);
+plan ( tests => 24);
use_ok( 'SDL::Video' );
map_RGBA
unlock_surface
lock_surface
+ convert_surface
+
/;
can_ok ('SDL::Video', @done);
is( SDL::Video::map_RGB($hwdisplay->format, 10, 10 ,10) > 0, 1, '[map_RGB] maps correctly to 8-bit surface');
is( SDL::Video::map_RGBA($hwdisplay->format, 10, 10 ,10, 10) > 0, 1, '[map_RGBA] maps correctly to 8-bit surface');
+isa_ok(SDL::Video::convert_surface( $display , $hwdisplay->format, SDL_SRCALPHA), 'SDL::Surface', '[convert_surface] Checking if we get a surface ref back');
+
+
my @left = qw/
get_gamma_ramp
get_RGB
get_RGBA
- convert_surface
display_format
display_format_alpha
load_BMP