The two most important classes you need for OpenGL projects in Android are and. String GL_ES_VERSION = am.getDeviceConfigurationInfo().getGlEsVersion() Android Classes for OpenGL GL String GL_VERSION = gl.glGetString(GL10.GL_VERSION) ĪctivityManager am = (ActivityManager)getSystemService(Context.ACTIVITY_SERVICE) To find out which OpenGL ES versions your current device supports, you can use the following code: String GL_RENDERER = gl.glGetString(GL10.GL_RENDERER)
Since these versions differ in many ways, you should make your selection based on the performance, device compatibility, coding convenience, and graphics control for your implementation. The Android OpenGL ES reference has version descriptions and comparisons among OpenGL ES 1.0/1.1 and 2.0. Android OpenGL References, Versions and Device Support You can download the entire source code for all the demo projects in the examples. This tutorial presents the basics for working on OpenGL ES software in Android by working through a few examples. The support for OpenGL ES 2.0 started from Android 2.2.
Since Android 1.0, the OpenGL ES 1.0 and 1.1 APIs have been included.
OpenGL ES is just a variation of OpenGL specifically designed for embedded systems. Learn More.Īndroid offers support for 2D and 3D graphics with the OpenGL ES API. We may make money when you click on links to our partners. content and product recommendations are editorially independent.