Safe Haskell | None |
---|---|
Language | Haskell2010 |
Render Cairo drawings with OpenGL. Useful for drawing axes.
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.