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.
Java does not provide bindings for either OpenGL or DirectX as part of the standard library.
Effective in October 2020, Minecraft will no longer be updated or supported on Gear VR, Windows 10 Mobile, Android devices with less than 768MB of RAM, iOS devices running iOS 10 or below, or video cards that only support DirectX 10.1 or below.
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.
There seems to be a standard API about dealing with 3D inside Java.
It probably uses some kind of accelerating technology, may be even DirectX.
But I'm not sure about direct video support in this framework.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With