Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data AxisAligned a = AxisAligned {}
- data Meta = Meta {
- mOpaqueIndices :: IndexRange
- mBlendedIndices :: IndexRange
- mOpaqueNodes :: IndexRange
- mBlendedNodes :: IndexRange
- mBoundingSphere :: Vec4
- mTransformBB :: Transform
- mMeasurements :: AxisAligned Measurements
- data NodeGroup
- data NodePartitions a = NodePartitions {}
- type Nodes = Vector Node
- data Node = Node {
- nBoundingSphere :: Vec4
- nTransformBB :: Transform
- nRange :: IndexRange
- nMeasurements :: AxisAligned Measurements
- type TexturedNodes = Vector TexturedNode
- data TexturedNode = TexturedNode {}
- data TextureParams = TextureParams {
- tpScale :: Vec2
- tpOffset :: Vec2
- tpGamma :: Vec4
- tpSamplerId :: Int32
- tpTextureId :: Int32
- data Measurements = Measurements {}
- measureAa :: Foldable t => t Packed -> AxisAligned Measurements
- measureAaWith :: (Foldable outer, Foldable inner) => (a -> inner Packed) -> outer a -> AxisAligned Measurements
- middle :: Measurements -> Float
- middleAa :: AxisAligned Measurements -> AxisAligned Float
- size :: Measurements -> Float
- sizeAa :: AxisAligned Measurements -> AxisAligned Float
- class HasRange a where
- getRange :: a -> IndexRange
- adjustRange :: a -> Word32 -> a
- encodeStorable :: forall a. Storable a => a -> Encoding
- decodeStorable :: forall a s. (Storable a, Typeable a) => Decoder s a
Documentation
data AxisAligned a Source #
Instances
Meta | |
|
Instances
Instances
Bounded NodeGroup Source # | |
Enum NodeGroup Source # | |
Defined in Resource.Mesh.Types succ :: NodeGroup -> NodeGroup # pred :: NodeGroup -> NodeGroup # fromEnum :: NodeGroup -> Int # enumFrom :: NodeGroup -> [NodeGroup] # enumFromThen :: NodeGroup -> NodeGroup -> [NodeGroup] # enumFromTo :: NodeGroup -> NodeGroup -> [NodeGroup] # enumFromThenTo :: NodeGroup -> NodeGroup -> NodeGroup -> [NodeGroup] # | |
Show NodeGroup Source # | |
Eq NodeGroup Source # | |
Ord NodeGroup Source # | |
Defined in Resource.Mesh.Types |
data NodePartitions a Source #
Instances
Node | |
|
Instances
Generic Node Source # | |
Show Node Source # | |
GStorable Node Source # | |
Defined in Resource.Mesh.Types | |
Eq Node Source # | |
HasRange Node Source # | |
Defined in Resource.Mesh.Types | |
type Rep Node Source # | |
Defined in Resource.Mesh.Types type Rep Node = D1 ('MetaData "Node" "Resource.Mesh.Types" "keid-core-0.1.6.1-inplace" 'False) (C1 ('MetaCons "Node" 'PrefixI 'True) ((S1 ('MetaSel ('Just "nBoundingSphere") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Vec4) :*: S1 ('MetaSel ('Just "nTransformBB") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Transform)) :*: (S1 ('MetaSel ('Just "nRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 IndexRange) :*: S1 ('MetaSel ('Just "nMeasurements") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (AxisAligned Measurements))))) |
type TexturedNodes = Vector TexturedNode Source #
data TexturedNode Source #
Instances
data TextureParams Source #
TextureParams | |
|
Instances
data Measurements Source #
Instances
measureAa :: Foldable t => t Packed -> AxisAligned Measurements Source #
measureAaWith :: (Foldable outer, Foldable inner) => (a -> inner Packed) -> outer a -> AxisAligned Measurements Source #
middle :: Measurements -> Float Source #
size :: Measurements -> Float Source #
class HasRange a where Source #
getRange :: a -> IndexRange Source #
adjustRange :: a -> Word32 -> a Source #
Instances
HasRange Node Source # | |
Defined in Resource.Mesh.Types | |
HasRange TexturedNode Source # | |
Defined in Resource.Mesh.Types getRange :: TexturedNode -> IndexRange Source # adjustRange :: TexturedNode -> Word32 -> TexturedNode Source # |
encodeStorable :: forall a. Storable a => a -> Encoding Source #
CBOR.encode helper for storable types (vectors, etc.)
decodeStorable :: forall a s. (Storable a, Typeable a) => Decoder s a Source #
CBOR.decode helper for storable types (vectors, etc.)