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;
}