Safe Haskell | None |
---|
Graphics.GLUtil.JuicyTextures
Description
Uses the JuicyPixels
package to load images that are then used
to create OpenGL textuers.
- readTexInfo :: FilePath -> (forall a. IsPixelData a => TexInfo a -> IO b) -> IO (Either String b)
- readTexture :: FilePath -> IO (Either String TextureObject)
Documentation
readTexInfo :: FilePath -> (forall a. IsPixelData a => TexInfo a -> IO b) -> IO (Either String b)Source
Load a TexInfo
value from an image file, and supply it to a
user-provided function. Supported image formats include png
,
jpeg
, bmp
, and gif
. See readTexture
for most uses.
readTexture :: FilePath -> IO (Either String TextureObject)Source
Load a TextureObject
from an image file. Supported formats
include png
, jpeg
, bmp
, and gif
.