Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 530
izb Avatar asked May 03 '09 14:05

izb


People also ask

Can Java use DirectX?

Java does not provide bindings for either OpenGL or DirectX as part of the standard library.

Can Minecraft use DirectX?

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.


2 Answers

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.

like image 133
Glen Avatar answered Sep 28 '22 11:09

Glen


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.

like image 33
m_vitaly Avatar answered Sep 28 '22 12:09

m_vitaly