2D API or OpenGL ES for Android 2D game?

I plan to develop a 2D game for Android devices without a special graphics processor such as HTC Wildfire. I remember from a PC that OpenGL is usually chosen over something like SDL for 2D graphics because of speed and capabilities.

Android has two APIs for graphics:

  • "Normal" 2D API (does it have a name?)
  • OpenGL ES 2.0

What benefits should I use for a 2D game that should run on Android devices without a dedicated GPU?

+6
android opengl-es graphics 2d
source share
1 answer

Depending on your experience and scale of the game, there are advantages and disadvantages for both. I would look at Chris Pruett Google IO Lectures, they helped me a lot when I first started working with an Android developer.

Personally, I went with OpenGL over the canvas (or "normal," as you called it), since I already know it. The game I'm working on with this approach works very well (with cutting and attention to the GC) even on older myTouch phones.

+2
source share

All Articles