Code example for EGL10

Methods: eglGetConfigAttrib

0
     */ 
    public void logEGLConfig(EGLConfig conf, EGLDisplay display, EGL10 egl)
    { 
        int[] value = new int[1];
 
        egl.eglGetConfigAttrib(display, conf, EGL10.EGL_RED_SIZE, value);
        AC_Log.info(String.format("EGL_RED_SIZE  = %d", value[0] ) );
 
        egl.eglGetConfigAttrib(display, conf, EGL10.EGL_GREEN_SIZE, value);
        AC_Log.info(String.format("EGL_GREEN_SIZE  = %d", value[0] ) );
 
        egl.eglGetConfigAttrib(display, conf, EGL10.EGL_BLUE_SIZE, value);
        AC_Log.info(String.format("EGL_BLUE_SIZE  = %d", value[0] ) );
 
        egl.eglGetConfigAttrib(display, conf, EGL10.EGL_ALPHA_SIZE, value);
        AC_Log.info(String.format("EGL_ALPHA_SIZE  = %d", value[0] ) );
 
        egl.eglGetConfigAttrib(display, conf, EGL10.EGL_DEPTH_SIZE, value);
        AC_Log.info(String.format("EGL_DEPTH_SIZE  = %d", value[0] ) );
 
        egl.eglGetConfigAttrib(display, conf, EGL10.EGL_STENCIL_SIZE, value);
        AC_Log.info(String.format("EGL_STENCIL_SIZE  = %d", value[0] ) );
 
        egl.eglGetConfigAttrib(display, conf, EGL10.EGL_RENDERABLE_TYPE, value);
        AC_Log.info(String.format("EGL_RENDERABLE_TYPE  = %d", value[0] ) );
 
        egl.eglGetConfigAttrib(display, conf, EGL10.EGL_SURFACE_TYPE, value);
        AC_Log.info(String.format("EGL_SURFACE_TYPE  = %d", value[0] ) );
    }