http://www.perlmonks.org?node_id=598638


in reply to Alternatives to SDL

I think you asked this before, and I mentioned Tk or Tk::Zinc will do the job. Another possibilty now is the Gtk2::DrawingArea, which is more similar to SDL than a canvas. The Gtk2::DrawingArea can use Pango and Cairo to make exotic looking drawings. You need to use a little hack with a DrawingArea however, to maintain persistence of image, but you can glean that technique from the various demos. See Drawing with Perl/Gtk2 If you go with Gtk2, you can then incorporate Gtk2::Streamer (which is the general purpose high-quality actively developed multi-purpose player for Gtk2). However, I found that SDL::Audio was easier to understand than Gtk2::Streamer.

P.S. The newest promise on the horizon is Papyrus but there is no Perl port yet.


I'm not really a human, but I play one on earth. Cogito ergo sum a bum

Replies are listed 'Best First'.
Re^2: Alternatives to SDL
by shotgunefx (Parson) on Feb 06, 2007 at 21:19 UTC
    Thanks for the pointer. I don't think I asked quite the same question (maybe wrong though), but I don't recall feeling that the situation was completely hopeless until the last few days. I considered TK briefly (I haven't played with it in some time), but I didn't think I could get the control I want, but maybe I didn't look hard enough.

    I'll check out Gtk2, hopefully I'll have better luck. Otherwise, think I'll have to brush up on my C and give QT a try.

    -Lee
    "To be civilized is to deny one's nature."