| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.SDL
Contents
Description
Provides SDL utlities for Mischief.
Synopsis
- data SDLPlugin
- module Mischief.SDL.Events
- module Mischief.SDL.Window
What is SDL?
SDL is a C library offering low-level tools for windows, input, rendering, etc.
A lot of the official Mischief libraries (such as mischief-input and mischief-render) use this library,
and therefore require SDL to be installed.
Installing SDL
The current official version of SDL used is sdl-3.4.18. You should
find this pre-built for most Operating Systems, and installing it is relatively easy.
These install instructions are mostly copied from sdl3-bindgen-sys's readme.
- Debian / Ubuntu
apt install libsdl3-dev-3.4.18
- MacOS
-- uninstall sdl3 if you have it brew tap-new $USER/local brew extract --version=3.4.18 sdl3 $USER/local brew install $USERlocalsdl3@3.4.18
- Arch
pacman -S sdl3@3.4.18
- Fedora
dnf install SDL3-devel-3.4.18
- Windows
pacman -Syyu # repeat/restart terminal if pacman asks you to pacman -S mingw-w64-ucrt-x86_64-sdl3-3.4.18 mingw-w64-ucrt-x86_64-pkgconf
module Mischief.SDL.Events
module Mischief.SDL.Window