RETVAL
void
-surface_update_rect ( surface, x, y, w ,h )
- SDL_Surface *surface
- int x
- int y
- int w
- int h
- CODE:
- SDL_UpdateRect(surface,x,y,w,h);
-
-void
surface_update_rects ( surface, ... )
SDL_Surface *surface
CODE:
OUTPUT:
RETVAL
+void
+UpdateRect ( surface, x, y, w ,h )
+ SDL_Surface *surface
+ int x
+ int y
+ int w
+ int h
+ CODE:
+ SDL_UpdateRect(surface,x,y,w,h);
+
=for comment
Comment out for now as it does not compile
RETVAL
void
-UpdateRect ( surface, x, y, w ,h )
- SDL_Surface *surface
- int x
- int y
- int w
- int h
- CODE:
- SDL_UpdateRect(surface,x,y,w,h);
-
-void
UpdateRects ( surface, ... )
SDL_Surface *surface
CODE:
my $blue_pixel = SDL::MapRGB( $app_pixel_format, 0x00, 0x00, 0xff );
SDL::FillRect( $app, $rect, $blue_pixel );
-SDL::Surface::update_rect( $app, 0, 0, 0, 0 );
+SDL::UpdateRect( $app, 0, 0, 0, 0 );
diag( 'This is in surface : ' . SDL::Surface::get_pixels($app) );
SDL::FillRect( $app, $rect, $blue_pixel );
SDL::FillRect( $app, $grect, $col_pixel );
- SDL::Surface::update_rect($app, 0, 0, 640, 480);
+ SDL::UpdateRect($app, 0, 0, 640, 480);
SDL::Delay(10);
}