MCPcopy Index your code
hub / github.com/processing/processing / copy

Method copy

core/src/processing/opengl/FrameBuffer.java:178–185  ·  view source on GitHub ↗
(FrameBuffer dest, int mask)

Source from the content-addressed store, hash-verified

176 }
177
178 public void copy(FrameBuffer dest, int mask) {
179 pgl.bindFramebufferImpl(PGL.READ_FRAMEBUFFER, this.glFbo);
180 pgl.bindFramebufferImpl(PGL.DRAW_FRAMEBUFFER, dest.glFbo);
181 pgl.blitFramebuffer(0, 0, this.width, this.height,
182 0, 0, dest.width, dest.height, mask, PGL.NEAREST);
183 pgl.bindFramebufferImpl(PGL.READ_FRAMEBUFFER, pg.getCurrentFB().glFbo);
184 pgl.bindFramebufferImpl(PGL.DRAW_FRAMEBUFFER, pg.getCurrentFB().glFbo);
185 }
186
187 public void bind() {
188 pgl.bindFramebufferImpl(PGL.FRAMEBUFFER, glFbo);

Callers 4

beginPixelsOpMethod · 0.95
copyColorMethod · 0.95
copyDepthMethod · 0.95
copyStencilMethod · 0.95

Calls 3

getCurrentFBMethod · 0.80
bindFramebufferImplMethod · 0.45
blitFramebufferMethod · 0.45

Tested by

no test coverage detected