Search code examples
javacomvideodirectx

Is DirectX on Java possible?


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.


Solution

  • 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.