$SDL::App::USING_OPENGL = 0;
}
- my $self = \SDL::SetVideoMode($w,$h,$d,$f)
+ my $self = SDL::SetVideoMode('SDL::Surface',$w,$h,$d,$f)
or croak SDL::GetError();
if ($ic and -e $ic) {
RETVAL
SDL_Surface *
-SetVideoMode ( width, height, bpp, flags )
+SetVideoMode ( CLASS, width, height, bpp, flags )
+ char* CLASS
int width
int height
int bpp
Uint32 flags
CODE:
- char* CLASS;
RETVAL = SDL_SetVideoMode(width,height,bpp,flags);
OUTPUT:
RETVAL
0x33,
);
-
my $grect = SDL::Game::Rect->new(10, 10, 30, 35);
foreach(0..80)
{
$app->fill_rect($rect, $blue);
$app->fill_rect($grect, $col);
-
- $app->update_rects($rect);
- $app->update_rects($grect);
- $app->sync;
+ SDL::Surface::update_rect($app, 0, 0, 0, 0);
}
sleep(1);