Android/OpenGL ES texture maps

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

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.

About James

I'm just a person who likes writing software in their spare time. I'm not an "indie games developer" and am not trying to escape my day job and live in the happy world of games dev. I'm more like one of those people that used to write games in their spare time in the 80s. My stuff would be PD or Shareware if this were the 80s or 90s. It's good to comment on the posts in here :)