module SDL.Raw.Video (
createWindow,
createWindowAndRenderer,
createWindowFrom,
destroyWindow,
disableScreenSaver,
enableScreenSaver,
glBindTexture,
glCreateContext,
glDeleteContext,
glExtensionSupported,
glGetAttribute,
glGetCurrentContext,
glGetCurrentWindow,
glGetDrawableSize,
glGetProcAddress,
glGetSwapInterval,
glLoadLibrary,
glMakeCurrent,
glResetAttributes,
glSetAttribute,
glSetSwapInterval,
glSwapWindow,
glUnbindTexture,
glUnloadLibrary,
getClosestDisplayMode,
getCurrentDisplayMode,
getCurrentVideoDriver,
getDesktopDisplayMode,
getDisplayBounds,
getDisplayDPI,
getDisplayMode,
getDisplayName,
getGrabbedWindow,
getNumDisplayModes,
getNumVideoDisplays,
getNumVideoDrivers,
getVideoDriver,
getWindowBrightness,
getWindowData,
getWindowDisplayIndex,
getWindowDisplayMode,
getWindowFlags,
getWindowFromID,
getWindowGammaRamp,
getWindowGrab,
getWindowID,
getWindowMaximumSize,
getWindowMinimumSize,
getWindowPixelFormat,
getWindowPosition,
getWindowSize,
getWindowSurface,
getWindowTitle,
hideWindow,
isScreenSaverEnabled,
maximizeWindow,
minimizeWindow,
raiseWindow,
restoreWindow,
setWindowBordered,
setWindowBrightness,
setWindowData,
setWindowDisplayMode,
setWindowFullscreen,
setWindowGammaRamp,
setWindowGrab,
setWindowIcon,
setWindowMaximumSize,
setWindowMinimumSize,
setWindowPosition,
setWindowSize,
setWindowTitle,
showMessageBox,
showSimpleMessageBox,
showWindow,
updateWindowSurface,
updateWindowSurfaceRects,
videoInit,
videoQuit,
createRenderer,
createSoftwareRenderer,
createTexture,
createTextureFromSurface,
destroyRenderer,
destroyTexture,
getNumRenderDrivers,
getRenderDrawBlendMode,
getRenderDrawColor,
getRenderDriverInfo,
getRenderTarget,
getRenderer,
getRendererInfo,
getRendererOutputSize,
getTextureAlphaMod,
getTextureBlendMode,
getTextureColorMod,
lockTexture,
queryTexture,
renderClear,
renderCopy,
renderCopyEx,
renderDrawLine,
renderDrawLines,
renderDrawPoint,
renderDrawPoints,
renderDrawRect,
renderDrawRects,
renderFillRect,
renderFillRectEx,
renderFillRects,
renderGetClipRect,
renderGetLogicalSize,
renderGetScale,
renderGetViewport,
renderIsClipEnabled,
renderPresent,
renderReadPixels,
renderSetClipRect,
renderSetLogicalSize,
renderSetScale,
renderSetViewport,
renderTargetSupported,
setRenderDrawBlendMode,
setRenderDrawColor,
setRenderTarget,
setTextureAlphaMod,
setTextureBlendMode,
setTextureColorMod,
unlockTexture,
updateTexture,
updateYUVTexture,
allocFormat,
allocPalette,
calculateGammaRamp,
freeFormat,
freePalette,
getPixelFormatName,
getRGB,
getRGBA,
mapRGB,
mapRGBA,
masksToPixelFormatEnum,
pixelFormatEnumToMasks,
setPaletteColors,
setPixelFormatPalette,
enclosePoints,
hasIntersection,
intersectRect,
intersectRectAndLine,
unionRect,
blitScaled,
blitSurface,
convertPixels,
convertSurface,
convertSurfaceFormat,
createRGBSurface,
createRGBSurfaceFrom,
fillRect,
fillRects,
freeSurface,
getClipRect,
getColorKey,
getSurfaceAlphaMod,
getSurfaceBlendMode,
getSurfaceColorMod,
loadBMP,
loadBMP_RW,
lockSurface,
lowerBlit,
lowerBlitScaled,
saveBMP,
saveBMP_RW,
setClipRect,
setColorKey,
setSurfaceAlphaMod,
setSurfaceBlendMode,
setSurfaceColorMod,
setSurfacePalette,
setSurfaceRLE,
unlockSurface,
getWindowWMInfo,
getClipboardText,
hasClipboardText,
setClipboardText,
vkLoadLibrary,
vkGetVkGetInstanceProcAddr,
vkUnloadLibrary,
vkGetInstanceExtensions,
vkCreateSurface,
vkGetDrawableSize
) where
import Control.Monad.IO.Class
import Data.Word
import Foreign.C.String
import Foreign.C.Types
import Foreign.Ptr
import SDL.Raw.Enum
import SDL.Raw.Filesystem
import SDL.Raw.Types
foreign import ccall "SDL.h SDL_CreateWindow" createWindowFFI :: CString -> CInt -> CInt -> CInt -> CInt -> Word32 -> IO Window
foreign import ccall "SDL.h SDL_CreateWindowAndRenderer" createWindowAndRendererFFI :: CInt -> CInt -> Word32 -> Ptr Window -> Ptr Renderer -> IO CInt
foreign import ccall "SDL.h SDL_CreateWindowFrom" createWindowFromFFI :: Ptr () -> IO Window
foreign import ccall "SDL.h SDL_DestroyWindow" destroyWindowFFI :: Window -> IO ()
foreign import ccall "SDL.h SDL_DisableScreenSaver" disableScreenSaverFFI :: IO ()
foreign import ccall "SDL.h SDL_EnableScreenSaver" enableScreenSaverFFI :: IO ()
foreign import ccall "SDL.h SDL_GL_BindTexture" glBindTextureFFI :: Texture -> Ptr CFloat -> Ptr CFloat -> IO CInt
foreign import ccall "SDL.h SDL_GL_CreateContext" glCreateContextFFI :: Window -> IO GLContext
foreign import ccall "SDL.h SDL_GL_DeleteContext" glDeleteContextFFI :: GLContext -> IO ()
foreign import ccall "SDL.h SDL_GL_ExtensionSupported" glExtensionSupportedFFI :: CString -> IO Bool
foreign import ccall "SDL.h SDL_GL_GetAttribute" glGetAttributeFFI :: GLattr -> Ptr CInt -> IO CInt
foreign import ccall "SDL.h SDL_GL_GetCurrentContext" glGetCurrentContextFFI :: IO GLContext
foreign import ccall "SDL.h SDL_GL_GetCurrentWindow" glGetCurrentWindowFFI :: IO Window
foreign import ccall "SDL.h SDL_GL_GetDrawableSize" glGetDrawableSizeFFI :: Window -> Ptr CInt -> Ptr CInt -> IO ()
foreign import ccall "SDL.h SDL_GL_GetProcAddress" glGetProcAddressFFI :: CString -> IO (Ptr ())
foreign import ccall "SDL.h SDL_GL_GetSwapInterval" glGetSwapIntervalFFI :: IO CInt
foreign import ccall "SDL.h SDL_GL_LoadLibrary" glLoadLibraryFFI :: CString -> IO CInt
foreign import ccall "SDL.h SDL_GL_MakeCurrent" glMakeCurrentFFI :: Window -> GLContext -> IO CInt
foreign import ccall "SDL.h SDL_GL_ResetAttributes" glResetAttributesFFI :: IO ()
foreign import ccall "SDL.h SDL_GL_SetAttribute" glSetAttributeFFI :: GLattr -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_GL_SetSwapInterval" glSetSwapIntervalFFI :: CInt -> IO CInt
foreign import ccall "SDL.h SDL_GL_SwapWindow" glSwapWindowFFI :: Window -> IO ()
foreign import ccall "SDL.h SDL_GL_UnbindTexture" glUnbindTextureFFI :: Texture -> IO CInt
foreign import ccall "SDL.h SDL_GL_UnloadLibrary" glUnloadLibraryFFI :: IO ()
foreign import ccall "SDL.h SDL_GetClosestDisplayMode" getClosestDisplayModeFFI :: CInt -> Ptr DisplayMode -> Ptr DisplayMode -> IO (Ptr DisplayMode)
foreign import ccall "SDL.h SDL_GetCurrentDisplayMode" getCurrentDisplayModeFFI :: CInt -> Ptr DisplayMode -> IO CInt
foreign import ccall "SDL.h SDL_GetCurrentVideoDriver" getCurrentVideoDriverFFI :: IO CString
foreign import ccall "SDL.h SDL_GetDesktopDisplayMode" getDesktopDisplayModeFFI :: CInt -> Ptr DisplayMode -> IO CInt
foreign import ccall "SDL.h SDL_GetDisplayBounds" getDisplayBoundsFFI :: CInt -> Ptr Rect -> IO CInt
foreign import ccall "SDL.h SDL_GetDisplayDPI" getDisplayDPIFFI :: CInt -> Ptr CFloat -> Ptr CFloat -> Ptr CFloat -> IO CInt
foreign import ccall "SDL.h SDL_GetDisplayMode" getDisplayModeFFI :: CInt -> CInt -> Ptr DisplayMode -> IO CInt
foreign import ccall "SDL.h SDL_GetDisplayName" getDisplayNameFFI :: CInt -> IO CString
foreign import ccall "SDL.h SDL_GetGrabbedWindow" getGrabbedWindowFFI :: IO Window
foreign import ccall "SDL.h SDL_GetNumDisplayModes" getNumDisplayModesFFI :: CInt -> IO CInt
foreign import ccall "SDL.h SDL_GetNumVideoDisplays" getNumVideoDisplaysFFI :: IO CInt
foreign import ccall "SDL.h SDL_GetNumVideoDrivers" getNumVideoDriversFFI :: IO CInt
foreign import ccall "SDL.h SDL_GetVideoDriver" getVideoDriverFFI :: CInt -> IO CString
foreign import ccall "SDL.h SDL_GetWindowBrightness" getWindowBrightnessFFI :: Window -> IO CFloat
foreign import ccall "SDL.h SDL_GetWindowData" getWindowDataFFI :: Window -> CString -> IO (Ptr ())
foreign import ccall "SDL.h SDL_GetWindowDisplayIndex" getWindowDisplayIndexFFI :: Window -> IO CInt
foreign import ccall "SDL.h SDL_GetWindowDisplayMode" getWindowDisplayModeFFI :: Window -> Ptr DisplayMode -> IO CInt
foreign import ccall "SDL.h SDL_GetWindowFlags" getWindowFlagsFFI :: Window -> IO Word32
foreign import ccall "SDL.h SDL_GetWindowFromID" getWindowFromIDFFI :: Word32 -> IO Window
foreign import ccall "SDL.h SDL_GetWindowGammaRamp" getWindowGammaRampFFI :: Window -> Ptr Word16 -> Ptr Word16 -> Ptr Word16 -> IO CInt
foreign import ccall "SDL.h SDL_GetWindowGrab" getWindowGrabFFI :: Window -> IO Bool
foreign import ccall "SDL.h SDL_GetWindowID" getWindowIDFFI :: Window -> IO Word32
foreign import ccall "SDL.h SDL_GetWindowMaximumSize" getWindowMaximumSizeFFI :: Window -> Ptr CInt -> Ptr CInt -> IO ()
foreign import ccall "SDL.h SDL_GetWindowMinimumSize" getWindowMinimumSizeFFI :: Window -> Ptr CInt -> Ptr CInt -> IO ()
foreign import ccall "SDL.h SDL_GetWindowPixelFormat" getWindowPixelFormatFFI :: Window -> IO Word32
foreign import ccall "SDL.h SDL_GetWindowPosition" getWindowPositionFFI :: Window -> Ptr CInt -> Ptr CInt -> IO ()
foreign import ccall "SDL.h SDL_GetWindowSize" getWindowSizeFFI :: Window -> Ptr CInt -> Ptr CInt -> IO ()
foreign import ccall "SDL.h SDL_GetWindowSurface" getWindowSurfaceFFI :: Window -> IO (Ptr Surface)
foreign import ccall "SDL.h SDL_GetWindowTitle" getWindowTitleFFI :: Window -> IO CString
foreign import ccall "SDL.h SDL_HideWindow" hideWindowFFI :: Window -> IO ()
foreign import ccall "SDL.h SDL_IsScreenSaverEnabled" isScreenSaverEnabledFFI :: IO Bool
foreign import ccall "SDL.h SDL_MaximizeWindow" maximizeWindowFFI :: Window -> IO ()
foreign import ccall "SDL.h SDL_MinimizeWindow" minimizeWindowFFI :: Window -> IO ()
foreign import ccall "SDL.h SDL_RaiseWindow" raiseWindowFFI :: Window -> IO ()
foreign import ccall "SDL.h SDL_RestoreWindow" restoreWindowFFI :: Window -> IO ()
foreign import ccall "SDL.h SDL_SetWindowBordered" setWindowBorderedFFI :: Window -> Bool -> IO ()
foreign import ccall "SDL.h SDL_SetWindowBrightness" setWindowBrightnessFFI :: Window -> CFloat -> IO CInt
foreign import ccall "SDL.h SDL_SetWindowData" setWindowDataFFI :: Window -> CString -> Ptr () -> IO (Ptr ())
foreign import ccall "SDL.h SDL_SetWindowDisplayMode" setWindowDisplayModeFFI :: Window -> Ptr DisplayMode -> IO CInt
foreign import ccall "SDL.h SDL_SetWindowFullscreen" setWindowFullscreenFFI :: Window -> Word32 -> IO CInt
foreign import ccall "SDL.h SDL_SetWindowGammaRamp" setWindowGammaRampFFI :: Window -> Ptr Word16 -> Ptr Word16 -> Ptr Word16 -> IO CInt
foreign import ccall "SDL.h SDL_SetWindowGrab" setWindowGrabFFI :: Window -> Bool -> IO ()
foreign import ccall "SDL.h SDL_SetWindowIcon" setWindowIconFFI :: Window -> Ptr Surface -> IO ()
foreign import ccall "SDL.h SDL_SetWindowMaximumSize" setWindowMaximumSizeFFI :: Window -> CInt -> CInt -> IO ()
foreign import ccall "SDL.h SDL_SetWindowMinimumSize" setWindowMinimumSizeFFI :: Window -> CInt -> CInt -> IO ()
foreign import ccall "SDL.h SDL_SetWindowPosition" setWindowPositionFFI :: Window -> CInt -> CInt -> IO ()
foreign import ccall "SDL.h SDL_SetWindowSize" setWindowSizeFFI :: Window -> CInt -> CInt -> IO ()
foreign import ccall "SDL.h SDL_SetWindowTitle" setWindowTitleFFI :: Window -> CString -> IO ()
foreign import ccall "SDL.h SDL_ShowMessageBox" showMessageBoxFFI :: Ptr MessageBoxData -> Ptr CInt -> IO CInt
foreign import ccall "SDL.h SDL_ShowSimpleMessageBox" showSimpleMessageBoxFFI :: Word32 -> CString -> CString -> Window -> IO CInt
foreign import ccall "SDL.h SDL_ShowWindow" showWindowFFI :: Window -> IO ()
foreign import ccall "SDL.h SDL_UpdateWindowSurface" updateWindowSurfaceFFI :: Window -> IO CInt
foreign import ccall "SDL.h SDL_UpdateWindowSurfaceRects" updateWindowSurfaceRectsFFI :: Window -> Ptr Rect -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_VideoInit" videoInitFFI :: CString -> IO CInt
foreign import ccall "SDL.h SDL_VideoQuit" videoQuitFFI :: IO ()
foreign import ccall "SDL.h SDL_CreateRenderer" createRendererFFI :: Window -> CInt -> Word32 -> IO Renderer
foreign import ccall "SDL.h SDL_CreateSoftwareRenderer" createSoftwareRendererFFI :: Ptr Surface -> IO Renderer
foreign import ccall "SDL.h SDL_CreateTexture" createTextureFFI :: Renderer -> Word32 -> CInt -> CInt -> CInt -> IO Texture
foreign import ccall "SDL.h SDL_CreateTextureFromSurface" createTextureFromSurfaceFFI :: Renderer -> Ptr Surface -> IO Texture
foreign import ccall "SDL.h SDL_DestroyRenderer" destroyRendererFFI :: Renderer -> IO ()
foreign import ccall "SDL.h SDL_DestroyTexture" destroyTextureFFI :: Texture -> IO ()
foreign import ccall "SDL.h SDL_GetNumRenderDrivers" getNumRenderDriversFFI :: IO CInt
foreign import ccall "SDL.h SDL_GetRenderDrawBlendMode" getRenderDrawBlendModeFFI :: Renderer -> Ptr BlendMode -> IO Int
foreign import ccall "SDL.h SDL_GetRenderDrawColor" getRenderDrawColorFFI :: Renderer -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO CInt
foreign import ccall "SDL.h SDL_GetRenderDriverInfo" getRenderDriverInfoFFI :: CInt -> Ptr RendererInfo -> IO CInt
foreign import ccall "SDL.h SDL_GetRenderTarget" getRenderTargetFFI :: Renderer -> IO Texture
foreign import ccall "SDL.h SDL_GetRenderer" getRendererFFI :: Window -> IO Renderer
foreign import ccall "SDL.h SDL_GetRendererInfo" getRendererInfoFFI :: Renderer -> Ptr RendererInfo -> IO CInt
foreign import ccall "SDL.h SDL_GetRendererOutputSize" getRendererOutputSizeFFI :: Renderer -> Ptr CInt -> Ptr CInt -> IO CInt
foreign import ccall "SDL.h SDL_GetTextureAlphaMod" getTextureAlphaModFFI :: Texture -> Ptr Word8 -> IO CInt
foreign import ccall "SDL.h SDL_GetTextureBlendMode" getTextureBlendModeFFI :: Texture -> Ptr BlendMode -> IO CInt
foreign import ccall "SDL.h SDL_GetTextureColorMod" getTextureColorModFFI :: Texture -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO CInt
foreign import ccall "SDL.h SDL_LockTexture" lockTextureFFI :: Texture -> Ptr Rect -> Ptr (Ptr ()) -> Ptr CInt -> IO CInt
foreign import ccall "SDL.h SDL_QueryTexture" queryTextureFFI :: Texture -> Ptr Word32 -> Ptr CInt -> Ptr CInt -> Ptr CInt -> IO CInt
foreign import ccall "SDL.h SDL_RenderClear" renderClearFFI :: Renderer -> IO CInt
foreign import ccall "SDL.h SDL_RenderCopy" renderCopyFFI :: Renderer -> Texture -> Ptr Rect -> Ptr Rect -> IO CInt
foreign import ccall "SDL.h SDL_RenderCopyEx" renderCopyExFFI :: Renderer -> Texture -> Ptr Rect -> Ptr Rect -> CDouble -> Ptr Point -> RendererFlip -> IO CInt
foreign import ccall "SDL.h SDL_RenderDrawLine" renderDrawLineFFI :: Renderer -> CInt -> CInt -> CInt -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_RenderDrawLines" renderDrawLinesFFI :: Renderer -> Ptr Point -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_RenderDrawPoint" renderDrawPointFFI :: Renderer -> CInt -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_RenderDrawPoints" renderDrawPointsFFI :: Renderer -> Ptr Point -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_RenderDrawRect" renderDrawRectFFI :: Renderer -> Ptr Rect -> IO CInt
foreign import ccall "SDL.h SDL_RenderDrawRects" renderDrawRectsFFI :: Renderer -> Ptr Rect -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_RenderFillRect" renderFillRectFFI :: Renderer -> Ptr Rect -> IO CInt
foreign import ccall "sqlhelper.c SDLHelper_RenderFillRectEx" renderFillRectExFFI :: Renderer -> CInt -> CInt -> CInt -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_RenderFillRects" renderFillRectsFFI :: Renderer -> Ptr Rect -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_RenderGetClipRect" renderGetClipRectFFI :: Renderer -> Ptr Rect -> IO ()
foreign import ccall "SDL.h SDL_RenderGetLogicalSize" renderGetLogicalSizeFFI :: Renderer -> Ptr CInt -> Ptr CInt -> IO ()
foreign import ccall "SDL.h SDL_RenderGetScale" renderGetScaleFFI :: Renderer -> Ptr CFloat -> Ptr CFloat -> IO ()
foreign import ccall "SDL.h SDL_RenderGetViewport" renderGetViewportFFI :: Renderer -> Ptr Rect -> IO ()
foreign import ccall "SDL.h SDL_RenderIsClipEnabled" renderIsClipEnabledFFI :: Renderer -> IO Bool
foreign import ccall "SDL.h SDL_RenderPresent" renderPresentFFI :: Renderer -> IO ()
foreign import ccall "SDL.h SDL_RenderReadPixels" renderReadPixelsFFI :: Renderer -> Ptr Rect -> Word32 -> Ptr () -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_RenderSetClipRect" renderSetClipRectFFI :: Renderer -> Ptr Rect -> IO CInt
foreign import ccall "SDL.h SDL_RenderSetLogicalSize" renderSetLogicalSizeFFI :: Renderer -> CInt -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_RenderSetScale" renderSetScaleFFI :: Renderer -> CFloat -> CFloat -> IO CInt
foreign import ccall "SDL.h SDL_RenderSetViewport" renderSetViewportFFI :: Renderer -> Ptr Rect -> IO CInt
foreign import ccall "SDL.h SDL_RenderTargetSupported" renderTargetSupportedFFI :: Renderer -> IO Bool
foreign import ccall "SDL.h SDL_SetRenderDrawBlendMode" setRenderDrawBlendModeFFI :: Renderer -> BlendMode -> IO CInt
foreign import ccall "SDL.h SDL_SetRenderDrawColor" setRenderDrawColorFFI :: Renderer -> Word8 -> Word8 -> Word8 -> Word8 -> IO CInt
foreign import ccall "SDL.h SDL_SetRenderTarget" setRenderTargetFFI :: Renderer -> Texture -> IO CInt
foreign import ccall "SDL.h SDL_SetTextureAlphaMod" setTextureAlphaModFFI :: Texture -> Word8 -> IO CInt
foreign import ccall "SDL.h SDL_SetTextureBlendMode" setTextureBlendModeFFI :: Texture -> BlendMode -> IO CInt
foreign import ccall "SDL.h SDL_SetTextureColorMod" setTextureColorModFFI :: Texture -> Word8 -> Word8 -> Word8 -> IO CInt
foreign import ccall "SDL.h SDL_UnlockTexture" unlockTextureFFI :: Texture -> IO ()
foreign import ccall "SDL.h SDL_UpdateTexture" updateTextureFFI :: Texture -> Ptr Rect -> Ptr () -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_UpdateYUVTexture" updateYUVTextureFFI :: Texture -> Ptr Rect -> Ptr Word8 -> CInt -> Ptr Word8 -> CInt -> Ptr Word8 -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_AllocFormat" allocFormatFFI :: Word32 -> IO (Ptr PixelFormat)
foreign import ccall "SDL.h SDL_AllocPalette" allocPaletteFFI :: CInt -> IO (Ptr Palette)
foreign import ccall "SDL.h SDL_CalculateGammaRamp" calculateGammaRampFFI :: CFloat -> Ptr Word16 -> IO ()
foreign import ccall "SDL.h SDL_FreeFormat" freeFormatFFI :: Ptr PixelFormat -> IO ()
foreign import ccall "SDL.h SDL_FreePalette" freePaletteFFI :: Ptr Palette -> IO ()
foreign import ccall "SDL.h SDL_GetPixelFormatName" getPixelFormatNameFFI :: Word32 -> IO CString
foreign import ccall "SDL.h SDL_GetRGB" getRGBFFI :: Word32 -> Ptr PixelFormat -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO ()
foreign import ccall "SDL.h SDL_GetRGBA" getRGBAFFI :: Word32 -> Ptr PixelFormat -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO ()
foreign import ccall "SDL.h SDL_MapRGB" mapRGBFFI :: Ptr PixelFormat -> Word8 -> Word8 -> Word8 -> IO Word32
foreign import ccall "SDL.h SDL_MapRGBA" mapRGBAFFI :: Ptr PixelFormat -> Word8 -> Word8 -> Word8 -> Word8 -> IO Word32
foreign import ccall "SDL.h SDL_MasksToPixelFormatEnum" masksToPixelFormatEnumFFI :: CInt -> Word32 -> Word32 -> Word32 -> Word32 -> IO Word32
foreign import ccall "SDL.h SDL_PixelFormatEnumToMasks" pixelFormatEnumToMasksFFI :: Word32 -> Ptr CInt -> Ptr Word32 -> Ptr Word32 -> Ptr Word32 -> Ptr Word32 -> IO Bool
foreign import ccall "SDL.h SDL_SetPaletteColors" setPaletteColorsFFI :: Ptr Palette -> Ptr Color -> CInt -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_SetPixelFormatPalette" setPixelFormatPaletteFFI :: Ptr PixelFormat -> Ptr Palette -> IO CInt
foreign import ccall "SDL.h SDL_EnclosePoints" enclosePointsFFI :: Ptr Point -> CInt -> Ptr Rect -> Ptr Rect -> IO Bool
foreign import ccall "SDL.h SDL_HasIntersection" hasIntersectionFFI :: Ptr Rect -> Ptr Rect -> IO Bool
foreign import ccall "SDL.h SDL_IntersectRect" intersectRectFFI :: Ptr Rect -> Ptr Rect -> Ptr Rect -> IO Bool
foreign import ccall "SDL.h SDL_IntersectRectAndLine" intersectRectAndLineFFI :: Ptr Rect -> Ptr CInt -> Ptr CInt -> Ptr CInt -> Ptr CInt -> IO Bool
foreign import ccall "SDL.h SDL_UnionRect" unionRectFFI :: Ptr Rect -> Ptr Rect -> Ptr Rect -> IO ()
foreign import ccall "SDL.h SDL_UpperBlitScaled" blitScaledFFI :: Ptr Surface -> Ptr Rect -> Ptr Surface -> Ptr Rect -> IO CInt
foreign import ccall "SDL.h SDL_UpperBlit" blitSurfaceFFI :: Ptr Surface -> Ptr Rect -> Ptr Surface -> Ptr Rect -> IO CInt
foreign import ccall "SDL.h SDL_ConvertPixels" convertPixelsFFI :: CInt -> CInt -> Word32 -> Ptr () -> CInt -> Word32 -> Ptr () -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_ConvertSurface" convertSurfaceFFI :: Ptr Surface -> Ptr PixelFormat -> Word32 -> IO (Ptr Surface)
foreign import ccall "SDL.h SDL_ConvertSurfaceFormat" convertSurfaceFormatFFI :: Ptr Surface -> Word32 -> Word32 -> IO (Ptr Surface)
foreign import ccall "SDL.h SDL_CreateRGBSurface" createRGBSurfaceFFI :: Word32 -> CInt -> CInt -> CInt -> Word32 -> Word32 -> Word32 -> Word32 -> IO (Ptr Surface)
foreign import ccall "SDL.h SDL_CreateRGBSurfaceFrom" createRGBSurfaceFromFFI :: Ptr () -> CInt -> CInt -> CInt -> CInt -> Word32 -> Word32 -> Word32 -> Word32 -> IO (Ptr Surface)
foreign import ccall "SDL.h SDL_FillRect" fillRectFFI :: Ptr Surface -> Ptr Rect -> Word32 -> IO CInt
foreign import ccall "SDL.h SDL_FillRects" fillRectsFFI :: Ptr Surface -> Ptr Rect -> CInt -> Word32 -> IO CInt
foreign import ccall "SDL.h SDL_FreeSurface" freeSurfaceFFI :: Ptr Surface -> IO ()
foreign import ccall "SDL.h SDL_GetClipRect" getClipRectFFI :: Ptr Surface -> Ptr Rect -> IO ()
foreign import ccall "SDL.h SDL_GetColorKey" getColorKeyFFI :: Ptr Surface -> Ptr Word32 -> IO CInt
foreign import ccall "SDL.h SDL_GetSurfaceAlphaMod" getSurfaceAlphaModFFI :: Ptr Surface -> Ptr Word8 -> IO CInt
foreign import ccall "SDL.h SDL_GetSurfaceBlendMode" getSurfaceBlendModeFFI :: Ptr Surface -> Ptr BlendMode -> IO CInt
foreign import ccall "SDL.h SDL_GetSurfaceColorMod" getSurfaceColorModFFI :: Ptr Surface -> Ptr Word8 -> Ptr Word8 -> Ptr Word8 -> IO CInt
foreign import ccall "SDL.h SDL_LoadBMP_RW" loadBMP_RWFFI :: Ptr RWops -> CInt -> IO (Ptr Surface)
foreign import ccall "SDL.h SDL_LockSurface" lockSurfaceFFI :: Ptr Surface -> IO CInt
foreign import ccall "SDL.h SDL_LowerBlit" lowerBlitFFI :: Ptr Surface -> Ptr Rect -> Ptr Surface -> Ptr Rect -> IO CInt
foreign import ccall "SDL.h SDL_LowerBlitScaled" lowerBlitScaledFFI :: Ptr Surface -> Ptr Rect -> Ptr Surface -> Ptr Rect -> IO CInt
foreign import ccall "SDL.h SDL_SaveBMP_RW" saveBMP_RWFFI :: Ptr Surface -> Ptr RWops -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_SetClipRect" setClipRectFFI :: Ptr Surface -> Ptr Rect -> IO Bool
foreign import ccall "SDL.h SDL_SetColorKey" setColorKeyFFI :: Ptr Surface -> CInt -> Word32 -> IO CInt
foreign import ccall "SDL.h SDL_SetSurfaceAlphaMod" setSurfaceAlphaModFFI :: Ptr Surface -> Word8 -> IO CInt
foreign import ccall "SDL.h SDL_SetSurfaceBlendMode" setSurfaceBlendModeFFI :: Ptr Surface -> BlendMode -> IO CInt
foreign import ccall "SDL.h SDL_SetSurfaceColorMod" setSurfaceColorModFFI :: Ptr Surface -> Word8 -> Word8 -> Word8 -> IO CInt
foreign import ccall "SDL.h SDL_SetSurfacePalette" setSurfacePaletteFFI :: Ptr Surface -> Ptr Palette -> IO CInt
foreign import ccall "SDL.h SDL_SetSurfaceRLE" setSurfaceRLEFFI :: Ptr Surface -> CInt -> IO CInt
foreign import ccall "SDL.h SDL_UnlockSurface" unlockSurfaceFFI :: Ptr Surface -> IO ()
foreign import ccall "SDL.h SDL_GetWindowWMInfo" getWindowWMInfoFFI :: Window -> SysWMinfo -> IO Bool
foreign import ccall "SDL.h SDL_GetClipboardText" getClipboardTextFFI :: IO CString
foreign import ccall "SDL.h SDL_HasClipboardText" hasClipboardTextFFI :: IO Bool
foreign import ccall "SDL.h SDL_SetClipboardText" setClipboardTextFFI :: CString -> IO CInt
foreign import ccall "SDL_vulkan.h SDL_Vulkan_LoadLibrary" vkLoadLibraryFFI :: CString -> IO CInt
foreign import ccall "SDL_vulkan.h SDL_Vulkan_GetVkGetInstanceProcAddr" vkGetVkGetInstanceProcAddrFFI :: IO (FunPtr VkGetInstanceProcAddrFunc)
foreign import ccall "SDL_vulkan.h SDL_Vulkan_UnloadLibrary" vkUnloadLibraryFFI :: IO ()
foreign import ccall "SDL_vulkan.h SDL_Vulkan_GetInstanceExtensions" vkGetInstanceExtensionsFFI :: Window -> Ptr CUInt -> Ptr CString -> IO Bool
foreign import ccall "SDL_vulkan.h SDL_Vulkan_CreateSurface" vkCreateSurfaceFFI :: Window -> VkInstance -> Ptr VkSurfaceKHR -> IO Bool
foreign import ccall "SDL_vulkan.h SDL_Vulkan_GetDrawableSize" vkGetDrawableSizeFFI :: Window -> Ptr CInt -> Ptr CInt -> IO ()
createWindow :: MonadIO m => CString -> CInt -> CInt -> CInt -> CInt -> Word32 -> m Window
createWindow :: forall (m :: * -> *).
MonadIO m =>
CString -> CInt -> CInt -> CInt -> CInt -> Word32 -> m Window
createWindow CString
v1 CInt
v2 CInt
v3 CInt
v4 CInt
v5 Word32
v6 = IO Window -> m Window
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Window -> m Window) -> IO Window -> m Window
forall a b. (a -> b) -> a -> b
$ CString -> CInt -> CInt -> CInt -> CInt -> Word32 -> IO Window
createWindowFFI CString
v1 CInt
v2 CInt
v3 CInt
v4 CInt
v5 Word32
v6
{-# INLINE createWindow #-}
createWindowAndRenderer :: MonadIO m => CInt -> CInt -> Word32 -> Ptr Window -> Ptr Renderer -> m CInt
createWindowAndRenderer :: forall (m :: * -> *).
MonadIO m =>
CInt -> CInt -> Word32 -> Ptr Window -> Ptr Window -> m CInt
createWindowAndRenderer CInt
v1 CInt
v2 Word32
v3 Ptr Window
v4 Ptr Window
v5 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ CInt -> CInt -> Word32 -> Ptr Window -> Ptr Window -> IO CInt
createWindowAndRendererFFI CInt
v1 CInt
v2 Word32
v3 Ptr Window
v4 Ptr Window
v5
{-# INLINE createWindowAndRenderer #-}
createWindowFrom :: MonadIO m => Ptr () -> m Window
createWindowFrom :: forall (m :: * -> *). MonadIO m => Window -> m Window
createWindowFrom Window
v1 = IO Window -> m Window
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Window -> m Window) -> IO Window -> m Window
forall a b. (a -> b) -> a -> b
$ Window -> IO Window
createWindowFromFFI Window
v1
{-# INLINE createWindowFrom #-}
destroyWindow :: MonadIO m => Window -> m ()
destroyWindow :: forall (m :: * -> *). MonadIO m => Window -> m ()
destroyWindow Window
v1 = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ Window -> IO ()
destroyWindowFFI Window
v1
{-# INLINE destroyWindow #-}
disableScreenSaver :: MonadIO m => m ()
disableScreenSaver :: forall (m :: * -> *). MonadIO m => m ()
disableScreenSaver = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO IO ()
disableScreenSaverFFI
{-# INLINE disableScreenSaver #-}
enableScreenSaver :: MonadIO m => m ()
enableScreenSaver :: forall (m :: * -> *). MonadIO m => m ()
enableScreenSaver = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO IO ()
enableScreenSaverFFI
{-# INLINE enableScreenSaver #-}
glBindTexture :: MonadIO m => Texture -> Ptr CFloat -> Ptr CFloat -> m CInt
glBindTexture :: forall (m :: * -> *).
MonadIO m =>
Window -> Ptr CFloat -> Ptr CFloat -> m CInt
glBindTexture Window
v1 Ptr CFloat
v2 Ptr CFloat
v3 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ Window -> Ptr CFloat -> Ptr CFloat -> IO CInt
glBindTextureFFI Window
v1 Ptr CFloat
v2 Ptr CFloat
v3
{-# INLINE glBindTexture #-}
glCreateContext :: MonadIO m => Window -> m GLContext
glCreateContext :: forall (m :: * -> *). MonadIO m => Window -> m Window
glCreateContext Window
v1 = IO Window -> m Window
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Window -> m Window) -> IO Window -> m Window
forall a b. (a -> b) -> a -> b
$ Window -> IO Window
glCreateContextFFI Window
v1
{-# INLINE glCreateContext #-}
glDeleteContext :: MonadIO m => GLContext -> m ()
glDeleteContext :: forall (m :: * -> *). MonadIO m => Window -> m ()
glDeleteContext Window
v1 = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ Window -> IO ()
glDeleteContextFFI Window
v1
{-# INLINE glDeleteContext #-}
glExtensionSupported :: MonadIO m => CString -> m Bool
glExtensionSupported :: forall (m :: * -> *). MonadIO m => CString -> m Bool
glExtensionSupported CString
v1 = IO Bool -> m Bool
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Bool -> m Bool) -> IO Bool -> m Bool
forall a b. (a -> b) -> a -> b
$ CString -> IO Bool
glExtensionSupportedFFI CString
v1
{-# INLINE glExtensionSupported #-}
glGetAttribute :: MonadIO m => GLattr -> Ptr CInt -> m CInt
glGetAttribute :: forall (m :: * -> *). MonadIO m => Word32 -> Ptr CInt -> m CInt
glGetAttribute Word32
v1 Ptr CInt
v2 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ Word32 -> Ptr CInt -> IO CInt
glGetAttributeFFI Word32
v1 Ptr CInt
v2
{-# INLINE glGetAttribute #-}
glGetCurrentContext :: MonadIO m => m GLContext
glGetCurrentContext :: forall (m :: * -> *). MonadIO m => m Window
glGetCurrentContext = IO Window -> m Window
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO IO Window
glGetCurrentContextFFI
{-# INLINE glGetCurrentContext #-}
glGetCurrentWindow :: MonadIO m => m Window
glGetCurrentWindow :: forall (m :: * -> *). MonadIO m => m Window
glGetCurrentWindow = IO Window -> m Window
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO IO Window
glGetCurrentWindowFFI
{-# INLINE glGetCurrentWindow #-}
glGetDrawableSize :: MonadIO m => Window -> Ptr CInt -> Ptr CInt -> m ()
glGetDrawableSize :: forall (m :: * -> *).
MonadIO m =>
Window -> Ptr CInt -> Ptr CInt -> m ()
glGetDrawableSize Window
v1 Ptr CInt
v2 Ptr CInt
v3 = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ Window -> Ptr CInt -> Ptr CInt -> IO ()
glGetDrawableSizeFFI Window
v1 Ptr CInt
v2 Ptr CInt
v3
{-# INLINE glGetDrawableSize #-}
glGetProcAddress :: MonadIO m => CString -> m (Ptr ())
glGetProcAddress :: forall (m :: * -> *). MonadIO m => CString -> m Window
glGetProcAddress CString
v1 = IO Window -> m Window
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Window -> m Window) -> IO Window -> m Window
forall a b. (a -> b) -> a -> b
$ CString -> IO Window
glGetProcAddressFFI CString
v1
{-# INLINE glGetProcAddress #-}
glGetSwapInterval :: MonadIO m => m CInt
glGetSwapInterval :: forall (m :: * -> *). MonadIO m => m CInt
glGetSwapInterval = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO IO CInt
glGetSwapIntervalFFI
{-# INLINE glGetSwapInterval #-}
glLoadLibrary :: MonadIO m => CString -> m CInt
glLoadLibrary :: forall (m :: * -> *). MonadIO m => CString -> m CInt
glLoadLibrary CString
v1 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ CString -> IO CInt
glLoadLibraryFFI CString
v1
{-# INLINE glLoadLibrary #-}
glMakeCurrent :: MonadIO m => Window -> GLContext -> m CInt
glMakeCurrent :: forall (m :: * -> *). MonadIO m => Window -> Window -> m CInt
glMakeCurrent Window
v1 Window
v2 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ Window -> Window -> IO CInt
glMakeCurrentFFI Window
v1 Window
v2
{-# INLINE glMakeCurrent #-}
glResetAttributes :: MonadIO m => m ()
glResetAttributes :: forall (m :: * -> *). MonadIO m => m ()
glResetAttributes = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO IO ()
glResetAttributesFFI
{-# INLINE glResetAttributes #-}
glSetAttribute :: MonadIO m => GLattr -> CInt -> m CInt
glSetAttribute :: forall (m :: * -> *). MonadIO m => Word32 -> CInt -> m CInt
glSetAttribute Word32
v1 CInt
v2 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ Word32 -> CInt -> IO CInt
glSetAttributeFFI Word32
v1 CInt
v2
{-# INLINE glSetAttribute #-}
glSetSwapInterval :: MonadIO m => CInt -> m CInt
glSetSwapInterval :: forall (m :: * -> *). MonadIO m => CInt -> m CInt
glSetSwapInterval CInt
v1 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ CInt -> IO CInt
glSetSwapIntervalFFI CInt
v1
{-# INLINE glSetSwapInterval #-}
glSwapWindow :: MonadIO m => Window -> m ()
glSwapWindow :: forall (m :: * -> *). MonadIO m => Window -> m ()
glSwapWindow Window
v1 = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO () -> m ()) -> IO () -> m ()
forall a b. (a -> b) -> a -> b
$ Window -> IO ()
glSwapWindowFFI Window
v1
{-# INLINE glSwapWindow #-}
glUnbindTexture :: MonadIO m => Texture -> m CInt
glUnbindTexture :: forall (m :: * -> *). MonadIO m => Window -> m CInt
glUnbindTexture Window
v1 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ Window -> IO CInt
glUnbindTextureFFI Window
v1
{-# INLINE glUnbindTexture #-}
glUnloadLibrary :: MonadIO m => m ()
glUnloadLibrary :: forall (m :: * -> *). MonadIO m => m ()
glUnloadLibrary = IO () -> m ()
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO IO ()
glUnloadLibraryFFI
{-# INLINE glUnloadLibrary #-}
getClosestDisplayMode :: MonadIO m => CInt -> Ptr DisplayMode -> Ptr DisplayMode -> m (Ptr DisplayMode)
getClosestDisplayMode :: forall (m :: * -> *).
MonadIO m =>
CInt -> Ptr DisplayMode -> Ptr DisplayMode -> m (Ptr DisplayMode)
getClosestDisplayMode CInt
v1 Ptr DisplayMode
v2 Ptr DisplayMode
v3 = IO (Ptr DisplayMode) -> m (Ptr DisplayMode)
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO (Ptr DisplayMode) -> m (Ptr DisplayMode))
-> IO (Ptr DisplayMode) -> m (Ptr DisplayMode)
forall a b. (a -> b) -> a -> b
$ CInt -> Ptr DisplayMode -> Ptr DisplayMode -> IO (Ptr DisplayMode)
getClosestDisplayModeFFI CInt
v1 Ptr DisplayMode
v2 Ptr DisplayMode
v3
{-# INLINE getClosestDisplayMode #-}
getCurrentDisplayMode :: MonadIO m => CInt -> Ptr DisplayMode -> m CInt
getCurrentDisplayMode :: forall (m :: * -> *).
MonadIO m =>
CInt -> Ptr DisplayMode -> m CInt
getCurrentDisplayMode CInt
v1 Ptr DisplayMode
v2 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ CInt -> Ptr DisplayMode -> IO CInt
getCurrentDisplayModeFFI CInt
v1 Ptr DisplayMode
v2
{-# INLINE getCurrentDisplayMode #-}
getCurrentVideoDriver :: MonadIO m => m CString
getCurrentVideoDriver :: forall (m :: * -> *). MonadIO m => m CString
getCurrentVideoDriver = IO CString -> m CString
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO IO CString
getCurrentVideoDriverFFI
{-# INLINE getCurrentVideoDriver #-}
getDesktopDisplayMode :: MonadIO m => CInt -> Ptr DisplayMode -> m CInt
getDesktopDisplayMode :: forall (m :: * -> *).
MonadIO m =>
CInt -> Ptr DisplayMode -> m CInt
getDesktopDisplayMode CInt
v1 Ptr DisplayMode
v2 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ CInt -> Ptr DisplayMode -> IO CInt
getDesktopDisplayModeFFI CInt
v1 Ptr DisplayMode
v2
{-# INLINE getDesktopDisplayMode #-}
getDisplayBounds :: MonadIO m => CInt -> Ptr Rect -> m CInt
getDisplayBounds :: forall (m :: * -> *). MonadIO m => CInt -> Ptr Rect -> m CInt
getDisplayBounds CInt
v1 Ptr Rect
v2 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ CInt -> Ptr Rect -> IO CInt
getDisplayBoundsFFI CInt
v1 Ptr Rect
v2
{-# INLINE getDisplayBounds #-}
getDisplayDPI :: MonadIO m => CInt -> Ptr CFloat -> Ptr CFloat -> Ptr CFloat -> m CInt
getDisplayDPI :: forall (m :: * -> *).
MonadIO m =>
CInt -> Ptr CFloat -> Ptr CFloat -> Ptr CFloat -> m CInt
getDisplayDPI CInt
v1 Ptr CFloat
v2 Ptr CFloat
v3 Ptr CFloat
v4 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ CInt -> Ptr CFloat -> Ptr CFloat -> Ptr CFloat -> IO CInt
getDisplayDPIFFI CInt
v1 Ptr CFloat
v2 Ptr CFloat
v3 Ptr CFloat
v4
{-# INLINE getDisplayDPI #-}
getDisplayMode :: MonadIO m => CInt -> CInt -> Ptr DisplayMode -> m CInt
getDisplayMode :: forall (m :: * -> *).
MonadIO m =>
CInt -> CInt -> Ptr DisplayMode -> m CInt
getDisplayMode CInt
v1 CInt
v2 Ptr DisplayMode
v3 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ CInt -> CInt -> Ptr DisplayMode -> IO CInt
getDisplayModeFFI CInt
v1 CInt
v2 Ptr DisplayMode
v3
{-# INLINE getDisplayMode #-}
getDisplayName :: MonadIO m => CInt -> m CString
getDisplayName :: forall (m :: * -> *). MonadIO m => CInt -> m CString
getDisplayName CInt
v1 = IO CString -> m CString
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CString -> m CString) -> IO CString -> m CString
forall a b. (a -> b) -> a -> b
$ CInt -> IO CString
getDisplayNameFFI CInt
v1
{-# INLINE getDisplayName #-}
getGrabbedWindow :: MonadIO m => m Window
getGrabbedWindow :: forall (m :: * -> *). MonadIO m => m Window
getGrabbedWindow = IO Window -> m Window
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO IO Window
getGrabbedWindowFFI
{-# INLINE getGrabbedWindow #-}
getNumDisplayModes :: MonadIO m => CInt -> m CInt
getNumDisplayModes :: forall (m :: * -> *). MonadIO m => CInt -> m CInt
getNumDisplayModes CInt
v1 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ CInt -> IO CInt
getNumDisplayModesFFI CInt
v1
{-# INLINE getNumDisplayModes #-}
getNumVideoDisplays :: MonadIO m => m CInt
getNumVideoDisplays :: forall (m :: * -> *). MonadIO m => m CInt
getNumVideoDisplays = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO IO CInt
getNumVideoDisplaysFFI
{-# INLINE getNumVideoDisplays #-}
getNumVideoDrivers :: MonadIO m => m CInt
getNumVideoDrivers :: forall (m :: * -> *). MonadIO m => m CInt
getNumVideoDrivers = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO IO CInt
getNumVideoDriversFFI
{-# INLINE getNumVideoDrivers #-}
getVideoDriver :: MonadIO m => CInt -> m CString
getVideoDriver :: forall (m :: * -> *). MonadIO m => CInt -> m CString
getVideoDriver CInt
v1 = IO CString -> m CString
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CString -> m CString) -> IO CString -> m CString
forall a b. (a -> b) -> a -> b
$ CInt -> IO CString
getVideoDriverFFI CInt
v1
{-# INLINE getVideoDriver #-}
getWindowBrightness :: MonadIO m => Window -> m CFloat
getWindowBrightness :: forall (m :: * -> *). MonadIO m => Window -> m CFloat
getWindowBrightness Window
v1 = IO CFloat -> m CFloat
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CFloat -> m CFloat) -> IO CFloat -> m CFloat
forall a b. (a -> b) -> a -> b
$ Window -> IO CFloat
getWindowBrightnessFFI Window
v1
{-# INLINE getWindowBrightness #-}
getWindowData :: MonadIO m => Window -> CString -> m (Ptr ())
getWindowData :: forall (m :: * -> *). MonadIO m => Window -> CString -> m Window
getWindowData Window
v1 CString
v2 = IO Window -> m Window
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO Window -> m Window) -> IO Window -> m Window
forall a b. (a -> b) -> a -> b
$ Window -> CString -> IO Window
getWindowDataFFI Window
v1 CString
v2
{-# INLINE getWindowData #-}
getWindowDisplayIndex :: MonadIO m => Window -> m CInt
getWindowDisplayIndex :: forall (m :: * -> *). MonadIO m => Window -> m CInt
getWindowDisplayIndex Window
v1 = IO CInt -> m CInt
forall (m :: * -> *) a. MonadIO m => IO a -> m a
liftIO (IO CInt -> m CInt) -> IO CInt -> m CInt
forall a b. (a -> b) -> a -> b
$ Window -> IO CInt
getWindowDisplayIndexFFI Window
v1
{-# INLINE getWindowDisplayIndex #-}
getWindowDisplayMode :: MonadIO m => Window -> Ptr DisplayMode -> m CInt
getWindowDisplayMode :: forall (m :: * -> *).
MonadIO m =>
Window -> Ptr DisplayMode -> m CInt
getWindowDisplayMode Window
v1 v2hsc_ptr ->-- * File I/O Abstraction
; *) a. MonadIO m => IO a -> m a
liftIO{-# INLINE getWindowDisplayIndex #-}
Ptr->-- * File I/O Abstraction<26pan>
; *) a. Mn">{-# INL="hs-identifier hs-type">getWindowDis"hs-keyword">foreign import; *) a. Mn">MonadIO:: ine-7">; *) a. Mn">MonadIO
:: ::SDL.Raw.Typeu, SDL.Raw| 2 (Data Constructor) | ; *) a. Mn">-> IO 1">SurfaceWord32
((Ptr CInt -> IO PowerState) -> IO PowerSta>IOglGetProcAddressFFIPtrIOCInt ->n clbraries/base-4.15.1.0/srd">= IO Window -> m Window
forall (m :: * -> *) a. MonadIO m => IO n> {-# INLINE{-# INL="hs-identifier hs-type">getWindowDis"hs-keyword">foreign #-}
=import 1">SDL.Vect, SW">()
glResetAttributes :: forall (m :: * -> *). MonadIO m => m ()
v1< f="../file:///usr/share/doc/ghc-doc/html/libraries/ghc-prim-0.7.0/src">IO<
1">PtrIO Window -> m Window
forall (m :: ="hs-pr *) a. MonadIO m => IO n> 1"
-> Ptr="annot">Ptr Recttifier hs-type">Ptr="annot">Ptr Recttifipan>)
foreign >
ccall >/src">CInt>/src">CInt
ccall 1">CInt Word32 (ccall 1#0CInt |