def eglGetDisplay(display=EGL_DEFAULT_DISPLAY):
 res = _lib.eglGetDisplay(display)
 if ((not res) or (res == EGL_NO_DISPLAY)):
  raise RuntimeError('Could not create display')
 return res

def eglGetDisplay ( display = EGL_DEFAULT_DISPLAY ) : res = _lib . eglGetDisplay ( display ) if ( ( not res ) or ( res == EGL_NO_DISPLAY ) ) : raise RuntimeError ( 'Could not create display' ) return res
connect to the egl display server .