SDL/docs
Sam Lantinga c699f3d1d8 Updated SDL high DPI support
We have gotten feedback that abstracting the coordinate system based on the display scale is unexpected and it is difficult to adapt existing applications to the proposed API.

The new approach is to provide the coordinate systems that people expect, but provide additional information that will help applications properly handle high DPI situations.

The concepts needed for high DPI support are documented in README-highdpi.md. An example of automatically adapting the content to display scale changes can be found in SDL_test_common.c, where auto_scale_content is checked.

Also, the SDL_WINDOW_ALLOW_HIGHDPI window flag has been replaced by the SDL_HINT_VIDEO_ENABLE_HIGH_PIXEL_DENSITY hint.

Fixes https://github.com/libsdl-org/SDL/issues/7709
2023-05-17 12:58:00 -07:00
..
doxyfile docs: Fix doxyfile 2023-02-19 10:01:33 -08:00
README-android.md Android: control activity re-creation 2023-05-12 07:48:33 -07:00
README-cmake.md Add CMake toolchain files 2023-03-27 15:33:08 -07:00
README-contributing.md Sync SDL3 wiki -> header 2023-02-28 17:50:11 +00:00
README-dynapi.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-emscripten.md Rename SDL2 tests for SDL3 2023-01-03 11:54:35 -08:00
README-gdk.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-git.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-hg.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-highdpi.md Updated SDL high DPI support 2023-05-17 12:58:00 -07:00
README-ios.md Use the term "points" instead of "screen coordinates" 2023-05-15 11:20:38 -07:00
README-kmsbsd.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-linux.md audio: Redesigned audio conversion code for SDL3. 2023-04-27 18:35:15 -04:00
README-macos.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-migration.md Updated SDL high DPI support 2023-05-17 12:58:00 -07:00
README-n3ds.md Rename SDL semaphore and condition variable functions to match SDL 3.0 naming convention 2023-04-28 12:08:33 -07:00
README-ngage.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-platforms.md Revert "Update wiki.libsdl.org urls to libsdl-org/SDL/wiki (#4069)" 2021-04-01 12:15:28 -04:00
README-porting.md include: SDL_dynapi.h depends on platform defines 2023-01-08 21:37:54 +01:00
README-ps2.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-psp.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-raspberrypi.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-riscos.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-touch.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-versions.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-visualc.md SDL_CreateWindow() has been simplified and no longer takes a window position. 2023-03-06 09:50:12 -08:00
README-vita.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-wayland.md Sync SDL3 wiki -> header 2023-05-13 16:55:14 +00:00
README-windows.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README-winrt.md Sync SDL3 wiki -> header 2023-02-28 17:30:22 +00:00
README.md gesture: Removed the gesture API from SDL3. 2022-12-13 14:54:37 -05:00
release_checklist.md Updated release_checklist.md for SDL 3.0 2023-01-04 23:47:01 -08:00

Simple DirectMedia Layer

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 via OpenGL and Direct3D. It is used by video playback software, emulators, and popular games including Valve's award winning catalog and many Humble Bundle games.

SDL officially supports Windows, macOS, Linux, iOS, and Android. Support for other platforms may be found in the source code.

SDL is written in C, works natively with C++, and there are bindings available for several other languages, including C# and Python.

This library is distributed under the zlib license, which can be found in the file "LICENSE.txt".

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 and FAQs are available online at the wiki

If you need help with the library, or just want to discuss SDL related issues, you can join the SDL Discourse, which can be used as a web forum or a mailing list, at your preference.

If you want to report bugs or contribute patches, please submit them to our bug tracker

Enjoy!

Sam Lantinga mailto:slouken@libsdl.org