Esempio n. 1
0
 def _create_window(self, w, h):
     dst = bcm.Rect(0, 0, w, h)
     src = bcm.Rect(0, 0, w << 16, h << 16)
     display = egl.bcm_display_open(0)
     update = egl.bcm_update_start(0)
     element = egl.bcm_element_add(update, display, 0, dst, src)
     self.win = egl.NativeWindow(element, w, h)
     egl.bcm_update_submit_sync(update)
Esempio n. 2
0
 def _create_window(self, w, h):
     dst = bcm.Rect(0, 0, w, h)
     src = bcm.Rect(0, 0, w << 16, h << 16)
     display = egl.bcm_display_open(self._rpi_dispmanx_id)
     update = egl.bcm_update_start(0)
     element = egl.bcm_element_add(update, display, 0, dst, src)
     self.win = egl.NativeWindow(element, w, h)
     egl.bcm_update_submit_sync(update)
Esempio n. 3
0
 def _create_window(self, w, h):
     dst = bcm.Rect(0, 0, w, h)
     src = bcm.Rect(0, 0, w << 16, h << 16)
     display = egl.bcm_display_open(self._rpi_dispmanx_id)
     update = egl.bcm_update_start(0)
     element = egl.bcm_element_add(update, display,
                                   self._rpi_dispmanx_layer, dst, src,
                                   self._rpi_dispmanx_overlay)
     if self._rpi_dispmanx_overlay:
         self.clearcolor = (0., 0., 0., 0.)
     self.win = egl.NativeWindow(element, w, h)
     egl.bcm_update_submit_sync(update)