Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask


by batkins (Chaplain)
on Dec 07, 2003 at 01:49 UTC ( #312832=perlquestion: print w/replies, xml ) Need Help??

batkins has asked for the wisdom of the Perl Monks concerning the following question:

Is there any way to use DirectX from Perl?
Are you sure it was a book? Are you sure it wasn't.....nothing?

Replies are listed 'Best First'.
Re: DirectX
by Old_Gray_Bear (Bishop) on Dec 07, 2003 at 04:12 UTC
    There is nothing that jumps out of CPAN, directly, but the Monastery has a Q&A on the "Windows GUI Interface", and there was a thread back in 00 with a Brother Monk who was working on XS bindings for DirectX -- "XS on Win32"

    Updated: corrected spelling/syntax.

    I Go Back to Sleep, Now.
Re: DirectX
by EricDB (Acolyte) on Dec 08, 2003 at 15:17 UTC
    There are SDL (Simple DirectMedia Layer) bindings for Perl. If you specifically require DirectX then this won't help you, but if you're interested in writing high-performance multimedia (i.e. games), then it certainly can. It has some nice features like platform independence (it sits on top of DirectX on Win32, but also works on Linux, Mac OS X, Mac Classic, BeOS, and a lot more). Unfortunately, the documentation is a little iffy (both on the SDL front as well as SDL-Perl). But it could be that I haven't looked in the right place yet.

    I've just gotten started with it, but so far the results are encouraging. You can write your entire program in Perl, and the interface to SDL appears to be clean and comprehensive. There's another PM thread discussing the subject.

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://312832]
Approved by davido
Front-paged by Courage
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (3)
As of 2022-12-09 01:39 GMT
Find Nodes?
    Voting Booth?

    No recent polls found