Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re^2: Perl graphics engine?

by serrix (Initiate)
on Aug 03, 2009 at 22:24 UTC ( [id://785575]=note: print w/replies, xml ) Need Help??


in reply to Re: Perl graphics engine?
in thread Perl graphics engine?

Hmmm that'd make sense... Forgot about SDL and haven't used it much previously.
What about making a simple gui for the project? Would SDL do this easily or should i use GTK/QT or something like that?

If you haven't guessed, i'm more windows then linux atm so am fairly ignorant of the commonly used tools still.

Thanks for your help.

Replies are listed 'Best First'.
Re^3: Perl graphics engine?
by serrix (Initiate) on Aug 03, 2009 at 22:26 UTC
    Never mind, looks like it can be done with SDL :)
Re^3: Perl graphics engine?
by Taulmarill (Deacon) on Aug 04, 2009 at 07:51 UTC
    If you want to create GUIs, you might want to look at Tk and/or Wx. Bot are GUI toolkits which will work on multiple OSes and have libraries for different programming languages as well.

    Also, if you want to build graphics intense applications, SDL sure is one way to go, but if you come from C++ you might be disappointed by the performance, interpreted languages like Perl, Ruby or Python deliver.
      but if you come from C++ you might be disappointed by the performance,

      That's true, but probably not to the extent you imagine. The OpenGL module has "comparable" performance to C, according to these benchmarks: http://graphcomp.com/opengl/index.cgi?v=0111s3B1&r=s3m3.

      I second the comments about Tk and Wx. You might also like to look at GtkPerl (it's cross-platform).

        The performance of the library itself will be comparable, yes. But if you want to do some more involved calculations (say e.g. precise collision detection) in Perl, it may slow down the program substantially. Perl is just not meant for that. But we are lucky in the way that Perl allows for Modules written in C and even writing single subroutines in C or C++ quite painlessly via Inline::C(++).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://785575]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2024-03-29 08:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found