Search code examples
androidopengl-esglsurfaceview

OpenGL es 1.0 or 2.0 for 2d drawing


I've written an app using a SurfaceView. It appears that one thing that is reducing the framerate of the app is that it takes a while to draw some bitmaps, and also that it takes some time to draw a few lines and circles using the canvas. I want to try and improve this by using a GLSurfaceView. Not so much because the slower framerate is a problem, but really because I just want to dabble a bit in OpenGL ES. Anyway, do to 2D drawing, should I got with OpenGL 1.0 or OpenGL 2.0? I would also like this app to work on as many devices as possible.


Solution

  • GLES 2 works on Android 2.2 and higher. If that supports all the devices you want I would go with GL2 as GL1 is simply going out the window more and more as time goes on. Fixed pipelines are NOT the way to go if your interested in graphics for the future. If you learn GLES2 you can carry your knowledge to more advanced things later.