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

Method clear

core/src/processing/opengl/FrameBuffer.java:154–164  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

152
153
154 public void clear() {
155 pg.pushFramebuffer();
156 pg.setFramebuffer(this);
157 pgl.clearDepth(1);
158 pgl.clearStencil(0);
159 pgl.clearColor(0, 0, 0, 0);
160 pgl.clear(PGL.DEPTH_BUFFER_BIT |
161 PGL.STENCIL_BUFFER_BIT |
162 PGL.COLOR_BUFFER_BIT);
163 pg.popFramebuffer();
164 }
165
166 public void copyColor(FrameBuffer dest) {
167 copy(dest, PGL.COLOR_BUFFER_BIT);

Callers 1

initOffscreenMethod · 0.95

Calls 6

pushFramebufferMethod · 0.80
setFramebufferMethod · 0.80
popFramebufferMethod · 0.80
clearDepthMethod · 0.45
clearStencilMethod · 0.45
clearColorMethod · 0.45

Tested by

no test coverage detected