Axiom.RenderSystems.OpenGLES.Android.AndroidSupport.ChooseGLConfig C# (CSharp) Method

ChooseGLConfig() public method

public ChooseGLConfig ( int attribList, int elements ) : Javax.Microedition.Khronos.Egl.EGLConfig[]
attribList int
elements int
return Javax.Microedition.Khronos.Egl.EGLConfig[]
		public EGLConfig[] ChooseGLConfig( int[] attribList, int[] elements )
		{
			EGLConfig[] configs;
			if ( Javax.Microedition.Khronos.Egl.EGLContext.EGL11.EglChooseConfig( _glDisplay, attribList, null, 0, elements ) == false )
			{
				throw new AxiomException( "Failed to choose config" );
			}

			configs = new EGLConfig[ Marshal.SizeOf( typeof( EGLConfig ) ) * elements.Length ];
			if ( Javax.Microedition.Khronos.Egl.EGLContext.EGL11.EglChooseConfig( _glDisplay, attribList, configs, configs.Length, elements ) == false )
			{
				throw new AxiomException( "Failed to choose config" );
			}

			return configs;
		}