my $init = defined $options{-init} ? $options{-init} :
SDL_INIT_EVERYTHING();
- SDL::Init($init);
+ SDL::init($init);
#SDL::Init(SDL::SDL_INIT_EVERYTHING());
use_ok('SDL::Overlay');
-SDL::Init(SDL_INIT_VIDEO);
+SDL::init(SDL_INIT_VIDEO);
my $display = SDL::SetVideoMode(640,480,32, SDL_SWSURFACE );
use SDL::Surface;
use SDL::PixelFormat;
-SDL::Init(SDL_INIT_VIDEO);
+SDL::init(SDL_INIT_VIDEO);
my $display = SDL::SetVideoMode(640,480,32, SDL_SWSURFACE );
pass 'did this pass';
-SDL::Delay(100);
+SDL::delay(100);
can_ok ('SDL::Video', @done);
#testing get_video_surface
-SDL::Init(SDL_INIT_VIDEO);
+SDL::init(SDL_INIT_VIDEO);
my $display = SDL::Video::set_video_mode(640,480,32, SDL_SWSURFACE );
SDL::FillRect( $app, $grect, $col_pixel );
SDL::UpdateRect($app, 0, 0, 640, 480);
- SDL::Delay(10);
+ SDL::delay(10);
}
- SDL::Delay(100);
+ SDL::delay(100);
my $ret = 0;
eval
{
- $ret = SDL::Init(SDL_INIT_AUDIO);
+ $ret = SDL::init(SDL_INIT_AUDIO);
};
return 1 if ($@ or $ret == -1);
return 0;
my $ret = 0;
eval
{
- $ret = SDL::Init(SDL_INIT_TIMER);
+ $ret = SDL::init(SDL_INIT_TIMER);
};
return 1 if ($@ or $ret == -1);
return 0;
isa_ok($timer, 'SDL::Timer');
-SDL::Delay(100);
+SDL::delay(100);
is ($fired, 1,'timer fired once');