|
Graphics.Rendering.OpenGL.GL.PerFragment | Portability | portable | Stability | stable | Maintainer | sven.panne@aedion.de |
|
|
|
|
|
Description |
This module corresponds to section 4.1 (Per-Fragment Operations) of the
OpenGL 2.1 specs.
|
|
Synopsis |
|
scissor :: StateVar (Maybe (Position, Size)) | | sampleAlphaToCoverage :: StateVar Capability | | sampleAlphaToOne :: StateVar Capability | | sampleCoverage :: StateVar (Maybe (GLclampf, Bool)) | | depthBounds :: StateVar (Maybe (GLclampd, GLclampd)) | | | | alphaFunc :: StateVar (Maybe (ComparisonFunction, GLclampf)) | | stencilTest :: StateVar Capability | | stencilFunc :: StateVar (ComparisonFunction, GLint, GLuint) | | stencilFuncSeparate :: Face -> SettableStateVar (ComparisonFunction, GLint, GLuint) | | | | stencilOp :: StateVar (StencilOp, StencilOp, StencilOp) | | stencilOpSeparate :: Face -> SettableStateVar (StencilOp, StencilOp, StencilOp) | | activeStencilFace :: StateVar (Maybe Face) | | depthFunc :: StateVar (Maybe ComparisonFunction) | | newtype QueryObject = QueryObject GLuint | | data QueryTarget = SamplesPassed | | withQuery :: QueryTarget -> QueryObject -> IO a -> IO a | | queryCounterBits :: QueryTarget -> GettableStateVar GLsizei | | currentQuery :: QueryTarget -> GettableStateVar (Maybe QueryObject) | | queryResult :: QueryObject -> GettableStateVar GLuint | | queryResultAvailable :: QueryObject -> GettableStateVar Bool | | blend :: StateVar Capability | | | | blendEquation :: StateVar BlendEquation | | blendEquationSeparate :: StateVar (BlendEquation, BlendEquation) | | | | blendFuncSeparate :: StateVar ((BlendingFactor, BlendingFactor), (BlendingFactor, BlendingFactor)) | | blendFunc :: StateVar (BlendingFactor, BlendingFactor) | | blendColor :: StateVar (Color4 GLclampf) | | dither :: StateVar Capability | | | | logicOp :: StateVar (Maybe LogicOp) |
|
|
|
Scissor Test
|
|
|
|
Multisample Fragment Operations
|
|
|
|
|
|
|
|
Depth Bounds Test
|
|
|
|
Alpha Test
|
|
data ComparisonFunction | Source |
|
Constructors | Never | | Less | | Equal | | Lequal | | Greater | | Notequal | | Gequal | | Always | |
| Instances | |
|
|
|
|
Stencil Test
|
|
|
|
|
|
|
|
|
Constructors | OpZero | | OpKeep | | OpReplace | | OpIncr | | OpIncrWrap | | OpDecr | | OpDecrWrap | | OpInvert | |
| Instances | |
|
|
|
|
|
|
|
|
Depth Buffer Test
|
|
|
|
Occlusion Queries
|
|
|
Constructors | | Instances | |
|
|
|
Constructors | | Instances | |
|
|
|
|
|
|
|
|
|
|
|
|
Blending
|
|
|
|
|
Constructors | FuncAdd | | FuncSubtract | | FuncReverseSubtract | | Min | | Max | | LogicOp | |
| Instances | |
|
|
|
|
|
|
|
Constructors | Zero | | One | | SrcColor | | OneMinusSrcColor | | DstColor | | OneMinusDstColor | | SrcAlpha | | OneMinusSrcAlpha | | DstAlpha | | OneMinusDstAlpha | | ConstantColor | | OneMinusConstantColor | | ConstantAlpha | | OneMinusConstantAlpha | | SrcAlphaSaturate | |
| Instances | |
|
|
|
|
|
|
|
|
Dithering
|
|
|
|
Logical Operation
|
|
|
Constructors | Clear | | And | | AndReverse | | Copy | | AndInverted | | Noop | | Xor | | Or | | Nor | | Equiv | | Invert | | OrReverse | | CopyInverted | | OrInverted | | Nand | | Set | |
| Instances | |
|
|
|
|
Produced by Haddock version 0.9 |