Exemplo n.º 1
0
/**
 * This is typically the first EGL function that an application calls.
 * We initialize our global vars and create a private _EGLDisplay object.
 */
EGLDisplay EGLAPIENTRY
eglGetDisplay(NativeDisplayType nativeDisplay)
{
   _EGLDisplay *dpy;
   _eglInitGlobals();
   dpy = _eglNewDisplay(nativeDisplay);
   return _eglGetDisplayHandle(dpy);
}
/**
 * Return pointer to calling thread's _EGLThreadInfo object.
 * Create a new one if needed.
 * Should never return NULL.
 */
_EGLThreadInfo *
_eglGetCurrentThread(void)
{
   _eglInitGlobals();

   /* XXX temporary */
   return _eglGlobal.ThreadInfo;
}