|We don't bite newbies here... much|
Failing to use SDLby grondilu (Pilgrim)
|on Jun 17, 2013 at 05:27 UTC||Need Help??|
grondilu has asked for the
wisdom of the Perl Monks concerning the following question:
I was reading SDL::Manual, and after having followed instructions for installation (with cpan), I tried the first examples.
Creating a window works. I get a black window with this basic code:
But if I try to draw something, such as a line (as in the book):
Then the screen stays totally black. No error message, no warning. I guess something is wrong with the installation of the library. Any idea on how I could fix that?
UPDATE: It seems that I can make things appear when I call $app->run();
It's not what is in the manual, though. And when I call this, I can't stop the processus anymore, not even with Ctrl-C :/