我想编写一个用户空间应用程序,用它编写c或c++使用并在智能手机OpenGL上运行它。Android
在AndroidManifest.xml我有这些写:
android:label="Graphics/OpenGL ES/Compressed Texture"
android:label="Graphics/OpenGL ES/Cube Map"
android:label="Graphics/OpenGL ES/Frame Buffer Object"
android:label="Graphics/OpenGL ES/GLSurfaceView"
android:label="Graphics/OpenGL ES/OpenGL ES 2.0"
android:label="Graphics/OpenGL ES/Matrix Palette Skinning"
android:label="Graphics/OpenGL ES/Translucent GLSurfaceView"
我使用了本教程,但没有创建头文件,我找不到该esUtil.h文件。大多数教程中都包含 ( #include "esUtil.h")。
我假设那是.h 文件。总结一下我想做的步骤:
- 使用 OpenGL 编写 ac/cpp 代码。
- 将其构建为可执行文件
a.out。 - 用于
adb将其加载到手机中。 a.out在手机上运行。(假设我已经植根手机)
请注意,我不喜欢使用glut或NDK