Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data Ktx = Ktx {
- ktxName :: FilePath
- ktxContent :: ByteString
- ktxGlType :: Word32
- ktxGlTypeSize :: Word32
- ktxGlFormat :: Word32
- ktxGlInternalFormat :: Word32
- ktxGlBaseInternalFormat :: Word32
- ktxPixelWidth :: Word32
- ktxPixelHeight :: Word32
- ktxPixelDepth :: Word32
- ktxNumElems :: Word32
- ktxNumFaces :: Word32
- ktxNumMipLevels :: Word32
- ktxMap :: [(ByteString, ByteString)]
- ktxImage :: [[ByteString]]
- unpackKtx :: FilePath -> ByteString -> Unpacking Ktx
- ktxFromFile :: FilePath -> IO Ktx
- readKtx :: FilePath -> ByteString -> Ktx
- tryKtx :: FilePath -> ByteString -> Either SomeException Ktx
Documentation
Khronos Texture Container Format
Spec: http://www.khronos.org/opengles/sdk/tools/KTX/file_format_spec/
Ktx | |
|
readKtx :: FilePath -> ByteString -> Ktx Source
Build Ktx
with arbitrary resource name and actual data.
tryKtx :: FilePath -> ByteString -> Either SomeException Ktx Source
Same as readKtx
except error handling is explicit.