Safe Haskell | None |
---|---|
Language | Haskell2010 |
Render Cairo drawings with OpenGL. Useful for drawing axes.
Synopsis
- renderCairo :: Render a -> Int -> Int -> IO (IO ())
Documentation
:: 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.