Exemple #1
0
    def __init__(self, wid, window_alpha, pixel_depth=0):
        self.wid = wid
        self.texture_pixel_format = None
        #this is the pixel format we are currently updating the fbo with
        #can be: "YUV420P", "YUV422P", "YUV444P", "GBRP" or None when not initialized yet.
        self.pixel_format = None
        self.textures = None # OpenGL texture IDs
        self.shaders = None
        self.texture_size = 0, 0
        self.gl_setup = False
        self.debug_setup = False
        self.border = None
        self.paint_screen = False
        self.paint_spinner = False
        self.offscreen_fbo = None
        self.tmp_fbo = None
        self.pending_fbo_paint = []
        self.last_flush = monotonic_time()

        WindowBackingBase.__init__(self, wid, window_alpha and self.HAS_ALPHA)

        self.init_gl_config(window_alpha)
        self.init_backing()
        self.bit_depth = self.get_bit_depth(pixel_depth)
        self.init_formats()
        self.draw_needs_refresh = False
        self._backing.show()
Exemple #2
0
 def __init__(self, wid, _w, _h, _has_alpha, data=None):
     self.data = data
     WindowBackingBase.__init__(self, wid, True)
     self.idle_add = import_glib().idle_add
     self._backing = object()  #pretend we have a backing structure
 def __init__(self, wid, window_alpha):
     WindowBackingBase.__init__(self, wid, window_alpha and self.HAS_ALPHA, gobject.idle_add)
Exemple #4
0
 def __init__(self, wid, window_alpha):
     WindowBackingBase.__init__(self, wid, window_alpha and self.HAS_ALPHA,
                                glib.idle_add)
 def __init__(self, wid, window_alpha, _pixel_depth=0):
     WindowBackingBase.__init__(self, wid, window_alpha and self.HAS_ALPHA)
     self.idle_add = glib.idle_add
Exemple #6
0
 def __init__(self, wid, w, h, has_alpha):
     WindowBackingBase.__init__(self, wid, getQtScheduler().idle_add)
 def __init__(self, wid):
     WindowBackingBase.__init__(self, wid, gobject.idle_add)
Exemple #8
0
 def __init__(self, wid, w, h, has_alpha):
     WindowBackingBase.__init__(self, wid, getQtScheduler().idle_add)