module Graphics.Gloss.Rendering
(
Picture (..)
, Point, Vector, Path
, Color
, makeColor
, makeColorI
, makeRawColor
, makeRawColorI
, rgbaOfColor
, clampColor
, Rectangle(..)
, BitmapData, bitmapSize
, BitmapFormat(..), PixelFormat(..), RowOrder(..)
, bitmapOfForeignPtr
, bitmapDataOfForeignPtr
, bitmapOfByteString
, bitmapDataOfByteString
, bitmapOfBMP
, bitmapDataOfBMP
, loadBMP
, displayPicture
, renderPicture
, withModelview
, withClearBuffer
, RS.initState
, RS.State)
where
import Graphics.Gloss.Internals.Rendering.Common
import Graphics.Gloss.Internals.Rendering.Picture
import Graphics.Gloss.Internals.Data.Picture
import Graphics.Gloss.Internals.Data.Color
import qualified Graphics.Gloss.Internals.Rendering.State as RS
displayPicture
:: (Int, Int)
-> Color
-> RS.State
-> Float
-> Picture
-> IO ()
displayPicture windowSize colorClear state scale picture
= withModelview windowSize
$ withClearBuffer colorClear
$ renderPicture state scale picture