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

Method allocate

core/src/processing/opengl/FrameBuffer.java:330–354  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

328
329
330 protected void allocate() {
331 dispose(); // Just in the case this object is being re-allocated.
332
333 context = pgl.getCurrentContext();
334 glres = new GLResourceFrameBuffer(this); // create the FBO resources...
335
336 if (screenFb) {
337 glFbo = 0;
338 } else {
339 if (multisample) {
340 initColorBufferMultisample();
341 }
342
343 if (packedDepthStencil) {
344 initPackedDepthStencilBuffer();
345 } else {
346 if (0 < depthBits) {
347 initDepthBuffer();
348 }
349 if (0 < stencilBits) {
350 initStencilBuffer();
351 }
352 }
353 }
354 }
355
356
357 protected void dispose() {

Callers 2

FrameBufferMethod · 0.95
createPixelBufferMethod · 0.45

Calls 6

disposeMethod · 0.95
initDepthBufferMethod · 0.95
initStencilBufferMethod · 0.95
getCurrentContextMethod · 0.80

Tested by

no test coverage detected