module HGamer3D.Bindings.Ogre.ClassBone 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
import HGamer3D.Bindings.Ogre.StructVec3
import HGamer3D.Bindings.Ogre.StructQuaternion
delete :: HG3DClass -> IO ()
delete a1 =
withHG3DClass a1 $ \a1' ->
delete'_ a1' >>= \res ->
return ()
createChild :: HG3DClass -> Int -> Vec3 -> Quaternion -> IO (HG3DClass)
createChild a1 a2 a3 a4 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromIntegral a2} in
withVec3 a3 $ \a3' ->
withQuaternion a4 $ \a4' ->
alloca $ \a5' ->
createChild'_ a1' a2' a3' a4' a5' >>= \res ->
peek a5'>>= \a5'' ->
return (a5'')
getHandle :: HG3DClass -> IO (Int)
getHandle a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getHandle'_ a1' a2' >>= \res ->
peekIntConv a2'>>= \a2'' ->
return (a2'')
setBindingPose :: HG3DClass -> IO ()
setBindingPose a1 =
withHG3DClass a1 $ \a1' ->
setBindingPose'_ a1' >>= \res ->
return ()
reset :: HG3DClass -> IO ()
reset a1 =
withHG3DClass a1 $ \a1' ->
reset'_ a1' >>= \res ->
return ()
setManuallyControlled :: HG3DClass -> Bool -> IO ()
setManuallyControlled a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromBool a2} in
setManuallyControlled'_ a1' a2' >>= \res ->
return ()
isManuallyControlled :: HG3DClass -> IO (Bool)
isManuallyControlled a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isManuallyControlled'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
needUpdate :: HG3DClass -> Bool -> IO ()
needUpdate a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromBool a2} in
needUpdate'_ a1' a2' >>= \res ->
return ()
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h ogre_bn_destruct"
delete'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h ogre_bn_createChild"
createChild'_ :: ((HG3DClassPtr) -> (CUShort -> ((Vec3Ptr) -> ((QuaternionPtr) -> ((HG3DClassPtr) -> (IO ()))))))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h ogre_bn_getHandle"
getHandle'_ :: ((HG3DClassPtr) -> ((Ptr CUShort) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h ogre_bn_setBindingPose"
setBindingPose'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h ogre_bn_reset"
reset'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h ogre_bn_setManuallyControlled"
setManuallyControlled'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h ogre_bn_isManuallyControlled"
isManuallyControlled'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Ogre\\ClassBone.chs.h ogre_bn_needUpdate"
needUpdate'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))