Welcome to MorphOS-Storage, a webserver dedicated to MorphOS users. ©2016-2026 Meta-MorphOS.org
Description:All Libraries SDL: SDL3 3.4.22, SDL3_image, SDL3_mixer and SDL3_ttf with SDL3 preferences, SDK and extras for MorphOS 3.21.
Developer/Porter:BeWorld
Mail:
Homepage:https://github.com/BeWorld2018/SDL
Readme:
SDL3 Libraries 3.4.22 Package for version 3.21 or higher of MorphOS system.
**************************************************************************

SDL3.LIBRARY 3.422 01.12.2026 based on SDL 3.4.22
SDL3_IMAGE.LIBRARY 3.410 01.12.2026 based on SDL3_IMAGE 3.4.10
SDL3_MIXER.LIBRARY 3.300 01.12.2026 based on SDL3_MIXER 3.3.0
SDL3_TTF.LIBRARY 3.300 01.12.2026 based on SDL3_TTF 3.3.0
SDL3_NET.LIBRARY - not included yet

Library version = SDL version: VERSION = major, REVISION = minor * 100 + micro (SDL 3.4.22 -> 3.422).

Simple DirectMedia Layer
************************

What is it?
Simple DirectMedia Layer is a cross-platform development library designed to provide low level access to audio, keyboard, mouse, joystick, and graphics hardware via OpenGL/Direct3D/Metal/Vulkan. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.

SDL 3.0 is distributed under the zlib license. This license allows you to use SDL freely in any software.

https://libsdl.org/
https://wiki.libsdl.org/


Installation:
*************

MorphOS version 3.21 is required to be installed as a minimum.
Developer: You need the new SDK 3.20!!
sdl3_ttf.library needs freetype.library 59 and harfbuzz.library 67 (system libraries).
sdl3_image.library uses system jfif.library, png.library and tiff.library (a missing one only disables its format).
sdl3_mixer.library uses vorbisfile.library (Ogg Vorbis, and the Ogg container of FLAC and Opus).
sdl3_mixer.library needs fluidsynth.library 2.601 or newer for MIDI with FluidSynth: install the
FluidSynth Library package (2.6.1 or newer), available on MorphOS-Storage: https://www.morphos-storage.net/?find=fluidsynth
Without it, MIDI music is played by Timidity.
MIDI: timidity files are installed in LIBS:timidity, and the GeneralUser GS SoundFont (S. Christian Collins)
used by FluidSynth in LIBS:soundfonts/GeneralUser GS v1.471.sf2.

Just double-click on the Install icon and read the incremental instructions.

SDL2 and SDL3 can be installed together: sdl2*.library and sdl3*.library are different libraries.

- WARNING: it's recommended that you have a minimum 64MB graphics video (opengl features)
(if not, then it is advised that you disable "enhanced display" and reduce your screen resolution of Ambient)


SDL3 MorphOS Features:
**********************

- Shared libraries: a program and the sdl3_* libraries it uses share the same SDL state
- SDL renderer: OpenGL (TinyGL), Overlay (cgxvideo VLayer) and Software renderer are available
- Renderer chosen in SYS:Prefs/SDL3 (opengl, overlay, software), else the program's choice
- SYS:Prefs/SDL3: settings for all the SDL3 programs, the devices SDL3 sees and an update check (see below)
- Any SDL hint can be set by hand in ENV:SDL3/, also for one program only (see below)
- Ctrl-C/Break quits programs, also without a window
- SDL3_image: BMP, GIF, JPG, LBM, PCX, PNG, PNM, QOI, SVG, TGA, TIFF, WEBP, XCF, XPM, XV and animations (GIF, APNG, WEBP, ANI)
- SDL3_mixer: WAV, AIFF, VOC, AU, MP3, Ogg Vorbis, FLAC, Opus, MOD/XM/S3M/IT (libxmp), MIDI (FluidSynth by
fluidsynth.library, Timidity)
- SDL3_ttf: FreeType and HarfBuzz from the system, SVG/colour emoji fonts

SDL3 MorphOS specific and limitation:
************************************

- sdl3_ttf: the OpenGL text engine (TTF_CreateGLTextEngine) is not available in the library
- Programs linked with an old SDL3 SDK (53.x glue) have to be relinked
- sdl3_mixer MIDI: seeking backwards in a MIDI file (a loop that doesn't start at the beginning) renders the
music again from the start: a short gap while it plays. Loops from the start are immediate.

SDL3 MorphOS window menu and settings:
**************************************

Each SDL3 window has a MorphOS menu (right mouse button):
- Project: About SDL3, Mute Sound, Iconify, Quit

The settings are in SYS:Prefs/SDL3 (Save: ENVARC:SDL3 and ENV:SDL3, Use: ENV:SDL3 only):
- General (first page): SDL logo, versions, and the update check (needs Internet): looks for a
newer SDL3 package on MorphOS-Storage (MOSSYS:C/OFHTTP) and opens its page. A package republished
with the same version is also seen: the versions and dates of its readme (SDL3.LIBRARY 3.422
01.12.2026...) are compared with the libraries in LIBS:
- Video: render driver (the list of this sdl3.library, software when the one chosen can't be used),
vertical sync, low CPU priority
- Audio: buffer size: default 1024 frames (about 23 ms at 44.1 kHz, 512 up to 22 kHz), or 2048,
4096, 8192 frames against crackling on a busy system. AHI takes at least 4 KB per request
(1024 frames in 16-bit stereo), so smaller values change nothing.
- Devices: libraries, CPU, languages, render drivers, joysticks and gamepads (GUID, mapping found),
audio outputs and inputs, displays (mode, usable area, fullscreen modes)
- Logs: MorphOS debug output (SDL3_HINT_DEBUG), SDL_LOGGING level, opens LogTool
They apply to the programs started afterwards.

Every SDL hint can also be set by hand, under its name (SDL_xxx, see the SDL wiki):
- ENV:SDL3/<hint name> for every program: SetEnv SDL3/SDL_RENDER_DRIVER software
- ENV:SDL3/<program>/<hint name> for one program (the name of its executable), over the first one
They act like environment variables elsewhere: above the program's own hints, except the ones it forces.
Copy them to ENVARC:SDL3 to keep them after a reboot.
Debug: setenv SDL3_HINT_DEBUG 1 prints debug traces in the debug log.
The old variables of the window menu (SDL3_HINT_RENDER_DRIVER, SDL3_HINT_RENDER_VSYNC,
SDL3_THREAD_PRIORITY_POLICY) are still read; the preferences remove them when saved.

For developers (MorphOS specific):
- Window without the MorphOS menu: SDL_CreateWindowWithProperties() with the boolean property
"SDL.window.create.morphos.menu" set to false.
- Use an existing Intuition window: pointer property "morphos.window" (struct Window *).
- SDL_LoadObject() uses dynload.library: a module is a relocatable object built with
gcc -noixemul -G 0 -fno-common -nostdlib -nostartfiles -r x.c -o x.so (no libc inside, it uses the program's).
The program: -G 0 at compile and link time, only --strip-debug (the module looks its symbols up), and it
must contain every libc function the modules need. Modules see the program's symbols, not sdl3.library's.
The old libdll modules (separate executables) are not supported any more.

Developers:
***********

The SDK replaces the static libraries: libSDL3.a, libSDL3_image.a, libSDL3_mixer.a and libSDL3_ttf.a are
glue libraries opening the shared libraries. Link with -lSDL3_ttf -lSDL3_mixer -lSDL3_image -lSDL3 -lGL.
-mresident32 code uses the libb32 versions; the -nc ones open nothing (base set by hand): libSDL3-nc.a is the
program version (the program opens sdl3.library itself).
fd/clib/proto/ppcinline headers are included for sdl3.library and the sdl3_* libraries.
pkg-config files (sdl3, sdl3-image, sdl3-mixer, sdl3-ttf) and CMake package files are included, and libSDL3_test.a.
CMake: find_package(SDL3 REQUIRED CONFIG) then link SDL3::SDL3 (also SDL3_image::SDL3_image, SDL3_mixer::SDL3_mixer,
SDL3_ttf::SDL3_ttf, SDL3::SDL3_test, SDL3::Headers). The -static targets are not available, only the shared libraries.
The Install keeps a static libSDL3*.a already in GG:usr/local/lib: it is renamed libSDL3*_static.a.

Extras:
*******

testsprite, testgeometry, testgl, testaudioinfo, renderbench, checkkeys, testcontroller (gamepad test and mapping), testautomation (SDL3 test suite),
showimage, showanim (SDL3_image), testmixer, testaudiodecoder, testspatialization (SDL3_mixer;
testmixer --simple <file> plays a file once, without the test loops),
showfont, testapp <font.ttf> (SDL3_ttf).

GameController Readme:
**********************

SDL3 reads the gamepad mappings from ENV:gamecontrollerdb.txt (same file and format as SDL2, installed by the Install script).
To create the mapping of your own gamepad: run extras/testcontroller, click on "Setup Mapping",
press the buttons/axes asked, "Done", then "Copy" (or Ctrl-C) puts the mapping line in the clipboard: add it to ENVARC:gamecontrollerdb.txt
(and ENV:gamecontrollerdb.txt). Then any SDL2 or SDL3 game can use it.

A MorphOS community sourced database of game controller mappings is available here : https://github.com/BeWorld2018/gamecontrollerdb.txt

Please don't hesitate to participate in adding to this database, so kindly send me your working mapping(s) to add to our database. Thanks !

NOTES:
******

Thanks to Ilkka Lehtoranta for his sources code (SDL2 2.0.3 and SDL2_image 2.0.0).
Thanks to Szilard Biro (BSzili) for his help and his major contribution.
Thanks to Bigfoot for TinyGL upgrade, his help and his contribution.
Thanks to all members of MorphOS Teams for their patience with me and their indispensable help.
Thanks to all testers and developers (for libs and contributes)

Feel free to contribute.

BeWorld

BeWorld @ sfr . fr

Paypal:
Upload Date:Dec 01 2026
Category:Dependencies/Library/SDL
Download:SDL3-Libraries_3.4.22.lha
Md5:dc0288f799483b6c5d1954aaff054eb3
Size:46 MB
Downloads:3

Screenshot(s)
 
History
Last Comments
Add comment