nanovg-0.8.1.0: Haskell bindings for nanovg
Safe HaskellSafe-Inferred
LanguageHaskell2010

NanoVG.Internal.GlobalComposite

Synopsis

Documentation

data BlendFactor Source #

Instances

Instances details
Enum BlendFactor Source #

Composite operation

The composite operations in NanoVG are modeled after HTML Canvas API, and the blend func is based on OpenGL (see corresponding manuals for more info). The colors in the blending state have premultiplied alpha.

Instance details

Defined in NanoVG.Internal.GlobalComposite

Eq BlendFactor Source # 
Instance details

Defined in NanoVG.Internal.GlobalComposite

Ord BlendFactor Source # 
Instance details

Defined in NanoVG.Internal.GlobalComposite

Read BlendFactor Source # 
Instance details

Defined in NanoVG.Internal.GlobalComposite

Show BlendFactor Source # 
Instance details

Defined in NanoVG.Internal.GlobalComposite

data CompositeOperation Source #

Instances

Instances details
Enum CompositeOperation Source # 
Instance details

Defined in NanoVG.Internal.GlobalComposite

Eq CompositeOperation Source # 
Instance details

Defined in NanoVG.Internal.GlobalComposite

Ord CompositeOperation Source # 
Instance details

Defined in NanoVG.Internal.GlobalComposite

Read CompositeOperation Source # 
Instance details

Defined in NanoVG.Internal.GlobalComposite

Show CompositeOperation Source # 
Instance details

Defined in NanoVG.Internal.GlobalComposite

globalCompositeOperation :: Context -> CompositeOperation -> IO () Source #

Sets the composite operation. The op parameter should be one of NVGcompositeOperation.

globalCompositeBlendFunc :: Context -> BlendFactor -> BlendFactor -> IO () Source #

Sets the composite operation with custom pixel arithmetic. The parameters should be one of NVGblendFactor.

globalCompositeBlendFuncSeparate :: Context -> BlendFactor -> BlendFactor -> BlendFactor -> BlendFactor -> IO () Source #

Sets the composite operation with custom pixel arithmetic for RGB and alpha components separately. The parameters should be one of NVGblendFactor.