flaw-collada-0.1.0.0

LicenseMIT
Safe HaskellNone
LanguageHaskell2010

Flaw.Asset.Collada

Contents

Description

 
Synopsis

Documentation

class Parse a Source #

Minimal complete definition

parse

Instances
Parse Float Source # 
Instance details

Defined in Flaw.Asset.Collada

Methods

parse :: Text -> Float

Parse Int Source # 
Instance details

Defined in Flaw.Asset.Collada

Methods

parse :: Text -> Int

Parse Word32 Source # 
Instance details

Defined in Flaw.Asset.Collada

Methods

parse :: Text -> Word32

Parse Text Source # 
Instance details

Defined in Flaw.Asset.Collada

Methods

parse :: Text -> Text

getElementAttr :: Text -> Element -> ColladaM Text Source #

Get attribute of element.

getChildrenWithTag :: Text -> Element -> ColladaM [Element] Source #

Get children elements with specified tag.

initColladaCache :: ByteString -> ColladaM () Source #

Init collada cache.

tryGetElementById :: Text -> ColladaM (Maybe Element) Source #

Try to get element by id.

getElementById :: Text -> ColladaM Element Source #

Get element by id.

resolveElement :: Text -> ColladaM Element Source #

Get element by #id or local name.

getAllElementsByTag :: Text -> ColladaM [Element] Source #

Get all elements by tag.

data ColladaNodeTag Source #

Node.

Constructors

ColladaNodeTag 

Fields

nullAnimation :: ColladaAnimation Source #

Empty animation.

parseAnimation :: Element -> ColladaM ColladaAnimation Source #

Parse "animation" tag.

animateNode :: Transform t => ColladaNodeTag -> ColladaAnimation -> ColladaM (Float -> t Float) Source #

Create animation function for node.

newtype ColladaSkeleton Source #

Flattened node hierarchy, in strict order from root to leaves.

parseSkeleton :: Element -> ColladaM ColladaSkeleton Source #

Create flat skeleton structure for node hierarchy.

animateSkeleton :: Transform t => ColladaSkeleton -> ColladaAnimation -> ColladaM (t Float -> Float -> Vector (t Float)) Source #

Create animation function for skeleton.

newtype ColladaSkin t Source #

Constructors

ColladaSkin 

Fields

Instances
Show t => Show (ColladaSkin t) Source # 
Instance details

Defined in Flaw.Asset.Collada

data ColladaBone t Source #

Constructors

ColladaBone 

Fields

Instances
Show t => Show (ColladaBone t) Source # 
Instance details

Defined in Flaw.Asset.Collada

Orphan instances

MonadFail (Either Text) Source # 
Instance details

Methods

fail :: String -> Either Text a #