gltf-loader-0.3.0.0: High level GlTF loader
Safe HaskellSafe-Inferred
LanguageHaskell2010

Text.GLTF.Loader.Internal.Decoders

Synopsis

GLTF Property-specific Type decoders

getIndices :: Get (Vector Word16) Source #

Vertex indices binary decoder

getPositions :: Get (Vector (V3 Float)) Source #

Vertex positions binary decoder

getNormals :: Get (Vector (V3 Float)) Source #

Vertex normals binary decoder

getTexCoords :: Get (Vector (V2 Float)) Source #

Texture coordinates binary decoder

GLTF Accessor Type decoders

getScalar :: Get a -> Get (Vector a) Source #

Scalar (simple) type binary decoder

getVec2 :: Get a -> Get (Vector (V2 a)) Source #

2D Vector binary decoder

getVec3 :: Get a -> Get (Vector (V3 a)) Source #

3D Vector binary decoder

getVec4 :: Get a -> Get (Vector (V4 a)) Source #

4D Vector binary decoder

getMat2 :: Get a -> Get (Vector (M22 a)) Source #

2x2 Matrix binary decoder

getMat3 :: Get a -> Get (Vector (M33 a)) Source #

3x3 Matrix binary decoder

getMat4 :: Get a -> Get (Vector (M44 a)) Source #

4x4 Matrix binary decoder

GLTF Component Type decoders

getByte :: Get Int8 Source #

Byte binary decoder

getUnsignedByte :: Get Word8 Source #

Unsigned Byte binary decoder

getShort :: Get Int16 Source #

Short binary decoder

getUnsignedShort :: Get Word16 Source #

Unsigned Short binary decoder

getUnsignedInt :: Get Word32 Source #

Unsigned Int binary decoder

getFloat :: Get Float Source #

Float binary decoder