Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

DirectX

by batkins (Chaplain)
on Dec 07, 2003 at 01:49 UTC ( [id://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" http://www.perlmonks.org/index.pl?node_id=47209

    Updated: corrected spelling/syntax.

    ----
    I Go Back to Sleep, Now.
    OGB
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?
Username:
Password:

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
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2024-04-20 00:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found