{-# LANGUAGE ForeignFunctionInterface #-}
{-# LANGUAGE TemplateHaskell #-}
{-# LANGUAGE NoFieldSelectors #-}
{-# LANGUAGE NoImplicitPrelude #-}
{-# OPTIONS_HADDOCK prune #-}
module SDL3.Sys.Bindgen.Pixels.Unsafe (
SDL3.Sys.Bindgen.Pixels.Unsafe.sDL_GetPixelFormatName,
SDL3.Sys.Bindgen.Pixels.Unsafe.sDL_GetMasksForPixelFormat,
SDL3.Sys.Bindgen.Pixels.Unsafe.sDL_GetPixelFormatForMasks,
SDL3.Sys.Bindgen.Pixels.Unsafe.sDL_GetPixelFormatDetails,
SDL3.Sys.Bindgen.Pixels.Unsafe.sDL_CreatePalette,
SDL3.Sys.Bindgen.Pixels.Unsafe.sDL_SetPaletteColors,
SDL3.Sys.Bindgen.Pixels.Unsafe.sDL_DestroyPalette,
SDL3.Sys.Bindgen.Pixels.Unsafe.sDL_MapRGB,
SDL3.Sys.Bindgen.Pixels.Unsafe.sDL_MapRGBA,
SDL3.Sys.Bindgen.Pixels.Unsafe.sDL_GetRGB,
SDL3.Sys.Bindgen.Pixels.Unsafe.sDL_GetRGBA,
)
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.Pixels
import SDL3.Sys.Bindgen.Stdinc 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_pixels.h>"
, "char const *hs_bindgen_8fbe065b3c4d8879 ("
, " SDL_PixelFormat arg1"
, ")"
, "{"
, " return (SDL_GetPixelFormatName)(arg1);"
, "}"
, "_Bool hs_bindgen_8f634ab31e40ca98 ("
, " SDL_PixelFormat arg1,"
, " signed int *arg2,"
, " Uint32 *arg3,"
, " Uint32 *arg4,"
, " Uint32 *arg5,"
, " Uint32 *arg6"
, ")"
, "{"
, " return (SDL_GetMasksForPixelFormat)(arg1, arg2, arg3, arg4, arg5, arg6);"
, "}"
, "SDL_PixelFormat hs_bindgen_e7620db26f444473 ("
, " signed int arg1,"
, " Uint32 arg2,"
, " Uint32 arg3,"
, " Uint32 arg4,"
, " Uint32 arg5"
, ")"
, "{"
, " return (SDL_GetPixelFormatForMasks)(arg1, arg2, arg3, arg4, arg5);"
, "}"
, "SDL_PixelFormatDetails const *hs_bindgen_d5b09ce14a5ee6cb ("
, " SDL_PixelFormat arg1"
, ")"
, "{"
, " return (SDL_GetPixelFormatDetails)(arg1);"
, "}"
, "SDL_Palette *hs_bindgen_b247627517d074a6 ("
, " signed int arg1"
, ")"
, "{"
, " return (SDL_CreatePalette)(arg1);"
, "}"
, "_Bool hs_bindgen_1db50350d55a3029 ("
, " SDL_Palette *arg1,"
, " SDL_Color const *arg2,"
, " signed int arg3,"
, " signed int arg4"
, ")"
, "{"
, " return (SDL_SetPaletteColors)(arg1, arg2, arg3, arg4);"
, "}"
, "void hs_bindgen_0c5b20ec2209c5f8 ("
, " SDL_Palette *arg1"
, ")"
, "{"
, " (SDL_DestroyPalette)(arg1);"
, "}"
, "Uint32 hs_bindgen_69237948f17500f6 ("
, " SDL_PixelFormatDetails const *arg1,"
, " SDL_Palette const *arg2,"
, " Uint8 arg3,"
, " Uint8 arg4,"
, " Uint8 arg5"
, ")"
, "{"
, " return (SDL_MapRGB)(arg1, arg2, arg3, arg4, arg5);"
, "}"
, "Uint32 hs_bindgen_b496c5a642029802 ("
, " SDL_PixelFormatDetails const *arg1,"
, " SDL_Palette const *arg2,"
, " Uint8 arg3,"
, " Uint8 arg4,"
, " Uint8 arg5,"
, " Uint8 arg6"
, ")"
, "{"
, " return (SDL_MapRGBA)(arg1, arg2, arg3, arg4, arg5, arg6);"
, "}"
, "void hs_bindgen_39f53a47a31a2bfc ("
, " Uint32 arg1,"
, " SDL_PixelFormatDetails const *arg2,"
, " SDL_Palette const *arg3,"
, " Uint8 *arg4,"
, " Uint8 *arg5,"
, " Uint8 *arg6"
, ")"
, "{"
, " (SDL_GetRGB)(arg1, arg2, arg3, arg4, arg5, arg6);"
, "}"
, "void hs_bindgen_5ce2e49df4845c32 ("
, " Uint32 arg1,"
, " SDL_PixelFormatDetails const *arg2,"
, " SDL_Palette const *arg3,"
, " Uint8 *arg4,"
, " Uint8 *arg5,"
, " Uint8 *arg6,"
, " Uint8 *arg7"
, ")"
, "{"
, " (SDL_GetRGBA)(arg1, arg2, arg3, arg4, arg5, arg6, arg7);"
, "}"
]
)
)
foreign import ccall unsafe "hs_bindgen_8fbe065b3c4d8879"
hs_bindgen_8fbe065b3c4d8879_base
:: BG.CUInt
-> IO (BG.Ptr BG.Void)
hs_bindgen_8fbe065b3c4d8879
:: SDL_PixelFormat
-> IO (PtrConst.PtrConst BG.CChar)
hs_bindgen_8fbe065b3c4d8879 :: SDL_PixelFormat -> IO (PtrConst CChar)
hs_bindgen_8fbe065b3c4d8879 =
\SDL_PixelFormat
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 (CUInt -> IO (Ptr Void)
hs_bindgen_8fbe065b3c4d8879_base (SDL_PixelFormat -> FFIType SDL_PixelFormat
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_PixelFormat
x0))
sDL_GetPixelFormatName
:: SDL_PixelFormat
-> IO (PtrConst.PtrConst BG.CChar)
sDL_GetPixelFormatName :: SDL_PixelFormat -> IO (PtrConst CChar)
sDL_GetPixelFormatName = SDL_PixelFormat -> IO (PtrConst CChar)
hs_bindgen_8fbe065b3c4d8879
foreign import ccall unsafe "hs_bindgen_8f634ab31e40ca98"
hs_bindgen_8f634ab31e40ca98_base
:: BG.CUInt
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO BG.CBool
hs_bindgen_8f634ab31e40ca98
:: SDL_PixelFormat
-> BG.Ptr BG.CInt
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
hs_bindgen_8f634ab31e40ca98 :: SDL_PixelFormat
-> Ptr CInt
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> IO CBool
hs_bindgen_8f634ab31e40ca98 =
\SDL_PixelFormat
x0 ->
\Ptr CInt
x1 ->
\Ptr Uint32
x2 ->
\Ptr Uint32
x3 ->
\Ptr Uint32
x4 ->
\Ptr Uint32
x5 ->
(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
( CUInt
-> Ptr Void
-> Ptr Void
-> Ptr Void
-> Ptr Void
-> Ptr Void
-> IO CBool
hs_bindgen_8f634ab31e40ca98_base
(SDL_PixelFormat -> FFIType SDL_PixelFormat
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_PixelFormat
x0)
(Ptr CInt -> FFIType (Ptr CInt)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr CInt
x1)
(Ptr Uint32 -> FFIType (Ptr Uint32)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Uint32
x2)
(Ptr Uint32 -> FFIType (Ptr Uint32)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Uint32
x3)
(Ptr Uint32 -> FFIType (Ptr Uint32)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Uint32
x4)
(Ptr Uint32 -> FFIType (Ptr Uint32)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Uint32
x5)
)
sDL_GetMasksForPixelFormat
:: SDL_PixelFormat
-> BG.Ptr BG.CInt
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO BG.CBool
sDL_GetMasksForPixelFormat :: SDL_PixelFormat
-> Ptr CInt
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> IO CBool
sDL_GetMasksForPixelFormat =
SDL_PixelFormat
-> Ptr CInt
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> Ptr Uint32
-> IO CBool
hs_bindgen_8f634ab31e40ca98
foreign import ccall unsafe "hs_bindgen_e7620db26f444473"
hs_bindgen_e7620db26f444473_base
:: BG.CInt
-> HsBindgen.Runtime.LibC.Word32
-> HsBindgen.Runtime.LibC.Word32
-> HsBindgen.Runtime.LibC.Word32
-> HsBindgen.Runtime.LibC.Word32
-> IO BG.CUInt
hs_bindgen_e7620db26f444473
:: BG.CInt
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO SDL_PixelFormat
hs_bindgen_e7620db26f444473 :: CInt -> Uint32 -> Uint32 -> Uint32 -> Uint32 -> IO SDL_PixelFormat
hs_bindgen_e7620db26f444473 =
\CInt
x0 ->
\Uint32
x1 ->
\Uint32
x2 ->
\Uint32
x3 ->
\Uint32
x4 ->
(CUInt -> SDL_PixelFormat) -> IO CUInt -> IO SDL_PixelFormat
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap
CUInt -> SDL_PixelFormat
FFIType SDL_PixelFormat -> SDL_PixelFormat
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType
( CInt -> Word32 -> Word32 -> Word32 -> Word32 -> IO CUInt
hs_bindgen_e7620db26f444473_base
(CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x0)
(Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x1)
(Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x2)
(Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x3)
(Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x4)
)
sDL_GetPixelFormatForMasks
:: BG.CInt
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> SDL3.Sys.Bindgen.Stdinc.Uint32
-> IO SDL_PixelFormat
sDL_GetPixelFormatForMasks :: CInt -> Uint32 -> Uint32 -> Uint32 -> Uint32 -> IO SDL_PixelFormat
sDL_GetPixelFormatForMasks =
CInt -> Uint32 -> Uint32 -> Uint32 -> Uint32 -> IO SDL_PixelFormat
hs_bindgen_e7620db26f444473
foreign import ccall unsafe "hs_bindgen_d5b09ce14a5ee6cb"
hs_bindgen_d5b09ce14a5ee6cb_base
:: BG.CUInt
-> IO (BG.Ptr BG.Void)
hs_bindgen_d5b09ce14a5ee6cb
:: SDL_PixelFormat
-> IO (PtrConst.PtrConst SDL_PixelFormatDetails)
hs_bindgen_d5b09ce14a5ee6cb :: SDL_PixelFormat -> IO (PtrConst SDL_PixelFormatDetails)
hs_bindgen_d5b09ce14a5ee6cb =
\SDL_PixelFormat
x0 ->
(Ptr Void -> PtrConst SDL_PixelFormatDetails)
-> IO (Ptr Void) -> IO (PtrConst SDL_PixelFormatDetails)
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 SDL_PixelFormatDetails
FFIType (PtrConst SDL_PixelFormatDetails)
-> PtrConst SDL_PixelFormatDetails
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (CUInt -> IO (Ptr Void)
hs_bindgen_d5b09ce14a5ee6cb_base (SDL_PixelFormat -> FFIType SDL_PixelFormat
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType SDL_PixelFormat
x0))
sDL_GetPixelFormatDetails
:: SDL_PixelFormat
-> IO (PtrConst.PtrConst SDL_PixelFormatDetails)
sDL_GetPixelFormatDetails :: SDL_PixelFormat -> IO (PtrConst SDL_PixelFormatDetails)
sDL_GetPixelFormatDetails =
SDL_PixelFormat -> IO (PtrConst SDL_PixelFormatDetails)
hs_bindgen_d5b09ce14a5ee6cb
foreign import ccall unsafe "hs_bindgen_b247627517d074a6"
hs_bindgen_b247627517d074a6_base
:: BG.CInt
-> IO (BG.Ptr BG.Void)
hs_bindgen_b247627517d074a6
:: BG.CInt
-> IO (BG.Ptr SDL_Palette)
hs_bindgen_b247627517d074a6 :: CInt -> IO (Ptr SDL_Palette)
hs_bindgen_b247627517d074a6 =
\CInt
x0 ->
(Ptr Void -> Ptr SDL_Palette)
-> IO (Ptr Void) -> IO (Ptr SDL_Palette)
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_Palette
FFIType (Ptr SDL_Palette) -> Ptr SDL_Palette
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType (CInt -> IO (Ptr Void)
hs_bindgen_b247627517d074a6_base (CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x0))
sDL_CreatePalette
:: BG.CInt
-> IO (BG.Ptr SDL_Palette)
sDL_CreatePalette :: CInt -> IO (Ptr SDL_Palette)
sDL_CreatePalette = CInt -> IO (Ptr SDL_Palette)
hs_bindgen_b247627517d074a6
foreign import ccall unsafe "hs_bindgen_1db50350d55a3029"
hs_bindgen_1db50350d55a3029_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.CInt
-> BG.CInt
-> IO BG.CBool
hs_bindgen_1db50350d55a3029
:: BG.Ptr SDL_Palette
-> PtrConst.PtrConst SDL_Color
-> BG.CInt
-> BG.CInt
-> IO BG.CBool
hs_bindgen_1db50350d55a3029 :: Ptr SDL_Palette -> PtrConst SDL_Color -> CInt -> CInt -> IO CBool
hs_bindgen_1db50350d55a3029 =
\Ptr SDL_Palette
x0 ->
\PtrConst SDL_Color
x1 ->
\CInt
x2 ->
\CInt
x3 ->
(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 -> CInt -> CInt -> IO CBool
hs_bindgen_1db50350d55a3029_base
(Ptr SDL_Palette -> FFIType (Ptr SDL_Palette)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Palette
x0)
(PtrConst SDL_Color -> FFIType (PtrConst SDL_Color)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst SDL_Color
x1)
(CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x2)
(CInt -> FFIType CInt
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType CInt
x3)
)
sDL_SetPaletteColors
:: BG.Ptr SDL_Palette
-> PtrConst.PtrConst SDL_Color
-> BG.CInt
-> BG.CInt
-> IO BG.CBool
sDL_SetPaletteColors :: Ptr SDL_Palette -> PtrConst SDL_Color -> CInt -> CInt -> IO CBool
sDL_SetPaletteColors = Ptr SDL_Palette -> PtrConst SDL_Color -> CInt -> CInt -> IO CBool
hs_bindgen_1db50350d55a3029
foreign import ccall unsafe "hs_bindgen_0c5b20ec2209c5f8"
hs_bindgen_0c5b20ec2209c5f8_base
:: BG.Ptr BG.Void
-> IO ()
hs_bindgen_0c5b20ec2209c5f8
:: BG.Ptr SDL_Palette
-> IO ()
hs_bindgen_0c5b20ec2209c5f8 :: Ptr SDL_Palette -> IO ()
hs_bindgen_0c5b20ec2209c5f8 =
\Ptr SDL_Palette
x0 ->
Ptr Void -> IO ()
hs_bindgen_0c5b20ec2209c5f8_base (Ptr SDL_Palette -> FFIType (Ptr SDL_Palette)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr SDL_Palette
x0)
sDL_DestroyPalette
:: BG.Ptr SDL_Palette
-> IO ()
sDL_DestroyPalette :: Ptr SDL_Palette -> IO ()
sDL_DestroyPalette = Ptr SDL_Palette -> IO ()
hs_bindgen_0c5b20ec2209c5f8
foreign import ccall unsafe "hs_bindgen_69237948f17500f6"
hs_bindgen_69237948f17500f6_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word8
-> HsBindgen.Runtime.LibC.Word8
-> HsBindgen.Runtime.LibC.Word8
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_69237948f17500f6
:: PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
hs_bindgen_69237948f17500f6 :: PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette -> Uint8 -> Uint8 -> Uint8 -> IO Uint32
hs_bindgen_69237948f17500f6 =
\PtrConst SDL_PixelFormatDetails
x0 ->
\PtrConst SDL_Palette
x1 ->
\Uint8
x2 ->
\Uint8
x3 ->
\Uint8
x4 ->
(Word32 -> Uint32) -> IO Word32 -> IO Uint32
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap
Word32 -> Uint32
FFIType Uint32 -> Uint32
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType
( Ptr Void -> Ptr Void -> Word8 -> Word8 -> Word8 -> IO Word32
hs_bindgen_69237948f17500f6_base
(PtrConst SDL_PixelFormatDetails
-> FFIType (PtrConst SDL_PixelFormatDetails)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst SDL_PixelFormatDetails
x0)
(PtrConst SDL_Palette -> FFIType (PtrConst SDL_Palette)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst SDL_Palette
x1)
(Uint8 -> FFIType Uint8
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint8
x2)
(Uint8 -> FFIType Uint8
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint8
x3)
(Uint8 -> FFIType Uint8
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint8
x4)
)
sDL_MapRGB
:: PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
sDL_MapRGB :: PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette -> Uint8 -> Uint8 -> Uint8 -> IO Uint32
sDL_MapRGB = PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette -> Uint8 -> Uint8 -> Uint8 -> IO Uint32
hs_bindgen_69237948f17500f6
foreign import ccall unsafe "hs_bindgen_b496c5a642029802"
hs_bindgen_b496c5a642029802_base
:: BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> HsBindgen.Runtime.LibC.Word8
-> HsBindgen.Runtime.LibC.Word8
-> HsBindgen.Runtime.LibC.Word8
-> HsBindgen.Runtime.LibC.Word8
-> IO HsBindgen.Runtime.LibC.Word32
hs_bindgen_b496c5a642029802
:: PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
hs_bindgen_b496c5a642029802 :: PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Uint8
-> Uint8
-> Uint8
-> Uint8
-> IO Uint32
hs_bindgen_b496c5a642029802 =
\PtrConst SDL_PixelFormatDetails
x0 ->
\PtrConst SDL_Palette
x1 ->
\Uint8
x2 ->
\Uint8
x3 ->
\Uint8
x4 ->
\Uint8
x5 ->
(Word32 -> Uint32) -> IO Word32 -> IO Uint32
forall a b. (a -> b) -> IO a -> IO b
forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
fmap
Word32 -> Uint32
FFIType Uint32 -> Uint32
forall a. HasFFIType a => FFIType a -> a
BG.fromFFIType
( Ptr Void
-> Ptr Void -> Word8 -> Word8 -> Word8 -> Word8 -> IO Word32
hs_bindgen_b496c5a642029802_base
(PtrConst SDL_PixelFormatDetails
-> FFIType (PtrConst SDL_PixelFormatDetails)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst SDL_PixelFormatDetails
x0)
(PtrConst SDL_Palette -> FFIType (PtrConst SDL_Palette)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst SDL_Palette
x1)
(Uint8 -> FFIType Uint8
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint8
x2)
(Uint8 -> FFIType Uint8
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint8
x3)
(Uint8 -> FFIType Uint8
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint8
x4)
(Uint8 -> FFIType Uint8
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint8
x5)
)
sDL_MapRGBA
:: PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO SDL3.Sys.Bindgen.Stdinc.Uint32
sDL_MapRGBA :: PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Uint8
-> Uint8
-> Uint8
-> Uint8
-> IO Uint32
sDL_MapRGBA = PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Uint8
-> Uint8
-> Uint8
-> Uint8
-> IO Uint32
hs_bindgen_b496c5a642029802
foreign import ccall unsafe "hs_bindgen_39f53a47a31a2bfc"
hs_bindgen_39f53a47a31a2bfc_base
:: HsBindgen.Runtime.LibC.Word32
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_39f53a47a31a2bfc
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO ()
hs_bindgen_39f53a47a31a2bfc :: Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()
hs_bindgen_39f53a47a31a2bfc =
\Uint32
x0 ->
\PtrConst SDL_PixelFormatDetails
x1 ->
\PtrConst SDL_Palette
x2 ->
\Ptr Uint8
x3 ->
\Ptr Uint8
x4 ->
\Ptr Uint8
x5 ->
Word32
-> Ptr Void
-> Ptr Void
-> Ptr Void
-> Ptr Void
-> Ptr Void
-> IO ()
hs_bindgen_39f53a47a31a2bfc_base
(Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x0)
(PtrConst SDL_PixelFormatDetails
-> FFIType (PtrConst SDL_PixelFormatDetails)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst SDL_PixelFormatDetails
x1)
(PtrConst SDL_Palette -> FFIType (PtrConst SDL_Palette)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst SDL_Palette
x2)
(Ptr Uint8 -> FFIType (Ptr Uint8)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Uint8
x3)
(Ptr Uint8 -> FFIType (Ptr Uint8)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Uint8
x4)
(Ptr Uint8 -> FFIType (Ptr Uint8)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Uint8
x5)
sDL_GetRGB
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO ()
sDL_GetRGB :: Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()
sDL_GetRGB = Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()
hs_bindgen_39f53a47a31a2bfc
foreign import ccall unsafe "hs_bindgen_5ce2e49df4845c32"
hs_bindgen_5ce2e49df4845c32_base
:: HsBindgen.Runtime.LibC.Word32
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> BG.Ptr BG.Void
-> IO ()
hs_bindgen_5ce2e49df4845c32
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO ()
hs_bindgen_5ce2e49df4845c32 :: Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()
hs_bindgen_5ce2e49df4845c32 =
\Uint32
x0 ->
\PtrConst SDL_PixelFormatDetails
x1 ->
\PtrConst SDL_Palette
x2 ->
\Ptr Uint8
x3 ->
\Ptr Uint8
x4 ->
\Ptr Uint8
x5 ->
\Ptr Uint8
x6 ->
Word32
-> Ptr Void
-> Ptr Void
-> Ptr Void
-> Ptr Void
-> Ptr Void
-> Ptr Void
-> IO ()
hs_bindgen_5ce2e49df4845c32_base
(Uint32 -> FFIType Uint32
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Uint32
x0)
(PtrConst SDL_PixelFormatDetails
-> FFIType (PtrConst SDL_PixelFormatDetails)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst SDL_PixelFormatDetails
x1)
(PtrConst SDL_Palette -> FFIType (PtrConst SDL_Palette)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType PtrConst SDL_Palette
x2)
(Ptr Uint8 -> FFIType (Ptr Uint8)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Uint8
x3)
(Ptr Uint8 -> FFIType (Ptr Uint8)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Uint8
x4)
(Ptr Uint8 -> FFIType (Ptr Uint8)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Uint8
x5)
(Ptr Uint8 -> FFIType (Ptr Uint8)
forall a. HasFFIType a => a -> FFIType a
BG.toFFIType Ptr Uint8
x6)
sDL_GetRGBA
:: SDL3.Sys.Bindgen.Stdinc.Uint32
-> PtrConst.PtrConst SDL_PixelFormatDetails
-> PtrConst.PtrConst SDL_Palette
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> BG.Ptr SDL3.Sys.Bindgen.Stdinc.Uint8
-> IO ()
sDL_GetRGBA :: Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()
sDL_GetRGBA = Uint32
-> PtrConst SDL_PixelFormatDetails
-> PtrConst SDL_Palette
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> Ptr Uint8
-> IO ()
hs_bindgen_5ce2e49df4845c32