Package2.5.5.0Graphics
sdl2
Both high- and low-level bindings to the SDL library (version 2.0.6+).
- Version2.5.5.0
- CategoryGraphics
- LicenceBSD-3-Clause
- AuthorGabríel Arthúr Pétursson, Oliver Charles
- Maintainergabriel@system.is, ollie@ocharles.org.uk
- Pinned byhackage sdl2 2.5.5.0
- Sourcehackage.haskell.org/package/sdl2-2.5.5.0
Modules
38 modules- SDL5SDL (Simple DirectMedia Layer) is a library for cross-platform development of
- SDL.Audio21SDL.Audio provides a high-level API to SDL's audio device capabilities.
- SDL.Event57SDL.Event exports an interface for working with the SDL event model. Event handling allows your application to receive input from the use…
- SDL.Exception1
- SDL.Filesystem2
- SDL.Hint13
- SDL.Init5
- SDL.Input0
- SDL.Input.GameController15
- SDL.Input.Joystick18
- SDL.Input.Keyboard11
- SDL.Input.Keyboard.Codes479An enumeration of scancodes and keycodes, allowing you to pattern match on keyboard keys. This module uses a relatively new GHC feature c…
- SDL.Input.Mouse22
- SDL.Power4
- SDL.Raw0Raw low-level FFI bindings to the sdl2 C library. Ease of use is not a
- SDL.Raw.Audio29
- SDL.Raw.Basic30
- SDL.Raw.Enum851
- SDL.Raw.Error5
- SDL.Raw.Event107
- SDL.Raw.Filesystem25
- SDL.Raw.Haptic30
- SDL.Raw.Platform1
- SDL.Raw.Power1
- SDL.Raw.Thread40
- SDL.Raw.Timer6
- SDL.Raw.Types66
- SDL.Raw.Video207
- SDL.Time8
- SDL.Vect210SDL's vector representation. By default, re-exports the Linear and Linear.Affine modules from the
- SDL.Video42
- SDL.Video.OpenGL13
- SDL.Video.Renderer86SDL.Video.Renderer provides a high-level interface to SDL's accelerated 2D rendering library.
- SDL.Video.Vulkan9
Internal modules · 4
Description
This package contains bindings to the SDL 2 library, in both high- and low-level forms:
The SDL namespace contains high-level bindings, where enumerations are split into sum types, and we perform automatic error-checking.
The SDL.Raw namespace contains an almost 1-1 translation of the C API into Haskell FFI calls. As such, this does not contain sum types nor error checking. Thus this namespace is suitable for building your own abstraction over SDL, but is not recommended for day-to-day programming.
Read SDL for a getting started guide.
Depends on
8 packages- StateVar-1.2.2in this set
- base-4.20.2.0with GHC
- bytestring-0.12.2.0with GHC
- exceptions-0.10.9with GHC
- linear-1.22in this set
- text-2.1.3with GHC
- transformers-0.6.1.1with GHC
- vector-0.13.2.0in this set