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

Safe HaskellNone




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

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

imageToPicture :: Bool -> Image -> (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 ImageSource

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