Simple Directmedia Layer
Find a file
David Gow a76b73dd2c kmsdrm: Use SDL_PremultiplySurfaceAlphaToARGB8888() for cursor surface
Instead of taking a direct copy of the mouse cursor surface, and then
premultiplying on every BO upload (using the custom
legacy_alpha_premultiply_ARGB8888 function), use the new
SDL_PremultiplySurfaceAlphaToARGB8888() function, which converts a whole
surface at a time, once and save the result.

The already-premultiplied data is then copied from that to the BO on
each upload, adjusting for the stride (which the previous implementation
required to be equal to the width), thereby making the extra copy
slightly useful..

This also adds support for non-SDL_PIXELFORMAT_ARGB8888 surfaces.
2021-10-22 05:50:00 -07:00
.github
acinclude
android-project backout SDL_AndroidSetInputType() 2021-10-17 23:47:59 +02:00
android-project-ant
build-scripts wikiheaders.pl: Try to handle functions with multiple declarations better. 2021-10-08 20:50:30 -04:00
cmake cmake: Move the old, global add_definitions (etc) to an interface library. 2021-10-05 12:34:29 -04:00
debian
docs enabled os2 joystick code (if anyone has actually a use for it...) 2021-10-15 08:51:02 +03:00
include Added SDL_USE_BUILTIN_OPENGL_DEFINITIONS to avoid system OpenGL headers 2021-10-21 20:48:08 -07:00
src kmsdrm: Use SDL_PremultiplySurfaceAlphaToARGB8888() for cursor surface 2021-10-22 05:50:00 -07:00
test Fix compiler warnings in testvulkan.c 2021-10-06 15:24:41 -07:00
VisualC
VisualC-WinRT
visualtest
wayland-protocols
Xcode
Xcode-iOS
.gitignore
Android.mk
autogen.sh
BUGS.txt
cmake_uninstall.cmake.in
CMakeLists.txt riscos: Implement SDL_GetPrefPath() 2021-10-12 13:07:52 -07:00
configure riscos: Implement SDL_GetPrefPath() 2021-10-12 13:07:52 -07:00
configure.ac riscos: Implement SDL_GetPrefPath() 2021-10-12 13:07:52 -07:00
CREDITS.txt
INSTALL.txt
LICENSE.txt
Makefile.in
Makefile.minimal
Makefile.os2 minor update to os2 makefile. 2021-10-04 00:32:56 +03:00
Makefile.pandora
Makefile.psp PSP: fixed build 2021-10-04 21:56:42 +02:00
Makefile.wiz
README-SDL.txt
README.md
sdl2-config-version.cmake.in
sdl2-config.cmake.in
sdl2-config.in
sdl2.m4
sdl2.pc.in
SDL2.spec.in
SDL2Config.cmake Fix Debug-only builds with CMake 2021-10-05 18:45:53 -07:00
TODO.txt
WhatsNew.txt

Simple DirectMedia Layer (SDL) Version 2.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 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.

More extensive documentation is available in the docs directory, starting with README.md

Enjoy!

Sam Lantinga (slouken@libsdl.org)