dynamic-graph-0.1.0.4: Draw and update graphs in real time with OpenGL

Safe HaskellNone
LanguageHaskell2010

Graphics.DynamicGraph.RenderCairo

Description

Render Cairo drawings with OpenGL. Useful for drawing axes.

Synopsis

Documentation

renderCairo :: Render a -> Int -> Int -> IO (IO ()) Source

(renderCairo rm width height) returns a function that renders the cairo drawing rm into the current OpenGL context. The drawing is rendered with x resolution width and y resolution height.

All OpenGL based initialization of the rendering function (loading of shaders, rendering the cairo drawing to a texture, etc) is performed before the function is returned.