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

Method clearDepthStencil

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

Source from the content-addressed store, hash-verified

644
645
646 protected void clearDepthStencil() {
647 if (!pclearDepth && !pclearStencil) {
648 depthMask(true);
649 clearDepth(1);
650 clearStencil(0);
651 clear(DEPTH_BUFFER_BIT | STENCIL_BUFFER_BIT);
652 } else if (!pclearDepth) {
653 depthMask(true);
654 clearDepth(1);
655 clear(DEPTH_BUFFER_BIT);
656 } else if (!pclearStencil) {
657 clearStencil(0);
658 clear(STENCIL_BUFFER_BIT);
659 }
660 }
661
662
663 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