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

Method _beforeBegin

src/webgl/p5.Framebuffer.js:819–828  ·  view source on GitHub ↗

* Ensures that the framebuffer is ready to be drawn to * * @private

()

Source from the content-addressed store, hash-verified

817 * @private
818 */
819 _beforeBegin() {
820 this.renderer.bindFramebuffer(this);
821 this.renderer.viewport(
822 this.width * this.density,
823 this.height * this.density
824 );
825 if (this.renderer.flushDraw) {
826 this.renderer.flushDraw();
827 }
828 }
829
830 /**
831 * Ensures that the framebuffer is ready to be read by other framebuffers.

Callers 2

beginMethod · 0.95
endMethod · 0.80

Calls 3

flushDrawMethod · 0.80
bindFramebufferMethod · 0.45
viewportMethod · 0.45

Tested by

no test coverage detected