RETVAL = SDL_ConvertSurface(src, fmt, flags);
OUTPUT:
RETVAL
+
+
+SDL_Surface *
+video_display_format ( surface )
+ SDL_Surface *surface
+ CODE:
+ char* CLASS = "SDL::Surface";
+ RETVAL = SDL_DisplayFormat(surface);
+ OUTPUT:
+ RETVAL
+
+SDL_Surface *
+video_display_format_alpha ( surface )
+ SDL_Surface *surface
+ CODE:
+ char* CLASS = "SDL::Surface";
+ RETVAL = SDL_DisplayFormatAlpha(surface);
+ OUTPUT:
+ RETVAL
+
use Test::More;
use SDL::Rect;
-plan ( tests => 24);
+plan ( tests => 26);
use_ok( 'SDL::Video' );
unlock_surface
lock_surface
convert_surface
+ display_format
+ display_format_alpha
/;
isa_ok(SDL::Video::convert_surface( $display , $hwdisplay->format, SDL_SRCALPHA), 'SDL::Surface', '[convert_surface] Checking if we get a surface ref back');
+isa_ok(SDL::Video::display_format( $display ), 'SDL::Surface', '[display_format] Returns a SDL::Surface');
+isa_ok(SDL::Video::display_format_alpha( $display ), 'SDL::Surface', '[display_format_alpha] Returns a SDL::Surface');
my @left = qw/
get_gamma_ramp
get_RGB
get_RGBA
- display_format
- display_format_alpha
load_BMP
save_BMP
set_color_key