Code example for EGL10

Methods: eglGetConfigAttrib

0
		} 
 
		private int findConfigAttrib(EGL10 egl, EGLDisplay display,
				EGLConfig config, int attribute, int defaultValue) {
 
			if (egl.eglGetConfigAttrib(display, config, attribute, mValue)) {
				return mValue[0];
			} 
			return defaultValue;
		} 
 
		private void printConfigs(EGL10 egl, EGLDisplay display,
				EGLConfig[] configs) {
			int numConfigs = configs.length;
			Log.w(TAG, String.format("%d configurations", numConfigs));
			for (int i = 0; i < numConfigs; i++) {
				Log.w(TAG, String.format("Configuration %d:\n", i));
				printConfig(egl, display, configs[i]);
			} 
		}