Simple DirectMedia Layer https://libsdl.org
Find a file
Ryan C. Gordon a37d3f96f4 main: SDL_RunApp now explicitly handles NULL argv in all implementations.
It'll usually replace it with `{ "SDL_app", NULL }`, but things like Win32
can query the OS for the original command line arguments.

This allows apps/scripting languages that provide their own entry points to
use SDL_RunApp and not have to worry about how to compose an argv array on
things like Windows, when SDL was going to do it for them anyhow.

Most things won't experience any change with this commit, including apps that
that want extra control but originate in a standard main()-style entry point
and can just pass the existing argc/argv through to SDL_RunApp.

Windows isn't addressed here, since a previous commit already updated it.
GDK has a different fix here, but we'll unify that in a later commit.

Closes #12676.
2025-11-23 23:38:41 -05:00
.github Revert "Create FUNDING.yml" 2025-11-16 01:15:56 +03:00
android-project Updated to version 3.3.3 for development 2025-10-23 22:41:03 -07:00
build-scripts wikiheaders: Treat docs/INTRO-* files the same way as the README files. 2025-11-21 09:36:56 -05:00
cmake X11TK: Introduce Thai support and rewrite/cleanup messagebox positioning code (#14474) 2025-11-20 15:26:46 -08:00
docs README-emscripten: Added some initial notes about customizing index.html. 2025-11-21 10:25:34 -05:00
examples fixed several -Wzero-as-null-pointer-constant warnings from gcc-15 2025-11-17 17:55:10 +03:00
include main: SDL_RunApp now explicitly handles NULL argv in all implementations. 2025-11-23 23:38:41 -05:00
src main: SDL_RunApp now explicitly handles NULL argv in all implementations. 2025-11-23 23:38:41 -05:00
test Add SDL_(Get|Set)iSurfaceClipRect automation test 2025-11-24 00:02:36 +01:00
VisualC Added support for the new Steam Controller 2025-11-12 11:32:32 -08:00
VisualC-GDK Added SDL_hidapi_steam_triton.c to the GDK Visual Studio project 2025-11-12 11:54:48 -08:00
wayland-protocols Add SDL Pinch events (#9445) 2025-10-12 14:44:23 -07:00
Xcode Allow resizing test applications on iPadOS 2025-11-21 09:31:10 -08:00
.clang-format Add 'wl_list_for_each_safe' to the clang-format macro list 2024-03-14 10:22:23 -04:00
.clang-tidy Fix size of memcpy in SDL_AudioDeviceFormatChangedAlreadyLocked 2023-08-05 14:14:45 -04:00
.editorconfig .editorconfig: Remove excess apostrophe at *.cocci 2024-06-16 09:18:17 -07:00
.gitignore Updated .gitignore for png test data 2025-10-10 08:59:27 -07:00
.wikiheaders-options wikiheaders: Generate a current list of supported environment variables. 2025-09-02 15:49:52 -04:00
Android.mk android: remove dependency on cpu-features.h 2025-11-11 23:41:43 +00:00
BUGS.txt Added a Discord link to BUGS.txt 2025-01-13 16:42:50 -08:00
CMakeLists.txt X11TK: Introduce Thai support and rewrite/cleanup messagebox positioning code (#14474) 2025-11-20 15:26:46 -08:00
CREDITS.md Updated the credits for SDL 3.0 2025-01-13 16:42:50 -08:00
INSTALL.md Add a link to docs/INTRO-mingw.md 2025-03-06 16:25:17 -08:00
LICENSE.txt Updated copyright for 2025 2025-01-01 07:45:52 -08:00
README.md Revert "Update README.md" 2025-11-16 01:15:10 +03:00
WhatsNew.txt Added a patch note for SDL_ELF_NOTE_DLOPEN 2025-10-27 08:28:05 -07:00

Simple DirectMedia Layer (SDL for short) is a cross-platform library designed to make it easy to write multi-media software, such as games and emulators.

You can find the latest release and additional information at: https://www.libsdl.org/

Installation instructions and a quick introduction is available in INSTALL.md

This library is distributed under the terms of the zlib license, available in LICENSE.txt.

Enjoy!

Sam Lantinga (slouken@libsdl.org)