Code example for GLSurfaceView.EGLConfigChooser

Methods: chooseConfig

0
		/* 
		 * We can now initialize EGL for that display 
		 */ 
		final int[] version = new int[2];
		this.mEgl.eglInitialize(this.mEglDisplay, version);
		this.mEglConfig = this.mEGLConfigChooser.chooseConfig(this.mEgl, this.mEglDisplay);
 
		/* 
		 * Create an OpenGL ES context. This must be done only once, an OpenGL 
		 * context is a somewhat heavy object. 
		 */ 
		this.mEglContext = this.mEGLContextFactory.createContext(this.mEgl, this.mEglDisplay, this.mEglConfig);
		if (this.mEglContext == null || this.mEglContext == EGL10.EGL_NO_CONTEXT) {
			throw new RuntimeException("createContext failed");
		} 
 
		this.mEglSurface = null;
	} 
 
	/* 
Experience pair programming with AI  Get Codota for Java