Copyright | (c) Sven Panne 2002-2019 |
---|---|
License | BSD3 |
Maintainer | Sven Panne <svenpanne@gmail.com> |
Stability | stable |
Portability | portable |
Safe Haskell | None |
Language | Haskell2010 |
This module corresponds to section 4.1 (Per-Fragment Operations) of the OpenGL 2.1 specs.
Synopsis
- rasterizerDiscard :: StateVar Capability
- discardingRasterizer :: IO a -> IO a
- 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 -> StateVar (ComparisonFunction, GLint, GLuint)
- data StencilOp
- = OpZero
- | OpKeep
- | OpReplace
- | OpIncr
- | OpIncrWrap
- | OpDecr
- | OpDecrWrap
- | OpInvert
- stencilOp :: StateVar (StencilOp, StencilOp, StencilOp)
- stencilOpSeparate :: Face -> StateVar (StencilOp, StencilOp, StencilOp)
- activeStencilFace :: StateVar (Maybe Face)
- depthFunc :: StateVar (Maybe ComparisonFunction)
- blend :: StateVar Capability
- blendBuffer :: DrawBufferIndex -> StateVar Capability
- data BlendEquation
- 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)
Discarding Primitives Before Rasterization
discardingRasterizer :: IO a -> IO a Source #
Scissor Test
Multisample Fragment Operations
Depth Bounds Test
Alpha Test
data ComparisonFunction Source #
Instances
Eq ComparisonFunction Source # | |
Defined in Graphics.Rendering.OpenGL.GL.ComparisonFunction (==) :: ComparisonFunction -> ComparisonFunction -> Bool # (/=) :: ComparisonFunction -> ComparisonFunction -> Bool # | |
Ord ComparisonFunction Source # | |
Defined in Graphics.Rendering.OpenGL.GL.ComparisonFunction compare :: ComparisonFunction -> ComparisonFunction -> Ordering # (<) :: ComparisonFunction -> ComparisonFunction -> Bool # (<=) :: ComparisonFunction -> ComparisonFunction -> Bool # (>) :: ComparisonFunction -> ComparisonFunction -> Bool # (>=) :: ComparisonFunction -> ComparisonFunction -> Bool # max :: ComparisonFunction -> ComparisonFunction -> ComparisonFunction # min :: ComparisonFunction -> ComparisonFunction -> ComparisonFunction # | |
Show ComparisonFunction Source # | |
Defined in Graphics.Rendering.OpenGL.GL.ComparisonFunction showsPrec :: Int -> ComparisonFunction -> ShowS # show :: ComparisonFunction -> String # showList :: [ComparisonFunction] -> ShowS # |
Stencil Test
stencilFuncSeparate :: Face -> StateVar (ComparisonFunction, GLint, GLuint) Source #
Depth Buffer Test
Blending
blendBuffer :: DrawBufferIndex -> StateVar Capability Source #
enable or disable blending based on the buffer bound to the i'th drawBuffer that is the buffer fmap (!! i) (get drawBuffers)
data BlendEquation Source #
Instances
Eq BlendEquation Source # | |
Defined in Graphics.Rendering.OpenGL.GL.PerFragment (==) :: BlendEquation -> BlendEquation -> Bool # (/=) :: BlendEquation -> BlendEquation -> Bool # | |
Ord BlendEquation Source # | |
Defined in Graphics.Rendering.OpenGL.GL.PerFragment compare :: BlendEquation -> BlendEquation -> Ordering # (<) :: BlendEquation -> BlendEquation -> Bool # (<=) :: BlendEquation -> BlendEquation -> Bool # (>) :: BlendEquation -> BlendEquation -> Bool # (>=) :: BlendEquation -> BlendEquation -> Bool # max :: BlendEquation -> BlendEquation -> BlendEquation # min :: BlendEquation -> BlendEquation -> BlendEquation # | |
Show BlendEquation Source # | |
Defined in Graphics.Rendering.OpenGL.GL.PerFragment showsPrec :: Int -> BlendEquation -> ShowS # show :: BlendEquation -> String # showList :: [BlendEquation] -> ShowS # |
data BlendingFactor Source #
Instances
Eq BlendingFactor Source # | |
Defined in Graphics.Rendering.OpenGL.GL.BlendingFactor (==) :: BlendingFactor -> BlendingFactor -> Bool # (/=) :: BlendingFactor -> BlendingFactor -> Bool # | |
Ord BlendingFactor Source # | |
Defined in Graphics.Rendering.OpenGL.GL.BlendingFactor compare :: BlendingFactor -> BlendingFactor -> Ordering # (<) :: BlendingFactor -> BlendingFactor -> Bool # (<=) :: BlendingFactor -> BlendingFactor -> Bool # (>) :: BlendingFactor -> BlendingFactor -> Bool # (>=) :: BlendingFactor -> BlendingFactor -> Bool # max :: BlendingFactor -> BlendingFactor -> BlendingFactor # min :: BlendingFactor -> BlendingFactor -> BlendingFactor # | |
Show BlendingFactor Source # | |
Defined in Graphics.Rendering.OpenGL.GL.BlendingFactor showsPrec :: Int -> BlendingFactor -> ShowS # show :: BlendingFactor -> String # showList :: [BlendingFactor] -> ShowS # |
blendFuncSeparate :: StateVar ((BlendingFactor, BlendingFactor), (BlendingFactor, BlendingFactor)) Source #