is OpenGL GLES Supported - Android android.opengl

Android examples for android.opengl:OpenGL

Description

is OpenGL GLES Supported

Demo Code


//package com.java2s;
import android.app.ActivityManager;
import android.content.Context;
import android.content.pm.ConfigurationInfo;

public class Main {
    /**/*from   w w  w.ja v  a2s.  c o  m*/
     *
     * @param context
     * @return
     */
    public static boolean isGLES30Supported(Context context) {
        ActivityManager am = (ActivityManager) context
                .getSystemService(Context.ACTIVITY_SERVICE);
        ConfigurationInfo info = am.getDeviceConfigurationInfo();
        return (info.reqGlEsVersion >= 0x30000);
    }
}

Related Tutorials