RETVAL = SDL_SaveBMP(surface,filename);
OUTPUT:
RETVAL
+
+int
+fill_rect ( dest, dest_rect, pixel )
+ SDL_Surface *dest
+ SDL_Rect *dest_rect
+ Uint32 pixel
+ CODE:
+ RETVAL = SDL_FillRect(dest,dest_rect,pixel);
+ OUTPUT:
+ RETVAL
=cut
-int
-FillRect ( dest, dest_rect, pixel )
- SDL_Surface *dest
- SDL_Rect *dest_rect
- Uint32 pixel
- CODE:
- RETVAL = SDL_FillRect(dest,dest_rect,pixel);
- OUTPUT:
- RETVAL
-
Uint8
GetAppState ()
CODE:
my $pixel = SDL::Video::map_RGB( $pixel_format, 255, 127, 0 );
is( $pixel, 32767, '32767 pixel' );
-SDL::FillRect( $surface, SDL::Rect->new( 0, 0, 32, 32 ), $pixel );
+SDL::Video::fill_rect( $surface, SDL::Rect->new( 0, 0, 32, 32 ), $pixel );
ok( 1, 'Managed to fill_rect' );
my $small_rect = SDL::Rect->new( 0, 0, 64, 64 );
my $rect = SDL::Rect->new( 0, 0, $app->w, $app->h );
my $blue_pixel = SDL::Video::map_RGB( $app_pixel_format, 0x00, 0x00, 0xff );
-SDL::FillRect( $app, $rect, $blue_pixel );
+SDL::Video::fill_rect( $app, $rect, $blue_pixel );
SDL::Video::update_rect( $app, 0, 0, 0, 0 );
SDL::Video::update_rects( $app, $small_rect );
use Test::More;
use SDL::Rect;
-plan ( tests => 32);
+plan ( tests => 33);
use_ok( 'SDL::Video' );
get_RGBA
load_BMP
save_BMP
+ fill_rect
/;
can_ok ('SDL::Video', @done);
isa_ok($bmp_surface, 'SDL::Surface', '[load_BMP] returns an SDL::Surface');
unlink($bmp) if -f $bmp;
+my $pixel = SDL::Video::map_RGB( $display->format, 255, 127, 0 );
+SDL::Video::fill_rect( $display, SDL::Rect->new( 0, 0, 32, 32 ), $pixel );
+ok( 1, '[fill_rect] filled rect' );
+
my @left = qw/
get_gamma_ramp
set_clip_rect
get_clip_rect
blit_surface
- fill_rect
GL_load_library
GL_get_proc_address
GL_get_attribute
$grect->x($_ );
$grect->centery($_ * 3);
$grect->size( ($_ / 40) * $_, ($_/38) * $_ );
- SDL::FillRect( $app, $rect, $blue_pixel );
- SDL::FillRect( $app, $grect, $col_pixel );
+ SDL::Video::fill_rect( $app, $rect, $blue_pixel );
+ SDL::Video::fill_rect( $app, $grect, $col_pixel );
SDL::Video::update_rect($app, 0, 0, 640, 480);
SDL::delay(10);