Safe Haskell | None |
---|
- new :: String -> HG3DClass -> Float -> Float -> Float -> Bool -> IO HG3DClass
- delete :: HG3DClass -> IO ()
- getAnimationName :: HG3DClass -> IO String
- getTimePosition :: HG3DClass -> IO Float
- setTimePosition :: HG3DClass -> Float -> IO ()
- getLength :: HG3DClass -> IO Float
- setLength :: HG3DClass -> Float -> IO ()
- getWeight :: HG3DClass -> IO Float
- setWeight :: HG3DClass -> Float -> IO ()
- addTime :: HG3DClass -> Float -> IO ()
- hasEnded :: HG3DClass -> IO Bool
- getEnabled :: HG3DClass -> IO Bool
- setEnabled :: HG3DClass -> Bool -> IO ()
- setLoop :: HG3DClass -> Bool -> IO ()
- getLoop :: HG3DClass -> IO Bool
- copyStateFrom :: HG3DClass -> HG3DClass -> IO ()
- getParent :: HG3DClass -> IO HG3DClass
- createBlendMask :: HG3DClass -> Int -> Float -> IO ()
- destroyBlendMask :: HG3DClass -> IO ()
- hasBlendMask :: HG3DClass -> IO Bool
- setBlendMaskEntry :: HG3DClass -> Int -> Float -> IO ()
- getBlendMaskEntry :: HG3DClass -> Int -> IO Float
- new'_ :: Ptr CChar -> HG3DClassPtr -> CFloat -> CFloat -> CFloat -> CInt -> HG3DClassPtr -> IO ()
- delete'_ :: HG3DClassPtr -> IO ()
- getAnimationName'_ :: HG3DClassPtr -> Ptr CChar -> IO ()
- getTimePosition'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()
- setTimePosition'_ :: HG3DClassPtr -> CFloat -> IO ()
- getLength'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()
- setLength'_ :: HG3DClassPtr -> CFloat -> IO ()
- getWeight'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()
- setWeight'_ :: HG3DClassPtr -> CFloat -> IO ()
- addTime'_ :: HG3DClassPtr -> CFloat -> IO ()
- hasEnded'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- getEnabled'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- setEnabled'_ :: HG3DClassPtr -> CInt -> IO ()
- setLoop'_ :: HG3DClassPtr -> CInt -> IO ()
- getLoop'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- copyStateFrom'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- getParent'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()
- createBlendMask'_ :: HG3DClassPtr -> CInt -> CFloat -> IO ()
- destroyBlendMask'_ :: HG3DClassPtr -> IO ()
- hasBlendMask'_ :: HG3DClassPtr -> Ptr CInt -> IO ()
- setBlendMaskEntry'_ :: HG3DClassPtr -> CInt -> CFloat -> IO ()
- getBlendMaskEntry'_ :: HG3DClassPtr -> CInt -> Ptr CFloat -> IO ()
Documentation
:: String | animName - The name of this state. |
-> HG3DClass | parent - The parent AnimationStateSet that this state will belong to. |
-> Float | timePos - The position, in seconds, where this state will begin. |
-> Float | length - The length, in seconds, of this animation state. |
-> Float | weight - Weight to apply the animation state with. |
-> Bool | enabled - Whether the animation state is enabled. |
-> IO HG3DClass |
Normal constructor with all params supplied
Gets the name of the animation to which this state applies.
Gets the time position for this animation.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Float | timePos |
-> IO () |
Gets the total length of this animation (may be shorter than whole animation)
Sets the time position for this animation.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Float | len |
-> IO () |
Gets the weight (influence) of this animation.
Sets the total length of this animation (may be shorter than whole animation)
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Float | weight |
-> IO () |
Modifies the time position, adjusting for animation length This method loops at the edges if animation looping is enabled.
Sets the weight (influence) of this animation.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Float | offset - The amount of time, in seconds, to extend the animation. |
-> IO () |
Returns true if the animation has reached the end and is not looping.
Returns true if this animation is currently enabled.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | enabled |
-> IO () |
Sets whether or not an animation loops at the start and end of the animation if the time continues to be altered.
Sets whether this animation is enabled.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | loop |
-> IO () |
Gets whether or not this animation loops.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> HG3DClass | animState - Reference to animation state which will use as source. |
-> IO () |
Get the parent animation state set.
Copies the states from another animation state, preserving the animation name
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | blendMaskSizeHint |
-> Float | initialWeight |
-> IO () |
Destroy the currently set blend mask.
Create a new blend mask with the given number of entries. - Details: In addition to assigning a single weight value to a skeletal animation, it may be desirable to assign animation weights per bone using a 'blend mask'.
Return whether there is currently a valid blend mask set.
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Int | boneHandle |
-> Float | weight |
-> IO () |
Get the weight for the bone identified by the given handle.
Set the weight for the bone identified by the given handle.
new'_ :: Ptr CChar -> HG3DClassPtr -> CFloat -> CFloat -> CFloat -> CInt -> HG3DClassPtr -> IO ()Source
delete'_ :: HG3DClassPtr -> IO ()Source
getAnimationName'_ :: HG3DClassPtr -> Ptr CChar -> IO ()Source
getTimePosition'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()Source
setTimePosition'_ :: HG3DClassPtr -> CFloat -> IO ()Source
getLength'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()Source
setLength'_ :: HG3DClassPtr -> CFloat -> IO ()Source
getWeight'_ :: HG3DClassPtr -> Ptr CFloat -> IO ()Source
setWeight'_ :: HG3DClassPtr -> CFloat -> IO ()Source
addTime'_ :: HG3DClassPtr -> CFloat -> IO ()Source
hasEnded'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getEnabled'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
setEnabled'_ :: HG3DClassPtr -> CInt -> IO ()Source
setLoop'_ :: HG3DClassPtr -> CInt -> IO ()Source
copyStateFrom'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
getParent'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
createBlendMask'_ :: HG3DClassPtr -> CInt -> CFloat -> IO ()Source
destroyBlendMask'_ :: HG3DClassPtr -> IO ()Source
hasBlendMask'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
setBlendMaskEntry'_ :: HG3DClassPtr -> CInt -> CFloat -> IO ()Source
getBlendMaskEntry'_ :: HG3DClassPtr -> CInt -> Ptr CFloat -> IO ()Source