Rendering using OpenGL
Android uses OpenGL for rendering. Android SDK libraries include the OpenGL libraries, specially optimized for Android. Android started supporting OpenGL from API level 4 and then increased its support as the level increased. Currently, the maximum supported version of OpenGL is OpenGL ES 3.1 from API level 21.
OpenGL versions
Different OpenGL versions have a different set of features. Versions 1.0 and 2.0 have a lot of differences in terms of coding style, API convenience, functionality, and feature support. Let's discuss the following OpenGL ES versions that are significant to Android development:
- OpenGL ES 1.x
- OpenGL ES 2.0
- OpenGL ES 3.0
- OpenGL ES 3.1
OpenGL 1.x
OpenGL version 1.x has been supported from Android API level 4 with a shared OpenGL ES 1.x library, libGLESv1.so
. The headers gl.h
and glext.h
contain all the necessary APIs for OpenGL functionality.
OpenGL 2.0
In the current industry, a developer prefers to use OpenGL ES 2.0 for games, because almost every...