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