Ejemplo n.º 1
0
 def getDisplay(self):
     """Retrieve the currently-bound, or the default, display"""
     from OpenGL.EGL import (
         eglGetCurrentDisplay,
         eglGetDisplay,
         EGL_DEFAULT_DISPLAY,
     )
     return eglGetCurrentDisplay() or eglGetDisplay(EGL_DEFAULT_DISPLAY)
Ejemplo n.º 2
0
 def getDisplay( self ):
     """Retrieve the currently-bound, or the default, display"""
     from OpenGL.EGL import (
         eglGetCurrentDisplay, eglGetDisplay, EGL_DEFAULT_DISPLAY,
     )
     return eglGetCurrentDisplay() or eglGetDisplay(EGL_DEFAULT_DISPLAY)