Safe Haskell | Safe-Infered |
---|
HGamer3D.Bindings.Ogre.ClassAnimationState
- 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
Arguments
:: String | animName |
-> HG3DClass | parent |
-> Float | timePos |
-> Float | length |
-> Float | weight |
-> Bool | enabled |
-> IO HG3DClass |
Normal constructor with all params supplied.
Arguments
:: HG3DClass | classpointer - pointer of Class instance which is going to be deleted. |
-> IO () |
Gets the name of the animation to which this state applies.
Destructor - is here because class has virtual functions and some compilers would whine if it won't exist.
Arguments
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO Float |
Gets the time position for this animation.
Arguments
:: 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.
Arguments
:: 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)
Arguments
:: 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.
Arguments
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Float | offset |
-> IO () |
Returns true if the animation has reached the end and is not looping.
Arguments
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO Bool |
Returns true if this animation is currently enabled.
Arguments
:: 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.
Arguments
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> Bool | loop |
-> IO () |
Gets whether or not this animation loops.
Arguments
:: 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 (unlike operator=) but copying everything else.
Arguments
:: 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'.
Arguments
:: HG3DClass | classpointer - pointer of Class instance from which this methods is called. |
-> IO () |
return whether there is currently a valid blend mask set
Arguments
:: 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
hasEnded'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
getEnabled'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
setEnabled'_ :: HG3DClassPtr -> CInt -> IO ()Source
copyStateFrom'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
getParent'_ :: HG3DClassPtr -> HG3DClassPtr -> IO ()Source
createBlendMask'_ :: HG3DClassPtr -> CInt -> CFloat -> IO ()Source
hasBlendMask'_ :: HG3DClassPtr -> Ptr CInt -> IO ()Source
setBlendMaskEntry'_ :: HG3DClassPtr -> CInt -> CFloat -> IO ()Source
getBlendMaskEntry'_ :: HG3DClassPtr -> CInt -> Ptr CFloat -> IO ()Source