| Portability | portable |
|---|---|
| Stability | stable |
| Maintainer | sven.panne@aedion.de |
| Safe Haskell | None |
Graphics.Rendering.OpenGL.GL.PerFragment
Contents
Description
This module corresponds to section 4.1 (Per-Fragment Operations) of the OpenGL 2.1 specs.
- scissor :: StateVar (Maybe (Position, Size))
- sampleAlphaToCoverage :: StateVar Capability
- sampleAlphaToOne :: StateVar Capability
- sampleCoverage :: StateVar (Maybe (GLclampf, Bool))
- depthBounds :: StateVar (Maybe (GLclampd, GLclampd))
- data ComparisonFunction
- alphaFunc :: StateVar (Maybe (ComparisonFunction, GLclampf))
- stencilTest :: StateVar Capability
- stencilFunc :: StateVar (ComparisonFunction, GLint, GLuint)
- stencilFuncSeparate :: Face -> SettableStateVar (ComparisonFunction, GLint, GLuint)
- data StencilOp
- = OpZero
- | OpKeep
- | OpReplace
- | OpIncr
- | OpIncrWrap
- | OpDecr
- | OpDecrWrap
- | OpInvert
- stencilOp :: StateVar (StencilOp, StencilOp, StencilOp)
- stencilOpSeparate :: Face -> SettableStateVar (StencilOp, StencilOp, StencilOp)
- activeStencilFace :: StateVar (Maybe Face)
- depthFunc :: StateVar (Maybe ComparisonFunction)
- blend :: StateVar Capability
- blendBuffer :: DrawBufferIndex -> StateVar Capability
- data BlendEquation
- = FuncAdd
- | FuncSubtract
- | FuncReverseSubtract
- | Min
- | Max
- | LogicOp
- blendEquation :: StateVar BlendEquation
- blendEquationSeparate :: StateVar (BlendEquation, BlendEquation)
- data BlendingFactor
- blendFuncSeparate :: StateVar ((BlendingFactor, BlendingFactor), (BlendingFactor, BlendingFactor))
- blendFunc :: StateVar (BlendingFactor, BlendingFactor)
- blendColor :: StateVar (Color4 GLclampf)
- dither :: StateVar Capability
- data LogicOp
- = Clear
- | And
- | AndReverse
- | Copy
- | AndInverted
- | Noop
- | Xor
- | Or
- | Nor
- | Equiv
- | Invert
- | OrReverse
- | CopyInverted
- | OrInverted
- | Nand
- | Set
- logicOp :: StateVar (Maybe LogicOp)
- module Graphics.Rendering.OpenGL.GL.QueryObjects
Scissor Test
Multisample Fragment Operations
sampleCoverage :: StateVar (Maybe (GLclampf, Bool))
Depth Bounds Test
depthBounds :: StateVar (Maybe (GLclampd, GLclampd))
Alpha Test
data ComparisonFunction
alphaFunc :: StateVar (Maybe (ComparisonFunction, GLclampf))
Stencil Test
data StencilOp
Constructors
| OpZero | |
| OpKeep | |
| OpReplace | |
| OpIncr | |
| OpIncrWrap | |
| OpDecr | |
| OpDecrWrap | |
| OpInvert |
Depth Buffer Test
Blending
blendBuffer :: DrawBufferIndex -> StateVar Capability
enable or disable blending based on the buffer bound to the i'th drawBuffer that is the buffer fmap (!! i) (get drawBuffers)
data BlendingFactor
Constructors
Instances
blendColor :: StateVar (Color4 GLclampf)
Dithering
Logical Operation
data LogicOp
Constructors
| Clear | |
| And | |
| AndReverse | |
| Copy | |
| AndInverted | |
| Noop | |
| Xor | |
| Or | |
| Nor | |
| Equiv | |
| Invert | |
| OrReverse | |
| CopyInverted | |
| OrInverted | |
| Nand | |
| Set |