sdl2-cairo-0.1.0.1: Binding to render with Cairo on SDL textures and optional convenience drawing API.

CopyrightCopyright (c) 2015 Anton Pirogov
LicenseMIT
Maintaineranton.pirogov@gmail.com
Safe HaskellNone
LanguageHaskell2010

SDL.Cairo

Description

This module exposes the functions to glue SDL2 Textures to the Cairo Render monad.

Synopsis

Documentation

createCairoTexture :: Renderer -> V2 CInt -> IO Texture Source

create new texture for Cairo with given size

createCairoTexture' :: Renderer -> Window -> IO Texture Source

create new texture for Cairo with the size of the given window

withCairoTexture :: Texture -> Render () -> IO () Source

draw on SDL texture with Render monad from Cairo

withCairoTexture' :: Texture -> (Surface -> IO a) -> IO a Source

lock and unwrap SDL texture, get a Cairo surface, pass it to some function