Skip to content
Example of an OpenGL ES buffer on Android
C Java Shell Makefile
Latest commit b6b7d4e Apr 13, 2015 @richq Rename package to com.example.glbuffer
TIL that there's already an app on the play store that's called
glbuffer.app! Calling it example makes more sense anyway.
Failed to load latest commit information.
jni Rename package to com.example.glbuffer Apr 13, 2015
res Rename package to com.example.glbuffer Apr 13, 2015
src/com/example/glbuffer Rename package to com.example.glbuffer Apr 13, 2015
.gitignore replace scons build with more standard ant setup Jan 4, 2013
.travis.yml
AndroidManifest.xml Rename package to com.example.glbuffer Apr 13, 2015
LICENSE
README.mkd
custom_rules.xml replace scons build with more standard ant setup Jan 4, 2013
prepare-android-build.sh Use a recent enough android target that's actually installed Apr 6, 2015

README.mkd

This is a complete example of how to use GLSurfaceView and native code to draw old-skool pixel buffer graphics on the Android platform. It is related to this blog post about the Android NDK.

To compile the code:

./prepare-android-build.sh SDK [NDK]
ant debug
  • SDK - path to the SDK (or can be set in ANDROID_SDK)
  • NDK - path to the NDK. If not given, then assumes the ndk is next to the SDK.
Something went wrong with that request. Please try again.