Code example for EGL10

Methods: eglGetConfigAttrib

0
    /** 
     * Prints relevant attributes of a GL configuration to logcat. 
     */ 
    protected void printConfig(EGL10 egl, EGLDisplay display, EGLConfig config) {
        int[] val = new int[1];
        egl.eglGetConfigAttrib(display, config, EGL10.EGL_RED_SIZE, val);
        Log.d(TAG, "RED_SIZE: " + val[0]);
        egl.eglGetConfigAttrib(display, config, EGL10.EGL_GREEN_SIZE, val);
        Log.d(TAG, "GREEN_SIZE: " + val[0]);
        egl.eglGetConfigAttrib(display, config, EGL10.EGL_BLUE_SIZE, val);
        Log.d(TAG, "BLUE_SIZE: " + val[0]);
        egl.eglGetConfigAttrib(display, config, EGL10.EGL_ALPHA_SIZE, val);
        Log.d(TAG, "ALPHA_SIZE: " + val[0]);
        egl.eglGetConfigAttrib(display, config, EGL10.EGL_DEPTH_SIZE, val);
        Log.d(TAG, "DEPTH_SIZE: " + val[0]);
        egl.eglGetConfigAttrib(display, config, EGL10.EGL_SAMPLE_BUFFERS, val);
        Log.d(TAG, "SAMPLE_BUFFERS: " + val[0]);
        egl.eglGetConfigAttrib(display, config, EGL10.EGL_SAMPLES, val);
        Log.d(TAG, "SAMPLES: " + val[0]);
    } 
}