Android的 - 教程OpenGL ES 2.0的使用NDK? [英] Android - tutorials for OpenGL ES 2.0 using the NDK?
问题描述
我想学习的OpenGL ES 2.0
在Android和我已经找到了教程几乎所有使用 SDK与Java
。我想使用原生code然而,所以我想通过NDK做到这一点。
唯一的教程/例子中,我发现是样品,东西在 NDK
本身。
我在哪里可以找到一些 NDK的OpenGL ES 2.0
教程?
如果没有很好的教程在那里,是有可能使用Java 的OpenGL
教程来学习如何使用它在NDK中呢?例如做的方法图1:1从Java到本机
我已经创建了如何结合UI在Java中完成与本地NDK code,做所有的OpenGL渲染一个例子
见code在 https://github.com/tsaarni/android -native-EGL-例如
I'm looking to learn OpenGL ES 2.0
on Android and the tutorials I've found are nearly all for using the SDK with Java
. I want to use native code however so I want to do it through the NDK.
The only tutorial/example I've found is the sample-stuff in the NDK
itself.
Where can I find some NDK OpenGL ES 2.0
tutorials?
If there are no good tutorials out there, is it possible to use the Java OpenGL
tutorials to learn how to use it in the NDK as well? For example do the methods map 1:1 from java to native?
I've created an example on how to combine UI done in Java with native NDK code that does all the OpenGL rendering. It is possible to do without resorting to GLSurfaceView and JNI calls for rendering each frame like done in the NDK sample.
See the code at https://github.com/tsaarni/android-native-egl-example
这篇关于Android的 - 教程OpenGL ES 2.0的使用NDK?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!