module HGamer3D.Bindings.Ogre.ClassAnimationTrack where
import Foreign
import Foreign.Ptr
import Foreign.C
import HGamer3D.Data.HG3DClass
import HGamer3D.Data.Vector
import HGamer3D.Data.Colour
import HGamer3D.Data.Angle
import HGamer3D.Bindings.Ogre.Utils
import HGamer3D.Bindings.Ogre.ClassPtr
import HGamer3D.Bindings.Ogre.StructHG3DClass
delete :: HG3DClass -> IO ()
delete a1 =
withHG3DClass a1 $ \a1' ->
delete'_ a1' >>= \res ->
return ()
getHandle :: HG3DClass -> IO (Int)
getHandle a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getHandle'_ a1' a2' >>= \res ->
peekIntConv a2'>>= \a2'' ->
return (a2'')
getNumKeyFrames :: HG3DClass -> IO (Int)
getNumKeyFrames a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getNumKeyFrames'_ a1' a2' >>= \res ->
peekIntConv a2'>>= \a2'' ->
return (a2'')
removeKeyFrame :: HG3DClass -> Int -> IO ()
removeKeyFrame a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromIntegral a2} in
removeKeyFrame'_ a1' a2' >>= \res ->
return ()
removeAllKeyFrames :: HG3DClass -> IO ()
removeAllKeyFrames a1 =
withHG3DClass a1 $ \a1' ->
removeAllKeyFrames'_ a1' >>= \res ->
return ()
apply :: HG3DClass -> HG3DClass -> Float -> Float -> IO ()
apply a1 a2 a3 a4 =
withHG3DClass a1 $ \a1' ->
withHG3DClass a2 $ \a2' ->
let {a3' = realToFrac a3} in
let {a4' = realToFrac a4} in
apply'_ a1' a2' a3' a4' >>= \res ->
return ()
hasNonZeroKeyFrames :: HG3DClass -> IO (Bool)
hasNonZeroKeyFrames a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
hasNonZeroKeyFrames'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
optimise :: HG3DClass -> IO ()
optimise a1 =
withHG3DClass a1 $ \a1' ->
optimise'_ a1' >>= \res ->
return ()
getParent :: HG3DClass -> IO (HG3DClass)
getParent a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getParent'_ a1' a2' >>= \res ->
peek a2'>>= \a2'' ->
return (a2'')
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h ogre_at_destruct"
delete'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h ogre_at_getHandle"
getHandle'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h ogre_at_getNumKeyFrames"
getNumKeyFrames'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h ogre_at_removeKeyFrame"
removeKeyFrame'_ :: ((HG3DClassPtr) -> (CUShort -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h ogre_at_removeAllKeyFrames"
removeAllKeyFrames'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h ogre_at_apply"
apply'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (CFloat -> (CFloat -> (IO ())))))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h ogre_at_hasNonZeroKeyFrames"
hasNonZeroKeyFrames'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h ogre_at_optimise"
optimise'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassAnimationTrack.chs.h ogre_at_getParent"
getParent'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))