diff --git a/api/current.xml b/api/current.xml index 9248ccb4044e1..33fd7f1aa585f 100644 --- a/api/current.xml +++ b/api/current.xml @@ -95461,6 +95461,56 @@ + + + + + + + + + + + * A device that supports a given API level must also support + * numerically smaller API levels. + *

+ * A device that supports a given API level may not necessarily + * support every feature of that API level. API-specific techniques may + * be used to determine whether specific features are supported. + * + * @return the highest OpenGL ES API level supported by the current device. + */ + public static int getOpenGLESVersion() { + return SystemProperties.getInt("ro.opengles.version", OPENGLES_11); + } + + /** + * The version number for OpenGL ES 1.1. + */ + public final static int OPENGLES_11 = 11; + + /** + * The version number for OpenGL ES 2.0. + */ + public final static int OPENGLES_20 = 20; +}