Simple Directmedia Layer, 1.2 branch ... ***DEPRECATED***, please use https://github.com/libsdl-org/SDL for new projects! https://libsdl.org
sdl
  • C 83.1%
  • C++ 5.2%
  • Shell 3.8%
  • Objective-C 3.4%
  • M4 2%
  • Other 2.4%
Find a file
Miro Kropacek 81490298a0 atari:video:gem: fix restoring a maximised window
Resizing the window to its current size overwrote the previous window
position stored by the AES, so the fuller button did not restore the
original size.
2026-10-15 11:01:58 +10:00
.github policy: Added LLM policy. 2026-09-03 12:52:36 -04:00
acinclude libtool.m4: remove old_archive_from_new_cmds on os2 2026-03-19 10:55:28 +03:00
build-scripts autotools: minor update to ltmain.sh. 2026-03-17 05:50:40 +03:00
docs Fixed bug 1387 - Patch: fix minor typos in SDL-1.2 HTML docs 2012-01-20 19:49:48 -05:00
include atari:video: remove OpenGL LDG support 2026-09-24 23:29:51 +10:00
os2 adjusted os2/h/FSLib.h to include from FSLib source tree 2021-12-14 23:55:50 +03:00
src atari:video:gem: fix restoring a maximised window 2026-10-15 11:01:58 +10:00
test misc autotools updates: 2025-02-20 14:05:10 +03:00
VisualC VS2005 is ok. (VS2008 just does a conversion.) 2018-07-01 10:20:01 +03:00
VisualCE Unpacked VisualCE.zip. 2011-09-11 14:43:21 -04:00
Xcode (missed touching this one file.) 2019-11-13 08:11:10 +03:00
.gitignore dont .gitignore build-scripts/ 2025-12-20 14:40:02 +03:00
AGENTS.md policy: Added LLM policy. 2026-09-03 12:52:36 -04:00
autogen.sh regenerated configure scripts 2022-07-31 23:28:40 +03:00
BUGS Removed the contents of the BUGS file, as most (all?) of the issues were 2007-02-14 10:40:24 +00:00
CLAUDE.md policy: Added LLM policy. 2026-09-03 12:52:36 -04:00
configure configure: fixed broken indentation because of dnl 2026-10-01 20:11:04 +03:00
configure.ac configure: fixed broken indentation because of dnl 2026-10-01 20:11:04 +03:00
COPYING This library is now available under the LGPL 2.1, the major change of which 2006-01-30 14:27:56 +00:00
CREDITS Added credits for the PS3 code 2009-04-02 04:09:40 +00:00
CWprojects.sea.bin Updated MacOS Classic version, added version resource to MPW build. 2007-12-31 03:04:31 +00:00
docs.html updated docs for 1.2.16 changes so far. 2022-04-25 23:01:20 +03:00
INSTALL Date: Tue, 2 Mar 2004 11:34:54 +0100 2004-03-02 13:01:02 +00:00
Makefile.dc dc: Add strided textured video mode 2026-06-15 08:08:09 -07:00
Makefile.ds Added initial support for Nintendo DS, based on the work by Troy Davis (GPF) 2007-06-25 00:50:20 +00:00
Makefile.in Makefile.in: added missing CXX variable. 2022-04-04 08:11:10 +03:00
Makefile.minimal Fixed bug #171 2006-03-23 21:28:33 +00:00
Makefile.os2 use 'obj' output format with nasm in watcom win32 builds 2025-08-28 11:55:10 +03:00
MPWmake.sea.bin Updated MacOS Classic version, added version resource to MPW build. 2007-12-31 03:04:31 +00:00
README-SDL.txt Initial revision 2001-04-26 16:45:43 +00:00
README.AmigaOS Removed broken AmigaOS support. 2006-10-29 03:58:27 +00:00
README.BeOS Added a reminder on where to put libSDL.so 2006-02-18 07:21:42 +00:00
README.DC dc: Add strided textured video mode 2026-06-15 08:08:09 -07:00
README.Git Update references to Mercurial and Subversion 2021-02-12 12:35:05 -05:00
README.MacOS Date: Sat, 8 Sep 2001 04:42:23 +0200 2001-09-11 19:00:18 +00:00
README.MacOSX autotools build system updates / fixes. 2021-02-11 20:38:06 -05:00
README.md Note that the current version is SDL 3.0 2025-02-28 07:38:35 -08:00
README.MiNT atari:video:gem: use xbios events driver by default 2026-10-08 14:50:44 +10:00
README.NanoX Date: Sat, 24 Aug 2002 22:20:01 -0600 2002-08-25 06:21:49 +00:00
README.NDS Added initial support for Nintendo DS, based on the work by Troy Davis (GPF) 2007-06-25 00:50:20 +00:00
README.OS2 fixed typos in os2 readme file 2021-11-22 11:50:00 +03:00
README.PicoGUI Added initial support for PicoGUI (thanks Micah!) 2002-08-01 23:24:13 +00:00
README.Porting autotools build system updates / fixes. 2021-02-11 20:38:06 -05:00
README.PS3 Hello. 2009-04-02 04:06:55 +00:00
README.QNX Date: Sat, 24 Apr 2004 15:13:32 +0300 2004-05-06 15:55:06 +00:00
README.Qtopia Added a README for Qtopia 2002-06-01 18:43:51 +00:00
README.RISCOS Enable dummy drivers and dlopen in RISC OS builds 2022-01-14 01:00:04 +03:00
README.Symbian Minor updates to the Symbian/S60 port, plus project files that weren't 2007-07-05 04:51:09 +00:00
README.Watcom Update references to Mercurial and Subversion 2021-02-12 12:35:05 -05:00
README.WinCE Unpacked VisualCE.zip. 2011-09-11 14:43:21 -04:00
README.wscons To: sdl@libsdl.org 2005-11-22 15:19:50 +00:00
sdl-config.in Date: Sat, 31 Mar 2007 16:39:52 +0200 2007-04-01 03:27:45 +00:00
sdl.m4 sdl.m4: Call $PKG_CONFIG rather than hard-coding pkg-config 2024-01-10 20:23:32 +03:00
sdl.pc.in Fixed bug #531 2008-01-01 15:23:59 +00:00
SDL.qpg.in Fixed bug 938 - SDL fails to link in mingw+msys+libtool 2011-12-30 14:14:45 -05:00
SDL.spec.in remove symlink for libSDL-1.0.so.0 from the rpm spec file. 2018-10-14 15:25:04 +03:00
symbian.zip Minor updates to the Symbian/S60 port, plus project files that weren't 2007-07-05 04:51:09 +00:00
TODO Fixes bug #195: 2006-04-13 13:08:26 +00:00
VisualC.html Unpacked VisualC.zip. 2011-09-11 13:29:23 -04:00
Watcom-Win32.zip use 'obj' output format with nasm in watcom win32 builds 2025-08-28 11:55:10 +03:00
WhatsNew updated docs for 1.2.16 changes so far. 2022-04-25 23:01:20 +03:00

DEPRECATED

The 1.2 branch of SDL is deprecated. While we occasionally collect fixes in revision control, there has not been a formal release since 2012, and we have no intention to do future releases, either.

Current development is happening in SDL 3.x, which gets regular releases and can be found at:

https://github.com/libsdl-org/SDL

Thanks!

Simple DirectMedia Layer (SDL) Version 1.2

https://www.libsdl.org/

This is the Simple DirectMedia Layer, a general API that provides low level access to audio, keyboard, mouse, joystick, 3D hardware via OpenGL, and 2D framebuffer across multiple platforms.

The current version supports Linux, Windows CE/95/98/ME/XP/Vista, BeOS, MacOS Classic, Mac OS X, FreeBSD, NetBSD, OpenBSD, BSD/OS, Solaris, IRIX, and QNX. The code contains support for Dreamcast, Atari, AIX, OSF/Tru64, RISC OS, SymbianOS, Nintendo DS, and OS/2, but these are not officially supported.

SDL is written in C, but works with C++ natively, and has bindings to several other languages, including Ada, C#, Eiffel, Erlang, Euphoria, Guile, Haskell, Java, Lisp, Lua, ML, Objective C, Pascal, Perl, PHP, Pike, Pliant, Python, Ruby, and Smalltalk.

This library is distributed under GNU LGPL version 2, which can be found in the file "COPYING". This license allows you to use SDL freely in commercial programs as long as you link with the dynamic library.

The best way to learn how to use SDL is to check out the header files in the "include" subdirectory and the programs in the "test" subdirectory. The header files and test programs are well commented and always up to date. More documentation is available in HTML format in "docs/index.html".

The test programs in the "test" subdirectory are in the public domain.

Enjoy!

Sam Lantinga (slouken@libsdl.org)