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

Method initFBOLayerES

core/src/processing/opengl/PJOGL.java:307–320  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

305
306
307 private void initFBOLayerES() {
308 IntBuffer buf = allocateDirectIntBuffer(fboWidth * fboHeight);
309
310 if (hasReadBuffer()) readBuffer(BACK);
311 readPixelsImpl(0, 0, fboWidth, fboHeight, RGBA, UNSIGNED_BYTE, buf);
312 bindTexture(TEXTURE_2D, glColorTex.get(frontTex));
313 texSubImage2D(TEXTURE_2D, 0, 0, 0, fboWidth, fboHeight, RGBA, UNSIGNED_BYTE, buf);
314
315 bindTexture(TEXTURE_2D, glColorTex.get(backTex));
316 texSubImage2D(TEXTURE_2D, 0, 0, 0, fboWidth, fboHeight, RGBA, UNSIGNED_BYTE, buf);
317
318 bindTexture(TEXTURE_2D, 0);
319 bindFramebufferImpl(FRAMEBUFFER, 0);
320 }
321
322
323 private void initFBOLayerGL() {

Callers 1

initFBOLayerMethod · 0.95

Calls 8

readBufferMethod · 0.95
readPixelsImplMethod · 0.95
texSubImage2DMethod · 0.95
bindFramebufferImplMethod · 0.95
hasReadBufferMethod · 0.80
bindTextureMethod · 0.80
getMethod · 0.65

Tested by

no test coverage detected