nanovg-0.6.0.0: Haskell bindings for nanovg

Safe HaskellSafe
LanguageHaskell2010

NanoVG.Internal.Scissor

Synopsis

Documentation

scissor :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO () Source #

Sets the current scissor rectangle. The scissor rectangle is transformed by the current transform.

intersectScissor :: Context -> CFloat -> CFloat -> CFloat -> CFloat -> IO () Source #

Intersects current scissor rectangle with the specified rectangle. The scissor rectangle is transformed by the current transform. Note: in case the rotation of previous scissor rect differs from the current one, the intersection will be done between the specified rectangle and the previous scissor rectangle transformed in the current transform space. The resulting shape is always rectangle.

resetScissor :: Context -> IO () Source #

Reset and disables scissoring.