}
my $self = SDL::SetVideoMode($w,$h,$d,$f)
- or croak SDL::geterror();
+ or croak SDL::get_error();
if ($ic and -e $ic) {
my $icon = new SDL::Surface -name => $ic;
}
sub error {
- return SDL::geterror();
+ return SDL::get_error();
}
sub warp ($$$) {
my $self = $class->SUPER::new($x, $y, $w, $h);
unless ($$self) {
#require Carp;
- croak SDL::GetError();
+ croak SDL::get_error();
}
bless $self, $class;
return $self;
$$self{-routine} = sub { &$func; $$self{-delay}};
}
$$self{-timer} = SDL::NewTimer($$self{-delay},$$self{-routine});
- croak "Could not create timer, ", SDL::geterror(), "\n"
+ croak "Could not create timer, ", SDL::get_error(), "\n"
unless ($self->{-timer});
bless $self,$class;
return $self;
PROTOTYPES : DISABLE
char *
-geterror ()
+get_error ()
CODE:
RETVAL = SDL_GetError();
OUTPUT:
my $display = SDL::Video::set_video_mode(640,480,32, SDL_SWSURFACE );
if(!$display){
- plan skip_all => 'Couldn\'t set video mode: '. SDL::geterror();
+ plan skip_all => 'Couldn\'t set video mode: '. SDL::get_error();
}
#diag('Testing SDL::Video');
my $hwdisplay = SDL::Video::set_video_mode(640,480,8, SDL_HWSURFACE );
if(!$hwdisplay){
- plan skip_all => 'Couldn\'t set video mode: '. SDL::geterror();
+ plan skip_all => 'Couldn\'t set video mode: '. SDL::get_error();
}
$value = SDL::Video::set_colors($hwdisplay, 0);