{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Camera.Safe (
SDL3.Sys.Bindgen.Camera.Safe.sDL_GetNumCameraDrivers,
SDL3.Sys.Bindgen.Camera.Safe.sDL_GetCameraDriver,
SDL3.Sys.Bindgen.Camera.Safe.sDL_GetCurrentCameraDriver,
SDL3.Sys.Bindgen.Camera.Safe.sDL_GetCameras,
SDL3.Sys.Bindgen.Camera.Safe.sDL_GetCameraSupportedFormats,
SDL3.Sys.Bindgen.Camera.Safe.sDL_GetCameraName,
SDL3.Sys.Bindgen.Camera.Safe.sDL_GetCameraPosition,
SDL3.Sys.Bindgen.Camera.Safe.sDL_OpenCamera,
SDL3.Sys.Bindgen.Camera.Safe.sDL_GetCameraPermissionState,
SDL3.Sys.Bindgen.Camera.Safe.sDL_GetCameraID,
SDL3.Sys.Bindgen.Camera.Safe.sDL_GetCameraProperties,
SDL3.Sys.Bindgen.Camera.Safe.sDL_GetCameraFormat,
SDL3.Sys.Bindgen.Camera.Safe.sDL_AcquireCameraFrame,
SDL3.Sys.Bindgen.Camera.Safe.sDL_ReleaseCameraFrame,
SDL3.Sys.Bindgen.Camera.Safe.sDL_CloseCamera,
)
where
import Prelude (IO, fmap)
import HsBindgen.Runtime.LibC qualified
import HsBindgen.Runtime.PtrConst qualified as PtrConst
import HsBindgen.Runtime.Support qualified as BG
import HsBindgen.Runtime.Support.CAPI qualified
import SDL3.Sys.Bindgen.Camera
import SDL3.Sys.Bindgen.Properties qualified
import SDL3.Sys.Bindgen.Stdinc qualified
import SDL3.Sys.Bindgen.Surface qualified
$( HsBindgen.Runtime.Support.CAPI.addCSource
( HsBindgen.Runtime.Support.CAPI.unlines
[ "#define SDL_MAIN_HANDLED"
, "#define SDL_SLOW_MEMCPY"
, "#define SDL_SLOW_MEMMOVE"
, "#define SDL_SLOW_MEMSET"
, "#include <SDL3/SDL_camera.h>"
, "signed int hs_bindgen_cd72562c40895f9d (void)"
, "{"
, " return (SDL_GetNumCameraDrivers)();"
, "}"
, "char const *hs_bindgen_1b2353edfbc61157 ("
, " signed int arg1"
, ")"
, "{"
, " return (SDL_GetCameraDriver)(arg1);"
, "}"
, "char const *hs_bindgen_eb2b917f28fc96fd (void)"
, "{"
, " return (SDL_GetCurrentCameraDriver)();"
, "}"
, "SDL_CameraID *hs_bindgen_1ba2aef0a8cc6032 ("
, " signed int *arg1"
, ")"
, "{"
, " return (SDL_GetCameras)(arg1);"
, "}"
, "SDL_CameraSpec **hs_bindgen_5a031667f9d45a0d ("
, " SDL_CameraID arg1,"
, " signed int *arg2"
, ")"
, "{"
, " return (SDL_GetCameraSupportedFormats)(arg1, arg2);"
, "}"
, "char const *hs_bindgen_1fe2503ad9612c29 ("
, " SDL_CameraID arg1"
, ")"
, "{"
, " return (SDL_GetCameraName)(arg1);"
, "}"
, "SDL_CameraPosition hs_bindgen_53c0436c6140f231 ("
, " SDL_CameraID arg1"
, ")"
, "{"
, " return (SDL_GetCameraPosition)(arg1);"
, "}"
, "SDL_Camera *hs_bindgen_9c29b271631f7c6f ("
, " SDL_CameraID arg1,"
, " SDL_CameraSpec const *arg2"
, ")"
, "{"
, " return (SDL_OpenCamera)(arg1, arg2);"
, "}"
, "#include <SDL3/SDL_version.h>"
, "#if !SDL_VERSION_ATLEAST(3, 4, 0)"
, "typedef int SDL_CameraPermissionState;"
, "#endif"
, "SDL_CameraPermissionState hs_bindgen_77d5a87752cf6936 ("
, " SDL_Camera *arg1"
, ")"
, "{"
, " return (SDL_GetCameraPermissionState)(arg1);"
, "}"
, "SDL_CameraID hs_bindgen_bcdd620eca919b2e ("
, " SDL_Camera *arg1"
, ")"
, "{"
, " return (SDL_GetCameraID)(arg1);"
, "}"
, "SDL_PropertiesID hs_bindgen_052b8e57c4e6c7b6 ("
, " SDL_Camera *arg1"
, ")"
, "{"
, " return (SDL_GetCameraProperties)(arg1);"
, "}"
, "_Bool hs_bindgen_077520cc55e1919f ("
, " SDL_Camera *arg1,"
, " SDL_CameraSpec *arg2"
, ")"
, "{"
, " return (SDL_GetCameraFormat)(arg1, arg2);"
, "}"
, "SDL_Surface *hs_bindgen_ea5de39cea6d2cc9 ("
, " SDL_Camera *arg1,"
, " Uint64 *arg2"
, ")"
, "{"
, " return (SDL_AcquireCameraFrame)(arg1, arg2);"
, "}"
, "void hs_bindgen_9abaf64e06b4eeb3 ("
, " SDL_Camera *arg1,"
, " SDL_Surface *arg2"
, ")"
, "{"
, " (SDL_ReleaseCameraFrame)(arg1, arg2);"
, "}"
, "void hs_bindgen_2ca914bb2dfa2f4d ("
, " SDL_Camera *arg1"
, ")"
, "{"
, " (SDL_CloseCamera)(arg1);"
, "}"
]
)
)
foreign import ccall safe "hs_bindgen_cd72562c40895f9d"
hs_bindgen_cd72562c40895f9d_base
:: IO BG.CInt
hs_bindgen_cd72562c40895f9d :: IO BG.CInt
hs_bindgen_cd72562c40895f9d :: IO CInt
hs_bindgen_cd72562c40895f9d =
(CInt -> CInt) -> IO CInt -> IO CInt
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CInt -> CInt
FFIType CInt -> CInt
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO CInt
hs_bindgen_cd72562c40895f9d_base
sDL_GetNumCameraDrivers :: IO BG.CInt
sDL_GetNumCameraDrivers :: IO CInt
sDL_GetNumCameraDrivers = IO CInt
hs_bindgen_cd72562c40895f9d
foreign import ccall safe "hs_bindgen_1b2353edfbc61157"
hs_bindgen_1b2353edfbc61157_base
:: BG.CInt
-> IO (BG.Ptr BG.Void)
hs_bindgen_1b2353edfbc61157
:: BG.CInt
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_1b2353edfbc61157 :: CInt -> IO (PtrConst CChar)
hs_bindgen_1b2353edfbc61157 =
\CInt
x0 ->
(Ptr Void -> PtrConst CChar)
-> IO (Ptr Void) -> IO (PtrConst CChar)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> PtrConst CChar
FFIType (PtrConst CChar) -> PtrConst CChar
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (CInt -> IO (Ptr Void)
hs_bindgen_1b2353edfbc61157_base (CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x0))
sDL_GetCameraDriver
:: BG.CInt
-> IO (PtrConst.PtrConst BG.CChar)
sDL_GetCameraDriver :: CInt -> IO (PtrConst CChar)
sDL_GetCameraDriver = CInt -> IO (PtrConst CChar)
hs_bindgen_1b2353edfbc61157
foreign import ccall safe "hs_bindgen_eb2b917f28fc96fd"
hs_bindgen_eb2b917f28fc96fd_base
:: IO (BG.Ptr BG.Void)
hs_bindgen_eb2b917f28fc96fd :: IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_eb2b917f28fc96fd :: IO (PtrConst CChar)
hs_bindgen_eb2b917f28fc96fd =
(Ptr Void -> PtrConst CChar)
-> IO (Ptr Void) -> IO (PtrConst CChar)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> PtrConst CChar
FFIType (PtrConst CChar) -> PtrConst CChar
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType IO (Ptr Void)
hs_bindgen_eb2b917f28fc96fd_base
sDL_GetCurrentCameraDriver :: IO (PtrConst.PtrConst BG.CChar)
sDL_GetCurrentCameraDriver :: IO (PtrConst CChar)
sDL_GetCurrentCameraDriver =
IO (PtrConst CChar)
hs_bindgen_eb2b917f28fc96fd
foreign import ccall safe "hs_bindgen_1ba2aef0a8cc6032"
hs_bindgen_1ba2aef0a8cc6032_base
:: BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_1ba2aef0a8cc6032
:: BG.Ptr BG.CInt
-> IO (BG.Ptr SDL_CameraID)
hs_bindgen_1ba2aef0a8cc6032 :: Ptr CInt -> IO (Ptr SDL_CameraID)
hs_bindgen_1ba2aef0a8cc6032 =
\Ptr CInt
x0 ->
(Ptr Void -> Ptr SDL_CameraID)
-> IO (Ptr Void) -> IO (Ptr SDL_CameraID)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> Ptr SDL_CameraID
FFIType (Ptr SDL_CameraID) -> Ptr SDL_CameraID
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO (Ptr Void)
hs_bindgen_1ba2aef0a8cc6032_base (Ptr CInt -> FFIType (Ptr CInt)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr CInt
x0))
sDL_GetCameras
:: BG.Ptr BG.CInt
-> IO (BG.Ptr SDL_CameraID)
sDL_GetCameras :: Ptr CInt -> IO (Ptr SDL_CameraID)
sDL_GetCameras = Ptr CInt -> IO (Ptr SDL_CameraID)
hs_bindgen_1ba2aef0a8cc6032
foreign import ccall safe "hs_bindgen_5a031667f9d45a0d"
hs_bindgen_5a031667f9d45a0d_base
:: HsBindgen.Runtime.LibC.Word32
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_5a031667f9d45a0d
:: SDL_CameraID
-> BG.Ptr BG.CInt
-> IO (BG.Ptr (BG.Ptr SDL_CameraSpec))
hs_bindgen_5a031667f9d45a0d :: SDL_CameraID -> Ptr CInt -> IO (Ptr (Ptr SDL_CameraSpec))
hs_bindgen_5a031667f9d45a0d =
\SDL_CameraID
x0 ->
\Ptr CInt
x1 ->
(Ptr Void -> Ptr (Ptr SDL_CameraSpec))
-> IO (Ptr Void) -> IO (Ptr (Ptr SDL_CameraSpec))
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> Ptr (Ptr SDL_CameraSpec)
FFIType (Ptr (Ptr SDL_CameraSpec)) -> Ptr (Ptr SDL_CameraSpec)
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Word32 -> Ptr Void -> IO (Ptr Void)
hs_bindgen_5a031667f9d45a0d_base (SDL_CameraID -> FFIType SDL_CameraID
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_CameraID
x0) (Ptr CInt -> FFIType (Ptr CInt)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr CInt
x1))
sDL_GetCameraSupportedFormats
:: SDL_CameraID
-> BG.Ptr BG.CInt
-> IO (BG.Ptr (BG.Ptr SDL_CameraSpec))
sDL_GetCameraSupportedFormats :: SDL_CameraID -> Ptr CInt -> IO (Ptr (Ptr SDL_CameraSpec))
sDL_GetCameraSupportedFormats =
SDL_CameraID -> Ptr CInt -> IO (Ptr (Ptr SDL_CameraSpec))
hs_bindgen_5a031667f9d45a0d
foreign import ccall safe "hs_bindgen_1fe2503ad9612c29"
hs_bindgen_1fe2503ad9612c29_base
:: HsBindgen.Runtime.LibC.Word32
-> IO (BG.Ptr BG.Void)
hs_bindgen_1fe2503ad9612c29
:: SDL_CameraID
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_1fe2503ad9612c29 :: SDL_CameraID -> IO (PtrConst CChar)
hs_bindgen_1fe2503ad9612c29 =
\SDL_CameraID
x0 ->
(Ptr Void -> PtrConst CChar)
-> IO (Ptr Void) -> IO (PtrConst CChar)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> PtrConst CChar
FFIType (PtrConst CChar) -> PtrConst CChar
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Word32 -> IO (Ptr Void)
hs_bindgen_1fe2503ad9612c29_base (SDL_CameraID -> FFIType SDL_CameraID
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_CameraID
x0))
sDL_GetCameraName
:: SDL_CameraID
-> IO (PtrConst.PtrConst BG.CChar)
sDL_GetCameraName :: SDL_CameraID -> IO (PtrConst CChar)
sDL_GetCameraName = SDL_CameraID -> IO (PtrConst CChar)
hs_bindgen_1fe2503ad9612c29
foreign import ccall safe "hs_bindgen_53c0436c6140f231"
hs_bindgen_53c0436c6140f231_base
:: HsBindgen.Runtime.LibC.Word32
-> IO BG.CUInt
hs_bindgen_53c0436c6140f231
:: SDL_CameraID
-> IO SDL_CameraPosition
hs_bindgen_53c0436c6140f231 :: SDL_CameraID -> IO SDL_CameraPosition
hs_bindgen_53c0436c6140f231 =
\SDL_CameraID
x0 ->
(CUInt -> SDL_CameraPosition) -> IO CUInt -> IO SDL_CameraPosition
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CUInt -> SDL_CameraPosition
FFIType SDL_CameraPosition -> SDL_CameraPosition
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Word32 -> IO CUInt
hs_bindgen_53c0436c6140f231_base (SDL_CameraID -> FFIType SDL_CameraID
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_CameraID
x0))
sDL_GetCameraPosition
:: SDL_CameraID
-> IO SDL_CameraPosition
sDL_GetCameraPosition :: SDL_CameraID -> IO SDL_CameraPosition
sDL_GetCameraPosition = SDL_CameraID -> IO SDL_CameraPosition
hs_bindgen_53c0436c6140f231
foreign import ccall safe "hs_bindgen_9c29b271631f7c6f"
hs_bindgen_9c29b271631f7c6f_base
:: HsBindgen.Runtime.LibC.Word32
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_9c29b271631f7c6f
:: SDL_CameraID
-> PtrConst.PtrConst SDL_CameraSpec
-> IO (BG.Ptr SDL_Camera)
hs_bindgen_9c29b271631f7c6f :: SDL_CameraID -> PtrConst SDL_CameraSpec -> IO (Ptr SDL_Camera)
hs_bindgen_9c29b271631f7c6f =
\SDL_CameraID
x0 ->
\PtrConst SDL_CameraSpec
x1 ->
(Ptr Void -> Ptr SDL_Camera)
-> IO (Ptr Void) -> IO (Ptr SDL_Camera)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> Ptr SDL_Camera
FFIType (Ptr SDL_Camera) -> Ptr SDL_Camera
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Word32 -> Ptr Void -> IO (Ptr Void)
hs_bindgen_9c29b271631f7c6f_base (SDL_CameraID -> FFIType SDL_CameraID
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_CameraID
x0) (PtrConst SDL_CameraSpec -> FFIType (PtrConst SDL_CameraSpec)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst SDL_CameraSpec
x1))
sDL_OpenCamera
:: SDL_CameraID
-> PtrConst.PtrConst SDL_CameraSpec
-> IO (BG.Ptr SDL_Camera)
sDL_OpenCamera :: SDL_CameraID -> PtrConst SDL_CameraSpec -> IO (Ptr SDL_Camera)
sDL_OpenCamera = SDL_CameraID -> PtrConst SDL_CameraSpec -> IO (Ptr SDL_Camera)
hs_bindgen_9c29b271631f7c6f
foreign import ccall safe "hs_bindgen_77d5a87752cf6936"
hs_bindgen_77d5a87752cf6936_base
:: BG.Ptr BG.Void
-> IO BG.CInt
hs_bindgen_77d5a87752cf6936
:: BG.Ptr SDL_Camera
-> IO SDL_CameraPermissionState
hs_bindgen_77d5a87752cf6936 :: Ptr SDL_Camera -> IO SDL_CameraPermissionState
hs_bindgen_77d5a87752cf6936 =
\Ptr SDL_Camera
x0 ->
(CInt -> SDL_CameraPermissionState)
-> IO CInt -> IO SDL_CameraPermissionState
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CInt -> SDL_CameraPermissionState
FFIType SDL_CameraPermissionState -> SDL_CameraPermissionState
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO CInt
hs_bindgen_77d5a87752cf6936_base (Ptr SDL_Camera -> FFIType (Ptr SDL_Camera)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Camera
x0))
sDL_GetCameraPermissionState
:: BG.Ptr SDL_Camera
-> IO SDL_CameraPermissionState
sDL_GetCameraPermissionState :: Ptr SDL_Camera -> IO SDL_CameraPermissionState
sDL_GetCameraPermissionState =
Ptr SDL_Camera -> IO SDL_CameraPermissionState
hs_bindgen_77d5a87752cf6936
foreign import ccall safe "hs_bindgen_bcdd620eca919b2e"
hs_bindgen_bcdd620eca919b2e_base
:: BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_bcdd620eca919b2e
:: BG.Ptr SDL_Camera
-> IO SDL_CameraID
hs_bindgen_bcdd620eca919b2e :: Ptr SDL_Camera -> IO SDL_CameraID
hs_bindgen_bcdd620eca919b2e =
\Ptr SDL_Camera
x0 ->
(Word32 -> SDL_CameraID) -> IO Word32 -> IO SDL_CameraID
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Word32 -> SDL_CameraID
FFIType SDL_CameraID -> SDL_CameraID
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO Word32
hs_bindgen_bcdd620eca919b2e_base (Ptr SDL_Camera -> FFIType (Ptr SDL_Camera)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Camera
x0))
sDL_GetCameraID
:: BG.Ptr SDL_Camera
-> IO SDL_CameraID
sDL_GetCameraID :: Ptr SDL_Camera -> IO SDL_CameraID
sDL_GetCameraID = Ptr SDL_Camera -> IO SDL_CameraID
hs_bindgen_bcdd620eca919b2e
foreign import ccall safe "hs_bindgen_052b8e57c4e6c7b6"
hs_bindgen_052b8e57c4e6c7b6_base
:: BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_052b8e57c4e6c7b6
:: BG.Ptr SDL_Camera
-> IO SDL3.Sys.Bindgen.Properties.SDL_PropertiesID
hs_bindgen_052b8e57c4e6c7b6 :: Ptr SDL_Camera -> IO SDL_PropertiesID
hs_bindgen_052b8e57c4e6c7b6 =
\Ptr SDL_Camera
x0 ->
(Word32 -> SDL_PropertiesID) -> IO Word32 -> IO SDL_PropertiesID
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Word32 -> SDL_PropertiesID
FFIType SDL_PropertiesID -> SDL_PropertiesID
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> IO Word32
hs_bindgen_052b8e57c4e6c7b6_base (Ptr SDL_Camera -> FFIType (Ptr SDL_Camera)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Camera
x0))
sDL_GetCameraProperties
:: BG.Ptr SDL_Camera
-> IO SDL3.Sys.Bindgen.Properties.SDL_PropertiesID
sDL_GetCameraProperties :: Ptr SDL_Camera -> IO SDL_PropertiesID
sDL_GetCameraProperties = Ptr SDL_Camera -> IO SDL_PropertiesID
hs_bindgen_052b8e57c4e6c7b6
foreign import ccall safe "hs_bindgen_077520cc55e1919f"
hs_bindgen_077520cc55e1919f_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_077520cc55e1919f
:: BG.Ptr SDL_Camera
-> BG.Ptr SDL_CameraSpec
-> IO BG.CBool
hs_bindgen_077520cc55e1919f :: Ptr SDL_Camera -> Ptr SDL_CameraSpec -> IO CBool
hs_bindgen_077520cc55e1919f =
\Ptr SDL_Camera
x0 ->
\Ptr SDL_CameraSpec
x1 ->
(CBool -> CBool) -> IO CBool -> IO CBool
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap CBool -> CBool
FFIType CBool -> CBool
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> Ptr Void -> IO CBool
hs_bindgen_077520cc55e1919f_base (Ptr SDL_Camera -> FFIType (Ptr SDL_Camera)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Camera
x0) (Ptr SDL_CameraSpec -> FFIType (Ptr SDL_CameraSpec)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_CameraSpec
x1))
sDL_GetCameraFormat
:: BG.Ptr SDL_Camera
-> BG.Ptr SDL_CameraSpec
-> IO BG.CBool
sDL_GetCameraFormat :: Ptr SDL_Camera -> Ptr SDL_CameraSpec -> IO CBool
sDL_GetCameraFormat = Ptr SDL_Camera -> Ptr SDL_CameraSpec -> IO CBool
hs_bindgen_077520cc55e1919f
foreign import ccall safe "hs_bindgen_ea5de39cea6d2cc9"
hs_bindgen_ea5de39cea6d2cc9_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_ea5de39cea6d2cc9
:: BG.Ptr SDL_Camera
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint64
-> IO (BG.Ptr SDL3.Sys.Bindgen.Surface.SDL_Surface)
hs_bindgen_ea5de39cea6d2cc9 :: Ptr SDL_Camera -> Ptr Uint64 -> IO (Ptr SDL_Surface)
hs_bindgen_ea5de39cea6d2cc9 =
\Ptr SDL_Camera
x0 ->
\Ptr Uint64
x1 ->
(Ptr Void -> Ptr SDL_Surface)
-> IO (Ptr Void) -> IO (Ptr SDL_Surface)
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap Ptr Void -> Ptr SDL_Surface
FFIType (Ptr SDL_Surface) -> Ptr SDL_Surface
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (Ptr Void -> Ptr Void -> IO (Ptr Void)
hs_bindgen_ea5de39cea6d2cc9_base (Ptr SDL_Camera -> FFIType (Ptr SDL_Camera)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Camera
x0) (Ptr Uint64 -> FFIType (Ptr Uint64)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Uint64
x1))
sDL_AcquireCameraFrame
:: BG.Ptr SDL_Camera
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint64
-> IO (BG.Ptr SDL3.Sys.Bindgen.Surface.SDL_Surface)
sDL_AcquireCameraFrame :: Ptr SDL_Camera -> Ptr Uint64 -> IO (Ptr SDL_Surface)
sDL_AcquireCameraFrame = Ptr SDL_Camera -> Ptr Uint64 -> IO (Ptr SDL_Surface)
hs_bindgen_ea5de39cea6d2cc9
foreign import ccall safe "hs_bindgen_9abaf64e06b4eeb3"
hs_bindgen_9abaf64e06b4eeb3_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_9abaf64e06b4eeb3
:: BG.Ptr SDL_Camera
-> BG.Ptr SDL3.Sys.Bindgen.Surface.SDL_Surface
-> IO ()
hs_bindgen_9abaf64e06b4eeb3 :: Ptr SDL_Camera -> Ptr SDL_Surface -> IO ()
hs_bindgen_9abaf64e06b4eeb3 =
\Ptr SDL_Camera
x0 ->
\Ptr SDL_Surface
x1 ->
Ptr Void -> Ptr Void -> IO ()
hs_bindgen_9abaf64e06b4eeb3_base (Ptr SDL_Camera -> FFIType (Ptr SDL_Camera)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Camera
x0) (Ptr SDL_Surface -> FFIType (Ptr SDL_Surface)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Surface
x1)
sDL_ReleaseCameraFrame
:: BG.Ptr SDL_Camera
-> BG.Ptr SDL3.Sys.Bindgen.Surface.SDL_Surface
-> IO ()
sDL_ReleaseCameraFrame :: Ptr SDL_Camera -> Ptr SDL_Surface -> IO ()
sDL_ReleaseCameraFrame = Ptr SDL_Camera -> Ptr SDL_Surface -> IO ()
hs_bindgen_9abaf64e06b4eeb3
foreign import ccall safe "hs_bindgen_2ca914bb2dfa2f4d"
hs_bindgen_2ca914bb2dfa2f4d_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_2ca914bb2dfa2f4d
:: BG.Ptr SDL_Camera
-> IO ()
hs_bindgen_2ca914bb2dfa2f4d :: Ptr SDL_Camera -> IO ()
hs_bindgen_2ca914bb2dfa2f4d =
\Ptr SDL_Camera
x0 ->
Ptr Void -> IO ()
hs_bindgen_2ca914bb2dfa2f4d_base (Ptr SDL_Camera -> FFIType (Ptr SDL_Camera)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Camera
x0)
sDL_CloseCamera
:: BG.Ptr SDL_Camera
-> IO ()
sDL_CloseCamera :: Ptr SDL_Camera -> IO ()
sDL_CloseCamera = Ptr SDL_Camera -> IO ()
hs_bindgen_2ca914bb2dfa2f4d