gloss-rendering-1.9.1.1: Gloss Picture data type and rendering functions.

Safe HaskellNone
LanguageHaskell2010

Graphics.Gloss.Render

Synopsis

Documentation

render Source

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.

renderAction Source

Arguments

:: (Int, Int)

Width and height of window.

-> IO ()

Action to perform.

-> IO () 

Perform an OpenGL rendering action in the appropriate ModelView context.

renderPicture Source

Arguments

:: State

Current rendering state.

-> ViewPort

Current viewport.

-> Picture

Picture to render.

-> IO () 

Render a picture using the given render state and viewport.

stateInit :: IO State Source

The render state holds references to the textures currently cached in the OpenGL context.