Refactored OpenGL ES 2.0 Sample for Android NDK
Monday, March 26, 2012, Modified: Tuesday, March 27, 2012 Refs
This sample separates the application-specific parts of the NDK OpenGL 2.0 sample out of the main body of code so you can start to play with OpenGL ES 2.0 on Android by hacking on one small C++ file (application.cpp).

Installation of the NDK
As a reminder, installation of the NDK is straightforward. All that is required is to download it and extract it wherever you prefer (next to the SDK being a good choice). The NDK is not backwards compatible, so you may need to update your SDK installation if you want to use the newest NDK (and the NDK is still evolving rapidly so that is not a bad idea). Obviously, if you want to try the NDK without disrupting a working SDK installation, you can grab an older NDK version that matches your existing SDK and use that.

See the NDK documentation and grab the download link here:
The Sample
Get the code here: ../../code/android/

To build it, follow the instructions at the NDK guide linked-to above. Note that you should run PATH_TO_YOUR_NDK/ndk-build from the commandline in the jni sub-directory of the project before doing a normal Eclipse build.

Try Buffer, a smarter way to share links and pictures by spreading your tweets and posts out over time. Sign up from this link and we both get extra features.

Home :: Items