OpenGL-3.0.3.0: A binding for the OpenGL graphics system
Copyright(c) Sven Panne 2002-2019
LicenseBSD3
MaintainerSven Panne <svenpanne@gmail.com>
Stabilitystable
Portabilityportable
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.Rendering.OpenGL.GL.PerFragment

Description

This module corresponds to section 4.1 (Per-Fragment Operations) of the OpenGL 2.1 specs.

Synopsis

Discarding Primitives Before Rasterization

discardingRasterizer :: IO a -> IO a Source #

Scissor Test

scissor :: StateVar (Maybe (Position, Size)) Source #

Multisample Fragment Operations

sampleCoverage :: StateVar (Maybe (GLclampf, Bool)) Source #

Depth Bounds Test

depthBounds :: StateVar (Maybe (GLclampd, GLclampd)) Source #

Alpha Test

alphaFunc :: StateVar (Maybe (ComparisonFunction, GLclampf)) Source #

Stencil Test

stencilFunc :: StateVar (ComparisonFunction, GLint, GLuint) Source #

stencilFuncSeparate :: Face -> StateVar (ComparisonFunction, GLint, GLuint) Source #

data StencilOp Source #

Instances

Instances details
Show StencilOp Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.PerFragment

Methods

showsPrec :: Int -> StencilOp -> ShowS

show :: StencilOp -> String

showList :: [StencilOp] -> ShowS

Eq StencilOp Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.PerFragment

Methods

(==) :: StencilOp -> StencilOp -> Bool

(/=) :: StencilOp -> StencilOp -> Bool

Ord StencilOp Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.PerFragment

Methods

compare :: StencilOp -> StencilOp -> Ordering

(<) :: StencilOp -> StencilOp -> Bool

(<=) :: StencilOp -> StencilOp -> Bool

(>) :: StencilOp -> StencilOp -> Bool

(>=) :: StencilOp -> StencilOp -> Bool

max :: StencilOp -> StencilOp -> StencilOp

min :: StencilOp -> StencilOp -> StencilOp

activeStencilFace :: StateVar (Maybe Face) Source #

Depth Buffer Test

depthFunc :: StateVar (Maybe ComparisonFunction) Source #

Blending

blend :: StateVar Capability Source #

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)

blendColor :: StateVar (Color4 GLclampf) Source #

Dithering

Logical Operation

data LogicOp Source #

Instances

Instances details
Show LogicOp Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.PerFragment

Methods

showsPrec :: Int -> LogicOp -> ShowS

show :: LogicOp -> String

showList :: [LogicOp] -> ShowS

Eq LogicOp Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.PerFragment

Methods

(==) :: LogicOp -> LogicOp -> Bool

(/=) :: LogicOp -> LogicOp -> Bool

Ord LogicOp Source # 
Instance details

Defined in Graphics.Rendering.OpenGL.GL.PerFragment

Methods

compare :: LogicOp -> LogicOp -> Ordering

(<) :: LogicOp -> LogicOp -> Bool

(<=) :: LogicOp -> LogicOp -> Bool

(>) :: LogicOp -> LogicOp -> Bool

(>=) :: LogicOp -> LogicOp -> Bool

max :: LogicOp -> LogicOp -> LogicOp

min :: LogicOp -> LogicOp -> LogicOp

logicOp :: StateVar (Maybe LogicOp) Source #