public interface JCGLDepthBuffersType extends JCGLDepthClampingType
Modifier and Type | Method and Description |
---|---|
void |
depthBufferClear(float depth)
Clear the depth buffer with the specified value
depth . |
int |
depthBufferGetBits() |
void |
depthBufferTestDisable()
Disable depth testing.
|
void |
depthBufferTestEnable(JCGLDepthFunction function)
Enable depth testing with the given
function . |
boolean |
depthBufferTestIsEnabled() |
void |
depthBufferWriteDisable()
Disable writing to the depth buffer.
|
void |
depthBufferWriteEnable()
Enable writing to the depth buffer.
|
boolean |
depthBufferWriteIsEnabled() |
depthClampingDisable, depthClampingEnable, depthClampingIsEnabled
void depthBufferClear(float depth) throws JCGLException, JCGLExceptionNoDepthBuffer
Clear the depth buffer with the specified value depth
.
Clearing will have no effect if writing to the depth buffer is disabled.
depth
- The depth valueJCGLException
- Iff an OpenGL error occursJCGLExceptionNoDepthBuffer
- If no depth buffer is availabledepthBufferWriteIsEnabled()
,
depthBufferWriteEnable()
,
depthBufferWriteDisable()
int depthBufferGetBits() throws JCGLException
JCGLException
- Iff an OpenGL error occursvoid depthBufferTestDisable() throws JCGLException, JCGLExceptionNoDepthBuffer
JCGLException
- Iff an OpenGL error occursJCGLExceptionNoDepthBuffer
- If no depth buffer is availablevoid depthBufferTestEnable(JCGLDepthFunction function) throws JCGLException, JCGLExceptionNoDepthBuffer
function
. The OpenGL default
for function
is LESS_THAN
.function
- The depth functionJCGLException
- Iff an OpenGL error occursJCGLExceptionNoDepthBuffer
- If no depth buffer is availableboolean depthBufferTestIsEnabled() throws JCGLException, JCGLExceptionNoDepthBuffer
true
iff depth testing is enabled.JCGLException
- Iff an OpenGL error occursJCGLExceptionNoDepthBuffer
- If no depth buffer is availablevoid depthBufferWriteDisable() throws JCGLException, JCGLExceptionNoDepthBuffer
JCGLException
- Iff an OpenGL error occursJCGLExceptionNoDepthBuffer
- If no depth buffer is availablevoid depthBufferWriteEnable() throws JCGLException, JCGLExceptionNoDepthBuffer
JCGLException
- Iff an OpenGL error occursJCGLExceptionNoDepthBuffer
- If no depth buffer is availableboolean depthBufferWriteIsEnabled() throws JCGLException, JCGLExceptionNoDepthBuffer
true
iff depth writing is enabled.JCGLException
- Iff an OpenGL error occursJCGLExceptionNoDepthBuffer
- If no depth buffer is availableCopyright © 2017 <code@io7m.com> http://io7m.com