Example #1
0
 def destroy(self):
     b = self._backing
     if b:
         b.paint_screen = False
         b.close()
         self._backing = None
     ClientWindow.destroy(self)
Example #2
0
 def destroy(self):
     b = self._backing
     if b:
         b.paint_screen = False
         b.close()
         self._backing = None
     ClientWindow.destroy(self)
Example #3
0
 def init_window(self, metadata):
     mww, mwh = self.max_window_size
     mts = GLClientWindow.MAX_TEXTURE_SIZE
     if mts<16*1024 and (mww==0 or mwh==0 or mts<mww or mts<mwh):
         log("overriding max_window_size=%ix%i with %ix%i", mww, mwh, mts, mts)
         self.max_window_size = mts, mts
     ClientWindow.init_window(self, metadata)
Example #4
0
 def set_alpha(self):
     ClientWindow.set_alpha(self)
     rgb_formats = self._client_properties.get("encodings.rgb_formats", [])
     #gl_window_backing supports BGR(A) too:
     if "RGBA" in rgb_formats:
         rgb_formats.append("BGRA")
     if "RGB" in rgb_formats:
         rgb_formats.append("BGR")
Example #5
0
 def set_alpha(self):
     ClientWindow.set_alpha(self)
     rgb_formats = self._client_properties.get("encodings.rgb_formats", [])
     #gl_window_backing supports BGR(A) too:
     if "RGBA" in rgb_formats:
         rgb_formats.append("BGRA")
     if "RGB" in rgb_formats:
         rgb_formats.append("BGR")
Example #6
0
 def new_backing(self, bw, bh):
     widget = ClientWindow.new_backing(self, bw, bh)
     self.add(widget)
Example #7
0
 def destroy(self):
     self.remove_backing()
     ClientWindow.destroy(self)
Example #8
0
 def do_configure_event(self, event):
     log("GL do_configure_event(%s)", event)
     ClientWindow.do_configure_event(self, event)
     self._backing.paint_screen = True
Example #9
0
 def set_alpha(self):
     ClientWindow.set_alpha(self)
     rgb_formats = self._client_properties.get("encodings.rgb_formats", [])
     GLClientWindowCommon.add_rgb_formats(self, rgb_formats)
Example #10
0
 def new_backing(self, bw, bh):
     widget = ClientWindow.new_backing(self, bw, bh)
     self.add(widget)
Example #11
0
 def do_configure_event(self, event):
     log("GL do_configure_event(%s)", event)
     ClientWindow.do_configure_event(self, event)
     self._backing.paint_screen = True
Example #12
0
 def __init__(self, *args):
     log("GLClientWindow(..)")
     ClientWindow.__init__(self, *args)
Example #13
0
 def __init__(self, *args):
     log("GLClientWindow(..)")
     ClientWindow.__init__(self, *args)
Example #14
0
 def setup_window(self):
     self._client_properties["encoding.uses_swscale"] = False
     ClientWindow.setup_window(self)
Example #15
0
 def __init__(self, *args):
     log("GLClientWindow(..)")
     ClientWindow.__init__(self, *args)
     self.add(self._backing._backing)