Droid OpenGL ES 2.0
I have a Nexus One and have successfully gotten OpenGL ES 2.0 up and running. I wanted to see if I could find someone with a rooted Droid who'd be willing to give me some info so I can find out if/how the same thing will work on it.
So far I have what I need. For those of you who have a Droid and want to start working with OpenGL ES 2.0 on it: You can do so through the Android NDK with a little hackery.
-You'll need to pull /system/lib/egl from your phone and put that in the ndk directory at: (ndklocation)/build/platforms/android-4/arch-arm/usr/lib/.
-Then download the opengl es 2.0 headers(you can find that at
http://www.khronos.org/registry/gles/) and put gl2.h, gl2ext.2, and gl2platform.h in (ndklocation)/build/platforms/android-4/arch-arm/include/GLES2. Put khrplatform.h in "/"/"/"/"/"/KHR.
-Then setup your application to link to libGLESv2_POWERVR_SGX530_121.so by adding it to LOCAL_LDLIBS in your Android.mk file.
-Then just include gl2.h and you can start using 2.0!
If you want to build for the Nexus One, you'll have to get our libGLESv2_adreno200.so, which I'll make available here when I get hope today. Basically, you'll have to link against that instead.
If you want your app to work on both, you'll have to do some trickery with having two separate libraries so that if it's running on the Nexus One then it'll use it's library. I might work on making an open source library that'll load the right library so everyone can just load that before loading their own, but it'll be time consuming and I do have my own large project I'm working on, so I wouldn't count on that.
Well, us Nexus One folks shouldn't get all the fun, right? You'll now find a .zip containing an apk for an OpenGL ES 2.0 app which should(assuming what everyone here told me before was true) work on the Droid. It's pretty basic, just displays a triangle with some custom fragment shader graphics applied, but it does prove the ES 2.0 is running. Let me know if there's any problems(post it here, I'd rather not get 100000000 PMs/emails). Aside from that, enjoy!
Oh and I threw in the Nexus One ES 2.0 shared object file just in case anyone wants it.