MCPcopy Index your code
hub / github.com/XingangPan/DragGAN / blit

Method blit

gui_utils/gl_utils.py:301–305  ·  view source on GitHub ↗
(self, dst=None)

Source from the content-addressed store, hash-verified

299 gl.glBindRenderbuffer(gl.GL_RENDERBUFFER, prev_rbo)
300
301 def blit(self, dst=None):
302 assert dst is None or isinstance(dst, Framebuffer)
303 with self.bind():
304 gl.glBindFramebuffer(gl.GL_DRAW_FRAMEBUFFER, 0 if dst is None else dst.fbo)
305 gl.glBlitFramebuffer(0, 0, self.width, self.height, 0, 0, self.width, self.height, gl.GL_COLOR_BUFFER_BIT, gl.GL_NEAREST)
306
307#----------------------------------------------------------------------------
308

Callers

nothing calls this directly

Calls 1

bindMethod · 0.95

Tested by

no test coverage detected