Can the Android phone use the windows DirectX library?

六眼飞鱼酱① 提交于 2019-11-29 19:57:47

问题


I have some functions which draws the game screen using the Direct X library in Windows. So, I am trying to use the functions in Android phone using the ndk. But I have some problems. Dose the Android phone which use the Java recognize the Direct X functions? If it is possible, then I must have some controls about it? I want your help...


回答1:


Android (and iOS as well) doesn't support DirectX but OpenGL ES. Check out 3D with OpenGL on the Android developer site.




回答2:


Android uses a linux kernel, not a windows one. So I'd suspect no.




回答3:


OpenGL is pretty similar to DirectX it doesn't take too much effort to convert between the 2. Failing that you could probably find the implementation in the Wine source code on how they handle DirectX calls and pass them to OpenGL.




回答4:


No, because Android is based on Linux Kernel, whch supports OpenGL.



来源:https://stackoverflow.com/questions/7372039/can-the-android-phone-use-the-windows-directx-library

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!