SimpleGL-0.9.3: A Simple Graphics Library from the SimpleH framework.

Safe HaskellNone

SimpleH.GL.Texture

Synopsis

Documentation

data Texture Source

The abstract Texture type

imageTexture :: DynamicImage -> IO (Either [Char] Texture)Source

Try to convert a JuicyPixels image to a texture.

readTexture :: FilePath -> IO (Either String Texture)Source

Read a texture from a file.

readTextures :: Traversable t => t FilePath -> IO (Either String (t Texture))Source

Try to read a structure of files into a structure of textures.

readTextures' :: Traversable t => t FilePath -> IO (t Texture)Source

Read a structure of files into a structure of textures, raising an error if it fails.