public interface JCGLStencilBuffersType
void stencilBufferClear(int stencil) throws JCGLException, JCGLExceptionNoStencilBuffer
stencil
.stencil
- The stencil value.JCGLException
- Iff an OpenGL error occursJCGLExceptionNoStencilBuffer
- If no stencil buffer is availablevoid stencilBufferDisable() throws JCGLException, JCGLExceptionNoStencilBuffer
JCGLException
- Iff an internal OpenGL error occursJCGLExceptionNoStencilBuffer
- If no stencil buffer is availablevoid stencilBufferEnable() throws JCGLException, JCGLExceptionNoStencilBuffer
JCGLException
- Iff an internal OpenGL error occursJCGLExceptionNoStencilBuffer
- If no stencil buffer is availablevoid stencilBufferFunction(JCGLFaceSelection faces, JCGLStencilFunction function, int reference, int mask) throws JCGLException, JCGLExceptionNoStencilBuffer
faces
. The value mask
is ANDed with the reference value and the
stored stencil buffer value when function
is evaluated.faces
- The face selectionfunction
- The stencil functionreference
- The reference valuemask
- The value to AND with the reference and stored stencil
valuesJCGLException
- Iff an internal OpenGL error occursJCGLExceptionNoStencilBuffer
- If no stencil buffer is availableint stencilBufferGetBits() throws JCGLException
JCGLException
- Iff an OpenGL error occursboolean stencilBufferIsEnabled() throws JCGLException, JCGLExceptionNoStencilBuffer
true
iff stencil testing is enabledJCGLException
- Iff an OpenGL error occursJCGLExceptionNoStencilBuffer
- If no stencil buffer is availablevoid stencilBufferMask(JCGLFaceSelection faces, int mask) throws JCGLException, JCGLExceptionNoStencilBuffer
faces
. The least significant bits in the value mask
are
used to control writing of bits; Where a 1 appears in the mask, it's
possible to write to the corresponding bit in the stencil buffer. Where a 0
appears, the corresponding bit is write-protected. Initially, all bits are
enabled for writing.mask
- The stencil maskfaces
- The face selectionJCGLException
- Iff an internal OpenGL error occursJCGLExceptionNoStencilBuffer
- If no stencil buffer is availablevoid stencilBufferOperation(JCGLFaceSelection faces, JCGLStencilOperation stencil_fail, JCGLStencilOperation depth_fail, JCGLStencilOperation pass) throws JCGLException
faces
.faces
- The face selectionstencil_fail
- The operation to perform when the stencil test failsdepth_fail
- The operation to perform when the stencil test passes
but the depth test failspass
- The operation to perform when the stencil and depth
test (if any) passesJCGLException
- Iff an internal OpenGL error occursint stencilBufferGetMaskFrontFaces()
int stencilBufferGetMaskBackFaces()
JCGLStencilOperation stencilBufferGetOperationStencilFailBack()
JCGLStencilOperation stencilBufferGetOperationDepthFailBack()
JCGLStencilOperation stencilBufferGetOperationPassBack()
JCGLStencilOperation stencilBufferGetOperationStencilFailFront()
JCGLStencilOperation stencilBufferGetOperationDepthFailFront()
JCGLStencilOperation stencilBufferGetOperationPassFront()
JCGLStencilFunction stencilBufferGetFunctionFront()
JCGLStencilFunction stencilBufferGetFunctionBack()
int stencilBufferGetFunctionReferenceFront()
int stencilBufferGetFunctionMaskFront()
int stencilBufferGetFunctionReferenceBack()
int stencilBufferGetFunctionMaskBack()
Copyright © 2017 <code@io7m.com> http://io7m.com