本文介紹了Java 上的 DirectX 可能嗎?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來(lái)一起學(xué)習(xí)吧!
問題描述
有沒有在 Java 中使用 DirectX 的簡(jiǎn)單方法?特別是 DirectX 的視頻 API.
Is there an easy way to use DirectX in Java? In particular, DirectX's video APIs.
我知道 C# 可能是一個(gè)更自然的選擇,但我想要做一些如此反常的事情有我不正當(dāng)?shù)睦碛?
I know that C# might be a more natural choice, but I have my devious reasons for wanting to do something so perverse.
推薦答案
我不知道簡(jiǎn)單,但你總是可以使用 JNI 來(lái)加載 DirectX 庫(kù)并調(diào)用方法.
I don't know about easy, but you could always use JNI to load the DirectX libs and invoke the methods.
使用 Swig 之類的東西,您可以自動(dòng)生成大量代碼.
Using something like Swig you could auto-generate a lot of the code.
但不確定這樣的事情有多可行.
Not sure how workable something like that would be though.
這篇關(guān)于Java 上的 DirectX 可能嗎?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!
【網(wǎng)站聲明】本站部分內(nèi)容來(lái)源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!