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

Method getDepthValue

core/src/processing/opengl/PGL.java:1562–1570  ·  view source on GitHub ↗
(int scrX, int scrY)

Source from the content-addressed store, hash-verified

1560
1561
1562 protected float getDepthValue(int scrX, int scrY) {
1563 if (depthBuffer == null) {
1564 depthBuffer = FloatBuffer.allocate(1);
1565 }
1566 depthBuffer.rewind();
1567 readPixels(scrX, graphics.height - scrY - 1, 1, 1, DEPTH_COMPONENT, FLOAT,
1568 depthBuffer);
1569 return depthBuffer.get(0);
1570 }
1571
1572
1573 protected byte getStencilValue(int scrX, int scrY) {

Callers

nothing calls this directly

Calls 3

readPixelsMethod · 0.95
getMethod · 0.65
allocateMethod · 0.45

Tested by

no test coverage detected