SDL

From MZXWiki
Revision as of 21:31, 29 September 2019 by Lachesis (talk | contribs) (Create initial SDL page)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

SDL is a cross-platform library written by Sam Lantinga that provides a common abstracted interface for platform-specific functionality for graphics, audio, input devices like keyboards, and joysticks. Because of its wide support for various platforms, it has been used by MegaZeux for most of its supported platforms since 2004.

MegaZeux ports that currently rely on SDL include the Windows, Mac OS X, Linux/BSD, Amiga, GP2X, Pandora, HTML5/Emscripten, Android, Nintendo Switch, and PlayStation Portable ports. The Nintendo Wii port can also optionally use SDL, but this is disabled by default.

SDL 1.2

MegaZeux has supported SDL 1.2 since 2004, which was used by default for every MegaZeux release between 2.80 and 2.84c. While most ports no longer use SDL 1.2 by default or have SDL 1.2 builds provided, most platforms still support being built with it.

Platforms that only support SDL 1.2

  • Windows 9x/ME: SDL 2.0 discontinued support.
  • Macs OS X (PowerPC): SDL 2.0 discontinued support.
  • PlayStation Portable: toolchain/deps haven't been updated to support 2.0.
  • Nintendo Wii: if optionally enabled via SDL Wii, which hasn't been updated to 2.0.


SDL 2.0

MegaZeux has supported SDL 2.0 since late 2013, and the first release with it enabled by default was MegaZeux 2.90 (2017-06-29). Most MegaZeux ports currrently use SDL 2.0. Platforms that only support SDL 2.0 include HTML5, Android, and the Nintendo Switch. SDL 2.0 doesn't officially support Intel Macs using Leopard and Snow Leopard, but the builds currently provided by MacPorts seems to work fine.

MegaZeux features relying on SDL 2.0

The following MegaZeux features are only supported by builds using SDL 2.0.