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

Method _resetBuffersBeforeDraw

src/webgl/p5.RendererGL.js:466–472  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

464 }
465
466 _resetBuffersBeforeDraw() {
467 this.GL.clearStencil(0);
468 this.GL.clear(this.GL.DEPTH_BUFFER_BIT | this.GL.STENCIL_BUFFER_BIT);
469 if (!this._userEnabledStencil) {
470 this._internalDisable.call(this.GL, this.GL.STENCIL_TEST);
471 }
472 }
473
474 _applyClip() {
475 const gl = this.GL;

Callers 1

_updateMethod · 0.45

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected