Safe Haskell | None |
---|---|
Language | Haskell2010 |
Graphics.Gloss.Render
Documentation
Arguments
:: State | Current rendering state. |
-> (Int, Int) | Window width and height. |
-> Color | Color to clear the window with. |
-> Picture | Picture to draw. |
-> IO () |
Clear the current OpenGL context and draw the given picture into it. The mutable state holds references to the textures currently loaded into the context, and may have new ones added to it when drawing the picture.
Perform an OpenGL rendering action in the appropriate ModelView
context.