SomeNetworkGuy has asked for the wisdom of the Perl Monks concerning the following question:
From the documentation, I'm trying to set video mode and get the returned surface.
my $screen_surface = SDL::Video::set_video_mode($screen_width, $screen_height, 32, SDL_ANYFORMAT) or die "$!\n";But I am getting this error when I run it.
No such file or directoryOut of curiosity I did this:
my $screen_surface = SDL::Video; $screen_surface->set_video_mode($screen_width, $screen_height, 32, SD +L_ANYFORMAT) or die $!;
And it told me how to use it...
Usage: SDL::Video::set_video_mode(width, height, bpp, flags) at ./test.pl line 16.Any ideas on how to go about troubleshooting this? I'm reasonably certain SDL Perl is installed properly, as I don't get errors upon 'using' the SDL modules.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Setting Video Mode in SDL
by Corion (Patriarch) on Nov 08, 2010 at 08:18 UTC | |
|
Re: Setting Video Mode in SDL
by Khen1950fx (Canon) on Nov 07, 2010 at 23:54 UTC | |
by SomeNetworkGuy (Sexton) on Nov 09, 2010 at 19:05 UTC | |
|
Re: Setting Video Mode in SDL
by PeterPeiGuo (Hermit) on Nov 07, 2010 at 23:16 UTC |