dynamic-graph-0.1.0.13: 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 Source #

Arguments

:: Render a

Cairo render monad that does the drawing

-> Int

X resolution

-> Int

Y resolution

-> IO (IO ()) 

Returns a function that renders a cairo drawing into the current OpenGL context.

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.

This function must be called with an OpenGL context currently set.