lambdacube-engine-0.2.4: 3D rendering engine written entirely in Haskell

Safe HaskellSafe-Infered

Graphics.LambdaCube.Image

Synopsis

Documentation

type ImageLoader = String -> ByteString -> IO (Maybe Image)Source

Image loader function

data Image Source

Has information about the size and the pixel format of the image.

Constructors

Image 

Fields

imName :: String
 
imHeight :: Int
 
imWidth :: Int
 
imDepth :: Int
 
imNumMipmaps :: Int
 
imFormat :: PixelFormat
 
imData :: ByteString

Image can be empty