Is DirectX on Java possible?

izb picture izb · May 3, 2009 · Viewed 30.4k times · Source

Is there an easy way to use DirectX in Java? In particular, DirectX's video APIs.

I know that C# might be a more natural choice, but I have my devious reasons for wanting to do something so perverse.

Answer

Glen picture Glen · May 8, 2009

I don't know about easy, but you could always use JNI to load the DirectX libs and invoke the methods.

Using something like Swig you could auto-generate a lot of the code.

Not sure how workable something like that would be though.