gloss-devil-0.1: Display images in Gloss using libdevil for decoding

Graphics.Gloss.DevIL

Synopsis

Documentation

loadDevILPicture :: FilePath -> IO (Int, Int, Picture)Source

Load picture using 'Codec-Image-DevIL' and convert it a bitmap for display by Gloss

repaToPicture :: Bool -> Array DIM3 Word8 -> (Int, Int, Picture)Source

repaToPicture cacheMeFlag array will convert a Repa RGBA array to a tuple of the number of columns, rows and a bitmap for use with Gloss.

readRepaImage :: FilePath -> IO (Array DIM3 Word8)Source

Read in a file into a repa array (using the 'repa-devil' package)