{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Camera.Unsafe (
SDL3.Sys.Bindgen.Camera.Unsafe.sDL_GetNumCameraDrivers,
SDL3.Sys.Bindgen.Camera.Unsafe.sDL_GetCameraDriver,
SDL3.Sys.Bindgen.Camera.Unsafe.sDL_GetCurrentCameraDriver,
SDL3.Sys.Bindgen.Camera.Unsafe.sDL_GetCameras,
SDL3.Sys.Bindgen.Camera.Unsafe.sDL_GetCameraSupportedFormats,
SDL3.Sys.Bindgen.Camera.Unsafe.sDL_GetCameraName,
SDL3.Sys.Bindgen.Camera.Unsafe.sDL_GetCameraPosition,
SDL3.Sys.Bindgen.Camera.Unsafe.sDL_OpenCamera,
SDL3.Sys.Bindgen.Camera.Unsafe.sDL_GetCameraPermissionState,
SDL3.Sys.Bindgen.Camera.Unsafe.sDL_GetCameraID,
SDL3.Sys.Bindgen.Camera.Unsafe.sDL_GetCameraProperties,
SDL3.Sys.Bindgen.Camera.Unsafe.sDL_GetCameraFormat,
SDL3.Sys.Bindgen.Camera.Unsafe.sDL_AcquireCameraFrame,
SDL3.Sys.Bindgen.Camera.Unsafe.sDL_ReleaseCameraFrame,
SDL3.Sys.Bindgen.Camera.Unsafe.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_d6f6e8f18fc1b811 (void)"
, "{"
, " return (SDL_GetNumCameraDrivers)();"
, "}"
, "char const *hs_bindgen_fab707b0b898d9a8 ("
, " signed int arg1"
, ")"
, "{"
, " return (SDL_GetCameraDriver)(arg1);"
, "}"
, "char const *hs_bindgen_f63a9ad2baa64d58 (void)"
, "{"
, " return (SDL_GetCurrentCameraDriver)();"
, "}"
, "SDL_CameraID *hs_bindgen_6eb690904608f448 ("
, " signed int *arg1"
, ")"
, "{"
, " return (SDL_GetCameras)(arg1);"
, "}"
, "SDL_CameraSpec **hs_bindgen_298ed5d6dee5e9d7 ("
, " SDL_CameraID arg1,"
, " signed int *arg2"
, ")"
, "{"
, " return (SDL_GetCameraSupportedFormats)(arg1, arg2);"
, "}"
, "char const *hs_bindgen_13f9855710ed88cb ("
, " SDL_CameraID arg1"
, ")"
, "{"
, " return (SDL_GetCameraName)(arg1);"
, "}"
, "SDL_CameraPosition hs_bindgen_cb5fce5ed4c39502 ("
, " SDL_CameraID arg1"
, ")"
, "{"
, " return (SDL_GetCameraPosition)(arg1);"
, "}"
, "SDL_Camera *hs_bindgen_7076142551220212 ("
, " 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_43f06cfe20bf363a ("
, " SDL_Camera *arg1"
, ")"
, "{"
, " return (SDL_GetCameraPermissionState)(arg1);"
, "}"
, "SDL_CameraID hs_bindgen_ece1966e90c73584 ("
, " SDL_Camera *arg1"
, ")"
, "{"
, " return (SDL_GetCameraID)(arg1);"
, "}"
, "SDL_PropertiesID hs_bindgen_f62fda07cbce2ead ("
, " SDL_Camera *arg1"
, ")"
, "{"
, " return (SDL_GetCameraProperties)(arg1);"
, "}"
, "_Bool hs_bindgen_42178ba967905119 ("
, " SDL_Camera *arg1,"
, " SDL_CameraSpec *arg2"
, ")"
, "{"
, " return (SDL_GetCameraFormat)(arg1, arg2);"
, "}"
, "SDL_Surface *hs_bindgen_c2cdd3ce6b7ef7cd ("
, " SDL_Camera *arg1,"
, " Uint64 *arg2"
, ")"
, "{"
, " return (SDL_AcquireCameraFrame)(arg1, arg2);"
, "}"
, "void hs_bindgen_faf5d2c09f75fa1b ("
, " SDL_Camera *arg1,"
, " SDL_Surface *arg2"
, ")"
, "{"
, " (SDL_ReleaseCameraFrame)(arg1, arg2);"
, "}"
, "void hs_bindgen_4e7f7c3353027126 ("
, " SDL_Camera *arg1"
, ")"
, "{"
, " (SDL_CloseCamera)(arg1);"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_d6f6e8f18fc1b811"
hs_bindgen_d6f6e8f18fc1b811_base
:: IO BG.CInt
hs_bindgen_d6f6e8f18fc1b811 :: IO BG.CInt
hs_bindgen_d6f6e8f18fc1b811 :: IO CInt
hs_bindgen_d6f6e8f18fc1b811 =
(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_d6f6e8f18fc1b811_base
sDL_GetNumCameraDrivers :: IO BG.CInt
sDL_GetNumCameraDrivers :: IO CInt
sDL_GetNumCameraDrivers = IO CInt
hs_bindgen_d6f6e8f18fc1b811
foreign import ccall unsafe "hs_bindgen_fab707b0b898d9a8"
hs_bindgen_fab707b0b898d9a8_base
:: BG.CInt
-> IO (BG.Ptr BG.Void)
hs_bindgen_fab707b0b898d9a8
:: BG.CInt
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_fab707b0b898d9a8 :: CInt -> IO (PtrConst CChar)
hs_bindgen_fab707b0b898d9a8 =
\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_fab707b0b898d9a8_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_fab707b0b898d9a8
foreign import ccall unsafe "hs_bindgen_f63a9ad2baa64d58"
hs_bindgen_f63a9ad2baa64d58_base
:: IO (BG.Ptr BG.Void)
hs_bindgen_f63a9ad2baa64d58 :: IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_f63a9ad2baa64d58 :: IO (PtrConst CChar)
hs_bindgen_f63a9ad2baa64d58 =
(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_f63a9ad2baa64d58_base
sDL_GetCurrentCameraDriver :: IO (PtrConst.PtrConst BG.CChar)
sDL_GetCurrentCameraDriver :: IO (PtrConst CChar)
sDL_GetCurrentCameraDriver =
IO (PtrConst CChar)
hs_bindgen_f63a9ad2baa64d58
foreign import ccall unsafe "hs_bindgen_6eb690904608f448"
hs_bindgen_6eb690904608f448_base
:: BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_6eb690904608f448
:: BG.Ptr BG.CInt
-> IO (BG.Ptr SDL_CameraID)
hs_bindgen_6eb690904608f448 :: Ptr CInt -> IO (Ptr SDL_CameraID)
hs_bindgen_6eb690904608f448 =
\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_6eb690904608f448_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_6eb690904608f448
foreign import ccall unsafe "hs_bindgen_298ed5d6dee5e9d7"
hs_bindgen_298ed5d6dee5e9d7_base
:: HsBindgen.Runtime.LibC.Word32
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_298ed5d6dee5e9d7
:: SDL_CameraID
-> BG.Ptr BG.CInt
-> IO (BG.Ptr (BG.Ptr SDL_CameraSpec))
hs_bindgen_298ed5d6dee5e9d7 :: SDL_CameraID -> Ptr CInt -> IO (Ptr (Ptr SDL_CameraSpec))
hs_bindgen_298ed5d6dee5e9d7 =
\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_298ed5d6dee5e9d7_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_298ed5d6dee5e9d7
foreign import ccall unsafe "hs_bindgen_13f9855710ed88cb"
hs_bindgen_13f9855710ed88cb_base
:: HsBindgen.Runtime.LibC.Word32
-> IO (BG.Ptr BG.Void)
hs_bindgen_13f9855710ed88cb
:: SDL_CameraID
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_13f9855710ed88cb :: SDL_CameraID -> IO (PtrConst CChar)
hs_bindgen_13f9855710ed88cb =
\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_13f9855710ed88cb_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_13f9855710ed88cb
foreign import ccall unsafe "hs_bindgen_cb5fce5ed4c39502"
hs_bindgen_cb5fce5ed4c39502_base
:: HsBindgen.Runtime.LibC.Word32
-> IO BG.CUInt
hs_bindgen_cb5fce5ed4c39502
:: SDL_CameraID
-> IO SDL_CameraPosition
hs_bindgen_cb5fce5ed4c39502 :: SDL_CameraID -> IO SDL_CameraPosition
hs_bindgen_cb5fce5ed4c39502 =
\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_cb5fce5ed4c39502_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_cb5fce5ed4c39502
foreign import ccall unsafe "hs_bindgen_7076142551220212"
hs_bindgen_7076142551220212_base
:: HsBindgen.Runtime.LibC.Word32
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_7076142551220212
:: SDL_CameraID
-> PtrConst.PtrConst SDL_CameraSpec
-> IO (BG.Ptr SDL_Camera)
hs_bindgen_7076142551220212 :: SDL_CameraID -> PtrConst SDL_CameraSpec -> IO (Ptr SDL_Camera)
hs_bindgen_7076142551220212 =
\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_7076142551220212_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_7076142551220212
foreign import ccall unsafe "hs_bindgen_43f06cfe20bf363a"
hs_bindgen_43f06cfe20bf363a_base
:: BG.Ptr BG.Void
-> IO BG.CInt
hs_bindgen_43f06cfe20bf363a
:: BG.Ptr SDL_Camera
-> IO SDL_CameraPermissionState
hs_bindgen_43f06cfe20bf363a :: Ptr SDL_Camera -> IO SDL_CameraPermissionState
hs_bindgen_43f06cfe20bf363a =
\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_43f06cfe20bf363a_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_43f06cfe20bf363a
foreign import ccall unsafe "hs_bindgen_ece1966e90c73584"
hs_bindgen_ece1966e90c73584_base
:: BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_ece1966e90c73584
:: BG.Ptr SDL_Camera
-> IO SDL_CameraID
hs_bindgen_ece1966e90c73584 :: Ptr SDL_Camera -> IO SDL_CameraID
hs_bindgen_ece1966e90c73584 =
\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_ece1966e90c73584_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_ece1966e90c73584
foreign import ccall unsafe "hs_bindgen_f62fda07cbce2ead"
hs_bindgen_f62fda07cbce2ead_base
:: BG.Ptr BG.Void
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_f62fda07cbce2ead
:: BG.Ptr SDL_Camera
-> IO SDL3.Sys.Bindgen.Properties.SDL_PropertiesID
hs_bindgen_f62fda07cbce2ead :: Ptr SDL_Camera -> IO SDL_PropertiesID
hs_bindgen_f62fda07cbce2ead =
\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_f62fda07cbce2ead_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_f62fda07cbce2ead
foreign import ccall unsafe "hs_bindgen_42178ba967905119"
hs_bindgen_42178ba967905119_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_42178ba967905119
:: BG.Ptr SDL_Camera
-> BG.Ptr SDL_CameraSpec
-> IO BG.CBool
hs_bindgen_42178ba967905119 :: Ptr SDL_Camera -> Ptr SDL_CameraSpec -> IO CBool
hs_bindgen_42178ba967905119 =
\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_42178ba967905119_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_42178ba967905119
foreign import ccall unsafe "hs_bindgen_c2cdd3ce6b7ef7cd"
hs_bindgen_c2cdd3ce6b7ef7cd_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO (BG.Ptr BG.Void)
hs_bindgen_c2cdd3ce6b7ef7cd
:: BG.Ptr SDL_Camera
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint64
-> IO (BG.Ptr SDL3.Sys.Bindgen.Surface.SDL_Surface)
hs_bindgen_c2cdd3ce6b7ef7cd :: Ptr SDL_Camera -> Ptr Uint64 -> IO (Ptr SDL_Surface)
hs_bindgen_c2cdd3ce6b7ef7cd =
\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_c2cdd3ce6b7ef7cd_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_c2cdd3ce6b7ef7cd
foreign import ccall unsafe "hs_bindgen_faf5d2c09f75fa1b"
hs_bindgen_faf5d2c09f75fa1b_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_faf5d2c09f75fa1b
:: BG.Ptr SDL_Camera
-> BG.Ptr SDL3.Sys.Bindgen.Surface.SDL_Surface
-> IO ()
hs_bindgen_faf5d2c09f75fa1b :: Ptr SDL_Camera -> Ptr SDL_Surface -> IO ()
hs_bindgen_faf5d2c09f75fa1b =
\Ptr SDL_Camera
x0 ->
\Ptr SDL_Surface
x1 ->
Ptr Void -> Ptr Void -> IO ()
hs_bindgen_faf5d2c09f75fa1b_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_faf5d2c09f75fa1b
foreign import ccall unsafe "hs_bindgen_4e7f7c3353027126"
hs_bindgen_4e7f7c3353027126_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_4e7f7c3353027126
:: BG.Ptr SDL_Camera
-> IO ()
hs_bindgen_4e7f7c3353027126 :: Ptr SDL_Camera -> IO ()
hs_bindgen_4e7f7c3353027126 =
\Ptr SDL_Camera
x0 ->
Ptr Void -> IO ()
hs_bindgen_4e7f7c3353027126_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_4e7f7c3353027126