|
Graphics.Rendering.OpenGL.GL.PerFragment | Portability | portable | Stability | provisional | Maintainer | sven.panne@aedion.de |
|
|
|
|
|
Description |
This module corresponds to section 4.1 (Per-Fragment Operations) of the
OpenGL 1.4 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)) | | stencilFunc :: StateVar (Maybe (ComparisonFunction, GLint, GLuint)) | | | | stencilOp :: StateVar (StencilOp, StencilOp, StencilOp) | | stencilTestTwoSide :: StateVar Capability | | activeStencilFace :: StateVar Face | | depthFunc :: StateVar (Maybe ComparisonFunction) | | | | blendEquation :: StateVar (Maybe BlendEquationMode) | | | | blendFuncSeparate :: StateVar ((BlendingFactor, BlendingFactor), (BlendingFactor, BlendingFactor)) | | blendFunc :: StateVar (BlendingFactor, BlendingFactor) | | blendColor :: StateVar (Color4 GLclampf) | | dither :: StateVar Capability | | | | logicOp :: StateVar (Maybe LogicOp) |
|
|
|
Scissor Test |
|
scissor :: StateVar (Maybe (Position, Size)) |
|
Multisample Fragment Operations |
|
sampleAlphaToCoverage :: StateVar Capability |
|
sampleAlphaToOne :: StateVar Capability |
|
sampleCoverage :: StateVar (Maybe (GLclampf, Bool)) |
|
Depth Bounds Test |
|
depthBounds :: StateVar (Maybe (GLclampd, GLclampd)) |
|
Alpha Test |
|
data ComparisonFunction |
Constructors | Never | | Less | | Equal | | Lequal | | Greater | | Notequal | | Gequal | | Always | |
| Instances | |
|
|
alphaFunc :: StateVar (Maybe (ComparisonFunction, GLclampf)) |
|
Stencil Test |
|
stencilFunc :: StateVar (Maybe (ComparisonFunction, GLint, GLuint)) |
|
data StencilOp |
Constructors | OpZero | | OpKeep | | OpReplace | | OpIncr | | OpIncrWrap | | OpDecr | | OpDecrWrap | | OpInvert | |
| Instances | |
|
|
stencilOp :: StateVar (StencilOp, StencilOp, StencilOp) |
|
stencilTestTwoSide :: StateVar Capability |
|
activeStencilFace :: StateVar Face |
|
Depth Buffer Test |
|
depthFunc :: StateVar (Maybe ComparisonFunction) |
|
Blending |
|
data BlendEquationMode |
Constructors | FuncAdd | | FuncSubtract | | FuncReverseSubtract | | Min | | Max | | LogicOp | |
| Instances | |
|
|
blendEquation :: StateVar (Maybe BlendEquationMode) |
|
data BlendingFactor |
Constructors | Zero | | One | | SrcColor | | OneMinusSrcColor | | DstColor | | OneMinusDstColor | | SrcAlpha | | OneMinusSrcAlpha | | DstAlpha | | OneMinusDstAlpha | | ConstantColor | | OneMinusConstantColor | | ConstantAlpha | | OneMinusConstantAlpha | | SrcAlphaSaturate | |
| Instances | |
|
|
blendFuncSeparate :: StateVar ((BlendingFactor, BlendingFactor), (BlendingFactor, BlendingFactor)) |
|
blendFunc :: StateVar (BlendingFactor, BlendingFactor) |
|
blendColor :: StateVar (Color4 GLclampf) |
|
Dithering |
|
dither :: StateVar Capability |
|
Logical Operation |
|
data LogicOp |
Constructors | Clear | | And | | AndReverse | | Copy | | AndInverted | | Noop | | Xor | | Or | | Nor | | Equiv | | Invert | | OrReverse | | CopyInverted | | OrInverted | | Nand | | Set | |
| Instances | |
|
|
logicOp :: StateVar (Maybe LogicOp) |
|
Produced by Haddock version 0.6 |