Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data ComparisonFunc
- comparisonFuncToConstant :: ComparisonFunc -> GLenum
- data StencilOp
- stencilOpToConstant :: StencilOp -> GLenum
- setStencilFunc :: MonadIO m => ComparisonFunc -> StencilOp -> StencilOp -> StencilOp -> Word32 -> Word32 -> m ()
- withStencilFunc :: (MonadIO m, MonadMask m) => ComparisonFunc -> StencilOp -> StencilOp -> StencilOp -> Word32 -> Word32 -> m a -> m a
- withCulling :: (MonadIO m, MonadMask m) => Culling -> m a -> m a
- setCulling :: (MonadIO m, MonadMask m) => Culling -> m ()
- setDepthFunc :: MonadIO m => ComparisonFunc -> Bool -> m ()
- withDepthFunc :: (MonadIO m, MonadMask m) => ComparisonFunc -> Bool -> m a -> m a
- setFragmentPassTests :: (MonadIO m, MonadMask m) => FragmentPassTests -> m ()
- withFragmentPassTests :: (MonadIO m, MonadMask m) => FragmentPassTests -> m a -> m a
- data Culling
- = Back
- | Front
- | FrontAndBack
- | NoCulling
- cullingToConstant :: Culling -> GLenum
- data FragmentPassTests = FragmentPassTests {}
- defaultFragmentPassTests :: FragmentPassTests
Documentation
data ComparisonFunc Source
A comparison function. Incoming value is compared with this function to the existing value.
This can be used with depth and stencil tests.
See glDepthFunc
from OpenGL specification or man pages for more detailed
explanation.
Stencil buffer operations.
See glStencilOp
for explanations of each constructor.
Keep | |
Zero | |
Replace | This one replaces the old value in the stencil buffer with the given reference value and ANDs the result with mask. |
Increment | |
IncrementAndWrap | |
Decrease | |
DecreaseAndWrap | |
Invert |
setStencilFunc :: MonadIO m => ComparisonFunc -> StencilOp -> StencilOp -> StencilOp -> Word32 -> Word32 -> m () Source
withStencilFunc :: (MonadIO m, MonadMask m) => ComparisonFunc -> StencilOp -> StencilOp -> StencilOp -> Word32 -> Word32 -> m a -> m a Source
withCulling :: (MonadIO m, MonadMask m) => Culling -> m a -> m a Source
setCulling :: (MonadIO m, MonadMask m) => Culling -> m () Source
setDepthFunc :: MonadIO m => ComparisonFunc -> Bool -> m () Source
withDepthFunc :: (MonadIO m, MonadMask m) => ComparisonFunc -> Bool -> m a -> m a Source
setFragmentPassTests :: (MonadIO m, MonadMask m) => FragmentPassTests -> m () Source
withFragmentPassTests :: (MonadIO m, MonadMask m) => FragmentPassTests -> m a -> m a Source
Back | |
Front | |
FrontAndBack | This stops the drawing of any faces but points and lines (or other non-facey like primitives) are drawn. |
NoCulling |
cullingToConstant :: Culling -> GLenum Source
data FragmentPassTests Source
Specifies the tests that are run on a fragment to decide if it should be seen.
FragmentPassTests | |
|
defaultFragmentPassTests :: FragmentPassTests Source
Returns the default fragment pass tests.
Neither depth or stencil test is enabled. writeDepth
is set to true but
that value is only used if you specify with depth test to use.
All stencil operations are set to Keep
.
Culling is set to Back
.