After much Googling, testing, head scratching and the odd SVN reversion I’ve managed to texture-map things. Specifically a triangle-strip that draws a square. So I drew a screenful, and implemented some basic tile-based scrolling. I also found out how to capture screenshots from my PC.
According to the Android Tricks blog, all it requires is launching the ddms tool, then clicking “Device” and choosing “Screenshot…”. That’s a bit easier than pressing printscreen and pasting the screenshot into Irfanview.
I also discovered the Android emulator has issues. Issues where it stops accepting debugging connections, or refuses to load your application and instead brings the old version forward. Or it’ll spontaneously reboot if you annoy it too much. Eclipse is a bit wonky at times too.
Once I’d figured it out, texture mapping was quite easy. Figuring it out wasn’t so easy but the following websites were helpful
- NeHe Android Ports
- iPhone Development (It has a section on u,v texture co-ordinates)
Since this seems so wonderfully undocumented I might put something together later that explains it. There’s quite a lot of OpenGL ES stuff out there for texturing things, but hardly anything explaining how to get a texture into an Android application in the first place.

