.... the advantage of SDL is it is fast writing to the screen.... but there is alot of overhead you need to do, to keep your visual objects persistent

... the canvas type widget, gives you persistence of objects..... and that makes programming easier, because you move your widgets around as entities, not just screen shapes

.... the other thing to consider is rotations, zooming, and semi-tranparencies

..... in Tk, you need to write your own rotations and zooms....no transparencies....there are examples previously posted....google for them

..... the Gnome2::Canvas is stable, but being deprecated , because it is not a full member of the GLib object system for Gtk2

.... the Gtk2 Goo::Canvas looks very promising, but is still in sort of beta development, and is missing many easy to use features

..... that leaves Tk::Zinc , as the best canvas alternative..... it runs on linux and windows..... and it handles groups, rotations, zooms etc very well....see zinc website

a small tutorial is at small illustrated intro to Zinc

...and the best example of gaming in Zinc is at Strangely addictive Tk::Zinc based game

.... the best way to get an idea of Zinc, is to run it's demo


I'm not really a human, but I play one on earth.
Old Perl Programmer Haiku

In reply to Re: 2d graphics in Perl by zentara
in thread 2d graphics in Perl by rjberry

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.