sdl2-2.4.1.0: Both high- and low-level bindings to the SDL library (version 2.0.4+).

Safe Haskell | Safe
Language | Haskell2010

SDL.Raw.Basic

Contents

- Initialization and Shutdown
- Memory Management
- Configuration Variables
- Log Handling
- Assertions
- Querying SDL Version

Synopsis

- init :: MonadIO m => InitFlag -> m CInt
- initSubSystem :: MonadIO m => InitFlag -> m CInt
- quit :: MonadIO m => m ()
- quitSubSystem :: MonadIO m => InitFlag -> m ()
- setMainReady :: MonadIO m => m ()
- wasInit :: MonadIO m => InitFlag -> m InitFlag
- free :: MonadIO m => Ptr () -> m ()
- addHintCallback :: MonadIO m => CString -> HintCallback -> Ptr () -> m ()
- clearHints :: MonadIO m => m ()
- delHintCallback :: MonadIO m => CString -> HintCallback -> Ptr () -> m ()
- getHint :: MonadIO m => CString -> m CString
- setHint :: MonadIO m => CString -> CString -> m Bool
- setHintWithPriority :: MonadIO m => CString -> CString -> HintPriority -> m Bool
- log :: CString -> IO ()
- logCritical :: CInt -> CString -> IO ()
- logDebug :: CInt -> CString -> IO ()
- logError :: CInt -> CString -> IO ()
- logGetOutputFunction :: MonadIO m => Ptr LogOutputFunction -> Ptr (Ptr ()) -> m ()
- logGetPriority :: MonadIO m => CInt -> m LogPriority
- logInfo :: CInt -> CString -> IO ()
- logMessage :: MonadIO m => CInt -> LogPriority -> CString -> m ()
- logResetPriorities :: MonadIO m => m ()
- logSetAllPriority :: MonadIO m => LogPriority -> m ()
- logSetOutputFunction :: MonadIO m => LogOutputFunction -> Ptr () -> m ()
- logSetPriority :: MonadIO m => CInt -> LogPriority -> m ()
- logVerbose :: CInt -> CString -> IO ()
- logWarn :: CInt -> CString -> IO ()
- getRevision :: MonadIO m => m CString
- getRevisionNumber :: MonadIO m => m CInt
- getVersion :: MonadIO m => Ptr Version -> m ()

# Initialization and Shutdown

init :: MonadIO m => InitFlag -> m CInt Source #

initSubSystem :: MonadIO m => InitFlag -> m CInt Source #

quit :: MonadIO m => m () Source #

quitSubSystem :: MonadIO m => InitFlag -> m () Source #

setMainReady :: MonadIO m => m () Source #

wasInit :: MonadIO m => InitFlag -> m InitFlag Source #

# Memory Management

free :: MonadIO m => Ptr () -> m () Source #

# Configuration Variables

addHintCallback :: MonadIO m => CString -> HintCallback -> Ptr () -> m () Source #

clearHints :: MonadIO m => m () Source #

delHintCallback :: MonadIO m => CString -> HintCallback -> Ptr () -> m () Source #

getHint :: MonadIO m => CString -> m CString Source #

setHint :: MonadIO m => CString -> CString -> m Bool Source #

setHintWithPriority :: MonadIO m => CString -> CString -> HintPriority -> m Bool Source #

# Log Handling

log :: CString -> IO () Source #

logCritical :: CInt -> CString -> IO () Source #

logDebug :: CInt -> CString -> IO () Source #

logError :: CInt -> CString -> IO () Source #

logGetOutputFunction :: MonadIO m => Ptr LogOutputFunction -> Ptr (Ptr ()) -> m () Source #

logGetPriority :: MonadIO m => CInt -> m LogPriority Source #

logInfo :: CInt -> CString -> IO () Source #

logMessage :: MonadIO m => CInt -> LogPriority -> CString -> m () Source #

logResetPriorities :: MonadIO m => m () Source #

logSetAllPriority :: MonadIO m => LogPriority -> m () Source #

logSetOutputFunction :: MonadIO m => LogOutputFunction -> Ptr () -> m () Source #

logSetPriority :: MonadIO m => CInt -> LogPriority -> m () Source #

logVerbose :: CInt -> CString -> IO () Source #

logWarn :: CInt -> CString -> IO () Source #

# Assertions

Use Haskell's own assertion primitives rather than SDL's.

# Querying SDL Version

getRevision :: MonadIO m => m CString Source #

getRevisionNumber :: MonadIO m => m CInt Source #

getVersion :: MonadIO m => Ptr Version -> m () Source #