Go to file
Ryan C. Gordon cab3defc18 render: SDL_DestroyWindow hollows out its renderer but doesn't free it.
This allows apps to destroy the window and renderer in either order, but
makes sure that the renderer can properly clean up its resources while OpenGL
contexts and libraries are still loaded, etc.

If the window is destroyed first, the renderer is (mostly) destroyed but its
pointer remains valid. Attempts to use the renderer will return an error,
but it can still be explicitly destroyed, at which time the struct is free'd.

If the renderer is destroyed first, everything works as before, and a new
renderer can still be created on the existing window.

Fixes #9540.
2024-04-19 00:25:59 -04:00
.github Add testautomation to android artifacts 2024-04-15 11:47:18 -10:00
VisualC include: Removed SDL_quit.h 2024-04-15 11:35:39 -04:00
VisualC-GDK include: Removed SDL_quit.h 2024-04-15 11:35:39 -04:00
VisualC-WinRT include: Removed SDL_quit.h 2024-04-15 11:35:39 -04:00
Xcode Rewrote audio resampler using cubic filter interpolation 2024-04-15 11:47:18 -10:00
android-project Updated to version 3.1.1 for the preview release 2024-04-01 17:03:46 -07:00
build-scripts SDL_Keymod: Removed SDL_KMOD_RESERVED. 2024-04-17 17:30:10 -04:00
cmake cmake: switch iOS and watchOS 2024-04-08 19:25:38 +02:00
docs Sync SDL3 wiki -> header 2024-04-18 17:41:14 +00:00
include SDL3 removed SDL_HINT_RENDER_SCALE_QUALITY hint 2024-04-17 16:38:15 -07:00
mingw/pkg-support mingw: add pkg-support files (INSTALL.txt and Makefile) 2024-03-23 21:41:20 +01:00
src render: SDL_DestroyWindow hollows out its renderer but doesn't free it. 2024-04-19 00:25:59 -04:00
test testffmpeg: treat Khronos headers as system headers 2024-04-18 09:10:15 -07:00
wayland-protocols wayland: Update tablet-v2 protocol file to stable version 2024-04-11 18:34:02 -04: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 Fixed formatting for Haiku cc files 2023-01-25 03:03:41 -08:00
.gitignore GDK: Remove old shader sources, unify shader compilation .bats 2024-03-02 10:30:29 -08:00
.wikiheaders-options Removed unnecessary exclamation marks 2024-04-15 09:42:10 -07:00
Android.mk Add time and realtime clock functions 2024-03-19 10:57:36 -07:00
BUGS.txt Cleaned up a few more Bugzilla mentions. 2021-02-12 14:46:49 -05:00
CMakeLists.txt cmake: pass macho version information separately from so version 2024-04-15 18:36:27 +00:00
CREDITS.md docs: Moved CREDITS and INSTALL to markdown format. 2023-11-29 12:31:27 -05:00
INSTALL.md Updated INSTALL.md 2024-04-10 09:18:42 -04:00
LICENSE.txt Updated copyright for 2024 2024-01-01 13:15:26 -08:00
README-SDL.txt More HTTPS changes in the documentation. 2017-02-16 16:52:03 -05:00
README.md Tweaking documentation for the SDL 3.0 preview release 2024-03-24 06:16:02 -07:00
WhatsNew.txt Tweaking documentation for the SDL 3.0 preview release 2024-03-24 06:16:02 -07:00

README.md

Simple DirectMedia Layer (SDL) Version 3.0

https://www.libsdl.org/

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

More extensive documentation is available in the docs directory, starting with README.md. If you are migrating to SDL 3.0 from SDL 2.0, the changes are extensively documented in README-migration.md.

Enjoy!

Sam Lantinga (slouken@libsdl.org)