MCPcopy Index your code
hub / github.com/benfry/processing4 / initFBOLayerES

Method initFBOLayerES

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

Source from the content-addressed store, hash-verified

303
304
305 private void initFBOLayerES() {
306 IntBuffer buf = allocateDirectIntBuffer(fboWidth * fboHeight);
307
308 if (hasReadBuffer()) readBuffer(BACK);
309 readPixelsImpl(0, 0, fboWidth, fboHeight, RGBA, UNSIGNED_BYTE, buf);
310 bindTexture(TEXTURE_2D, glColorTex.get(frontTex));
311 texSubImage2D(TEXTURE_2D, 0, 0, 0, fboWidth, fboHeight, RGBA, UNSIGNED_BYTE, buf);
312
313 bindTexture(TEXTURE_2D, glColorTex.get(backTex));
314 texSubImage2D(TEXTURE_2D, 0, 0, 0, fboWidth, fboHeight, RGBA, UNSIGNED_BYTE, buf);
315
316 bindTexture(TEXTURE_2D, 0);
317 bindFramebufferImpl(FRAMEBUFFER, 0);
318 }
319
320
321 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