module HGamer3D.Bindings.Bullet.ClassCollisionDispatcher 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.Bullet.Utils
import HGamer3D.Bindings.Bullet.ClassPtr
import HGamer3D.Bindings.Bullet.StructHG3DClass
getDispatcherFlags :: HG3DClass -> IO (Int)
getDispatcherFlags a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getDispatcherFlags'_ a1' a2' >>= \res ->
peekIntConv a2'>>= \a2'' ->
return (a2'')
setDispatcherFlags :: HG3DClass -> Int -> IO ()
setDispatcherFlags a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromIntegral a2} in
setDispatcherFlags'_ a1' a2' >>= \res ->
return ()
getNumManifolds :: HG3DClass -> IO (Int)
getNumManifolds a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getNumManifolds'_ a1' a2' >>= \res ->
peekIntConv a2'>>= \a2'' ->
return (a2'')
new :: HG3DClass -> IO (HG3DClass)
new a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
new'_ a1' a2' >>= \res ->
peek a2'>>= \a2'' ->
return (a2'')
delete :: HG3DClass -> IO ()
delete a1 =
withHG3DClass a1 $ \a1' ->
delete'_ a1' >>= \res ->
return ()
getCollisionConfiguration :: HG3DClass -> IO (HG3DClass)
getCollisionConfiguration a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getCollisionConfiguration'_ a1' a2' >>= \res ->
peek a2'>>= \a2'' ->
return (a2'')
getCollisionConfiguration2 :: HG3DClass -> IO (HG3DClass)
getCollisionConfiguration2 a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getCollisionConfiguration2'_ a1' a2' >>= \res ->
peek a2'>>= \a2'' ->
return (a2'')
setCollisionConfiguration :: HG3DClass -> HG3DClass -> IO ()
setCollisionConfiguration a1 a2 =
withHG3DClass a1 $ \a1' ->
withHG3DClass a2 $ \a2' ->
setCollisionConfiguration'_ a1' a2' >>= \res ->
return ()
foreign import ccall safe "HGamer3D\\Bindings\\Bullet\\ClassCollisionDispatcher.chs.h bt_cllsndpstch_getDispatcherFlags"
getDispatcherFlags'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Bullet\\ClassCollisionDispatcher.chs.h bt_cllsndpstch_setDispatcherFlags"
setDispatcherFlags'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Bullet\\ClassCollisionDispatcher.chs.h bt_cllsndpstch_getNumManifolds"
getNumManifolds'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Bullet\\ClassCollisionDispatcher.chs.h bt_cllsndpstch_construct"
new'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Bullet\\ClassCollisionDispatcher.chs.h bt_cllsndpstch_destruct"
delete'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\Bullet\\ClassCollisionDispatcher.chs.h bt_cllsndpstch_getCollisionConfiguration"
getCollisionConfiguration'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Bullet\\ClassCollisionDispatcher.chs.h bt_cllsndpstch_getCollisionConfiguration2"
getCollisionConfiguration2'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\Bullet\\ClassCollisionDispatcher.chs.h bt_cllsndpstch_setCollisionConfiguration"
setCollisionConfiguration'_ :: ((HG3DClassPtr) -> ((HG3DClassPtr) -> (IO ())))