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

Method clearDepthStencil

core/src/processing/opengl/PGL.java:687–701  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

685
686
687 protected void clearDepthStencil() {
688 if (!pclearDepth && !pclearStencil) {
689 depthMask(true);
690 clearDepth(1);
691 clearStencil(0);
692 clear(DEPTH_BUFFER_BIT | STENCIL_BUFFER_BIT);
693 } else if (!pclearDepth) {
694 depthMask(true);
695 clearDepth(1);
696 clear(DEPTH_BUFFER_BIT);
697 } else if (!pclearStencil) {
698 clearStencil(0);
699 clear(STENCIL_BUFFER_BIT);
700 }
701 }
702
703
704 protected void clearBackground(float r, float g, float b, float a,

Callers 1

setGLSettingsMethod · 0.80

Calls 4

depthMaskMethod · 0.95
clearDepthMethod · 0.95
clearStencilMethod · 0.95
clearMethod · 0.95

Tested by

no test coverage detected