GPipe-Collada-0.1.3: Load GPipe meshes from Collada files

Safe HaskellSafe-Infered

Graphics.GPipe.Collada

Description

This module contains the data types of the Collada scene graph.

Orphan TypeableX instances are also provided for Vertex and Data.Vec vectors (:.) .

Synopsis

Documentation

data Node Source

Instances

nodeMat :: Node -> Mat44 FloatSource

The complete transform matrix of all Transform elements in a node.

nodeAABB :: Node -> AABBSource

The smallest AABB that contains all Geometry elements in a node. Note: This is not transformed using the nodes Transform elements.

transformMat :: Transform -> Mat44 FloatSource

Gets the transformation matrix of a Transform element.

transformsMat :: [Transform] -> Mat44 FloatSource

Gets the total transformation matrix of a list of Transform element.

cameraMat :: Float -> Camera -> Mat44 FloatSource

Gets the projection matrix of a Camera element.

data Z Source

Constructors

Z 

Fields

zNear :: Float
 
zFar :: Float
 

Instances

Eq Z 
Show Z 

data Geometry Source

Constructors

Mesh 

Fields

meshID :: ID
 
meshPrimitives :: [Mesh]
 

Instances

data AABB Source

An axis aligned bounding box.

Constructors

AABB 

Instances