SDL_UpdateRects(surface,num_rects,rects);
safefree(rects);
-SDL_Surface *
-surface_display ( surface )
- SDL_Surface *surface
- CODE:
- char* CLASS = "SDL::Surface";
-
- SDL_Surface *new_surface = SDL_DisplayFormat(surface);
- SDL_FreeSurface(surface);
- RETVAL = new_surface;
- OUTPUT:
- RETVAL
-
-SDL_Surface *
-surface_display_alpha ( surface )
- SDL_Surface *surface
- CODE:
- char* CLASS = "SDL::Surface";
- SDL_Surface *new_surface = SDL_DisplayFormatAlpha(surface);
- SDL_FreeSurface(surface);
- RETVAL = new_surface;
- OUTPUT:
- RETVAL
-
Uint16
surface_pitch( surface )
SDL_Surface *surface
CODE:
SDL_UpdateRect(surface,x,y,w,h);
+SDL_Surface *
+DisplayFormat ( surface )
+ SDL_Surface *surface
+ CODE:
+ char* CLASS = "SDL::Surface";
+ RETVAL = SDL_DisplayFormat(surface);
+ OUTPUT:
+ RETVAL
+
+SDL_Surface *
+DisplayFormatAlpha ( surface )
+ SDL_Surface *surface
+ CODE:
+ char* CLASS = "SDL::Surface";
+ RETVAL = SDL_DisplayFormatAlpha(surface);
+ OUTPUT:
+ RETVAL
+
=for comment
Comment out for now as it does not compile
OUTPUT:
RETVAL
-SDL_Surface *
-DisplayFormat ( surface )
- SDL_Surface *surface
- CODE:
- RETVAL = SDL_DisplayFormat(surface);
- OUTPUT:
- RETVAL
-
-SDL_Surface*
-DisplayFormatAlpha ( surface )
- SDL_Surface *surface
- CODE:
- RETVAL = SDL_DisplayFormatAlpha(surface);
- OUTPUT:
- RETVAL
-
SDL_Surface*
ConvertRGB ( surface )
SDL_Surface * surface
pass 'did this pass';
-my $image_format = $image->display;
+my $image_format = SDL::DisplayFormat($image);
isa_ok( $image_format, 'SDL::Surface' );
-my $image_format_alpha = $image->display_alpha;
+my $image_format_alpha = SDL::DisplayFormatAlpha($image);
isa_ok( $image_format_alpha, 'SDL::Surface' );
my $app_pixel_format = $app->format;