示例#1
0
 def init(self, w, h):
     #re-init gl context with new dimensions:
     self.gl_setup = False
     self.size = w, h
     # Re-create textures and shader
     self.pixel_format = None
     self.yuv_shader = None
     #also init the pixmap as backup:
     PixmapBacking.init(self, w, h)
示例#2
0
 def init(self, w, h):
     #re-init gl context with new dimensions:
     self.gl_setup = False
     self.size = w, h
     # Re-create textures and shader
     self.pixel_format = None
     self.yuv_shader = None
     #also init the pixmap as backup:
     PixmapBacking.init(self, w, h)