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