opengles-0.8.3: Functional interface for OpenGL 4.1+ and OpenGL ES 2.0+

Safe HaskellNone
LanguageHaskell2010

Graphics.OpenGLES.State

Contents

Description

Draw configurations on Rasterization and Per-Fragment Operations. Note: Graphic state is sticky.

Synopsis

Graphics State

polygonOffset Source

Arguments

:: Float

factor: A variable depth offset for each polygon (default 0)

-> Float

units: Multiplied by an implementation-specific value to create a constant depth offset. (default 0)

-> GL () 

scissor Source

Arguments

:: Int32

left

-> Int32

bottom

-> Int32

width

-> Int32

height

-> GL () 

sampleCoverage Source

Arguments

:: Float

multisample coverage value [0,1]

-> Bool

whether coverage masks should be inverted or not

-> GL () 

Capability

begin :: Capability -> GL () Source

Same as enable.

end :: Capability -> GL () Source

Same as disable.

enable :: Capability -> GL () Source

Enable specified feature.

disable :: Capability -> GL () Source

Disable specified feature.

resetcfg :: GL () Source

Reset capability states

Cull Face

frontFace :: Bool -> GL () Source

Clockwise -> True, Counter-clockwise -> False

Stencil

stencilFunc Source

Arguments

:: CompFunc

stencil function

-> Int32

comparing value

-> Word32

mask value

-> GL () 

stencilFuncSeparate Source

Arguments

:: CullFace

which face

-> CompFunc

stencil function

-> Int32

comparing value

-> Word32

mask value

-> GL () 

stencilOp Source

Arguments

:: StencilOp

stencil fail

-> StencilOp

depth fail

-> StencilOp

depth pass

-> GL () 

stencilOpSeparate Source

Arguments

:: CullFace

which face

-> StencilOp

stencil fail

-> StencilOp

depth fail

-> StencilOp

depth pass

-> GL () 

Depth

Blend

blendEquationSeparate Source

Arguments

:: BlendOp

rgb

-> BlendOp

alpha

-> GL () 

blendFunc Source

Arguments

:: BlendingFactor

source

-> BlendingFactor

dest

-> GL () 

blendFuncSeparate Source

Arguments

:: BlendingFactor

source rgb

-> BlendingFactor

dest rgb

-> BlendingFactor

source alpha

-> BlendingFactor

dest alpha

-> GL () 

type Clampf = Float Source

Float value clamped to [0,1]

Hint