module HGamer3D.Bindings.SFML.ClassSoundSource 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.SFML.Utils
import HGamer3D.Bindings.SFML.ClassPtr
import HGamer3D.Bindings.SFML.StructHG3DClass
import HGamer3D.Bindings.SFML.StructVec3
delete :: HG3DClass -> IO ()
delete a1 =
withHG3DClass a1 $ \a1' ->
delete'_ a1' >>= \res ->
return ()
setPitch :: HG3DClass -> Float -> IO ()
setPitch a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = realToFrac a2} in
setPitch'_ a1' a2' >>= \res ->
return ()
setVolume :: HG3DClass -> Float -> IO ()
setVolume a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = realToFrac a2} in
setVolume'_ a1' a2' >>= \res ->
return ()
setPosition :: HG3DClass -> Float -> Float -> Float -> IO ()
setPosition a1 a2 a3 a4 =
withHG3DClass a1 $ \a1' ->
let {a2' = realToFrac a2} in
let {a3' = realToFrac a3} in
let {a4' = realToFrac a4} in
setPosition'_ a1' a2' a3' a4' >>= \res ->
return ()
setRelativeToListener :: HG3DClass -> Bool -> IO ()
setRelativeToListener a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = fromBool a2} in
setRelativeToListener'_ a1' a2' >>= \res ->
return ()
setMinDistance :: HG3DClass -> Float -> IO ()
setMinDistance a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = realToFrac a2} in
setMinDistance'_ a1' a2' >>= \res ->
return ()
setAttenuation :: HG3DClass -> Float -> IO ()
setAttenuation a1 a2 =
withHG3DClass a1 $ \a1' ->
let {a2' = realToFrac a2} in
setAttenuation'_ a1' a2' >>= \res ->
return ()
getPitch :: HG3DClass -> IO (Float)
getPitch a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getPitch'_ a1' a2' >>= \res ->
peekFloatConv a2'>>= \a2'' ->
return (a2'')
getVolume :: HG3DClass -> IO (Float)
getVolume a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getVolume'_ a1' a2' >>= \res ->
peekFloatConv a2'>>= \a2'' ->
return (a2'')
getPosition :: HG3DClass -> IO (Vec3)
getPosition a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getPosition'_ a1' a2' >>= \res ->
peekVec3 a2'>>= \a2'' ->
return (a2'')
isRelativeToListener :: HG3DClass -> IO (Bool)
isRelativeToListener a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
isRelativeToListener'_ a1' a2' >>= \res ->
peekBoolUtil a2'>>= \a2'' ->
return (a2'')
getMinDistance :: HG3DClass -> IO (Float)
getMinDistance a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getMinDistance'_ a1' a2' >>= \res ->
peekFloatConv a2'>>= \a2'' ->
return (a2'')
getAttenuation :: HG3DClass -> IO (Float)
getAttenuation a1 =
withHG3DClass a1 $ \a1' ->
alloca $ \a2' ->
getAttenuation'_ a1' a2' >>= \res ->
peekFloatConv a2'>>= \a2'' ->
return (a2'')
foreign import ccall safe "HGamer3D\\Bindings\\SFML\\ClassSoundSource.chs.h sfml_snsr_destruct"
delete'_ :: ((HG3DClassPtr) -> (IO ()))
foreign import ccall safe "HGamer3D\\Bindings\\SFML\\ClassSoundSource.chs.h sfml_snsr_setPitch"
setPitch'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\SFML\\ClassSoundSource.chs.h sfml_snsr_setVolume"
setVolume'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\SFML\\ClassSoundSource.chs.h sfml_snsr_setPosition"
setPosition'_ :: ((HG3DClassPtr) -> (CFloat -> (CFloat -> (CFloat -> (IO ())))))
foreign import ccall safe "HGamer3D\\Bindings\\SFML\\ClassSoundSource.chs.h sfml_snsr_setRelativeToListener"
setRelativeToListener'_ :: ((HG3DClassPtr) -> (CInt -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\SFML\\ClassSoundSource.chs.h sfml_snsr_setMinDistance"
setMinDistance'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\SFML\\ClassSoundSource.chs.h sfml_snsr_setAttenuation"
setAttenuation'_ :: ((HG3DClassPtr) -> (CFloat -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\SFML\\ClassSoundSource.chs.h sfml_snsr_getPitch"
getPitch'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\SFML\\ClassSoundSource.chs.h sfml_snsr_getVolume"
getVolume'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\SFML\\ClassSoundSource.chs.h sfml_snsr_getPosition"
getPosition'_ :: ((HG3DClassPtr) -> ((Vec3Ptr) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\SFML\\ClassSoundSource.chs.h sfml_snsr_isRelativeToListener"
isRelativeToListener'_ :: ((HG3DClassPtr) -> ((Ptr CInt) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\SFML\\ClassSoundSource.chs.h sfml_snsr_getMinDistance"
getMinDistance'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))
foreign import ccall safe "HGamer3D\\Bindings\\SFML\\ClassSoundSource.chs.h sfml_snsr_getAttenuation"
getAttenuation'_ :: ((HG3DClassPtr) -> ((Ptr CFloat) -> (IO ())))