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

Method getDepthValue

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

Source from the content-addressed store, hash-verified

1603
1604
1605 protected float getDepthValue(int scrX, int scrY) {
1606 if (depthBuffer == null) {
1607 depthBuffer = FloatBuffer.allocate(1);
1608 }
1609 depthBuffer.rewind();
1610 readPixels(scrX, graphics.height - scrY - 1, 1, 1, DEPTH_COMPONENT, FLOAT,
1611 depthBuffer);
1612 return depthBuffer.get(0);
1613 }
1614
1615
1616 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