(int scrX, int scrY)
| 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) { |
nothing calls this directly
no test coverage detected