MCPcopy
hub / github.com/processing/p5.js / _getTempFramebuffer

Method _getTempFramebuffer

src/core/p5.Renderer3D.js:1164–1174  ·  view source on GitHub ↗

* @private * @returns {p5.Framebuffer} A p5.Framebuffer set to match the size and settings * of the renderer's canvas. It will be created if it does not yet exist, and * reused if it does.

()

Source from the content-addressed store, hash-verified

1162 * reused if it does.
1163 */
1164 _getTempFramebuffer() {
1165 if (!this._tempFramebuffer) {
1166 this._tempFramebuffer = new Framebuffer(this, {
1167 format: constants.UNSIGNED_BYTE,
1168 useDepth: this._pInst._glAttributes.depth,
1169 depthFormat: constants.UNSIGNED_INT,
1170 antialias: this._pInst._glAttributes.antialias,
1171 });
1172 }
1173 return this._tempFramebuffer;
1174 }
1175
1176 //////////////////////////////////////////////
1177 // HASH | for geometry

Callers 1

updatePixelsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected