| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Graphics.DynamicGraph.TextureLine
Description
Draw and update line graphs with OpenGL.
Based on: https://en.wikibooks.org/wiki/OpenGL_Programming/Scientific_OpenGL_Tutorial_02
Documentation
graph :: IsPixelData a => Int -> Int -> Int -> Int -> EitherT String IO (a -> IO ()) Source
(graph windowWidth windowHeight samples xResolution) creates a window
of width windowWidth and height windowHeight for displaying a line
graph. A function is returned for updating the line graph. It takes an
instance of IsPixelData of length samples as the y values and draws
a line graph with xResolution vertices.