mirror of https://github.com/libsdl-org/SDL.git
SDL_Surface has been simplified and internal details are no longer in the public structure. The `format` member of SDL_Surface is now an enumerated pixel format value. You can get the full details of the pixel format by calling `SDL_GetPixelFormatDetails(surface->format)`. You can get the palette associated with the surface by calling SDL_GetSurfacePalette(). You can get the clip rectangle by calling SDL_GetSurfaceClipRect(). SDL_PixelFormat has been renamed SDL_PixelFormatDetails and just describes the pixel format, it does not include a palette for indexed pixel types. SDL_PixelFormatEnum has been renamed SDL_PixelFormat and is used instead of Uint32 for API functions that refer to pixel format by enumerated value. SDL_MapRGB(), SDL_MapRGBA(), SDL_GetRGB(), and SDL_GetRGBA() take an optional palette parameter for indexed color lookups. |
||
|---|---|---|
| .. | ||
| SDL_migration.cocci | ||
| add-source-to-projects.pl | ||
| androidbuildlibs.sh | ||
| build-release.py | ||
| casefolding.txt | ||
| check_stdlib_usage.py | ||
| clang-format-src.sh | ||
| cmake-toolchain-mingw64-i686.cmake | ||
| cmake-toolchain-mingw64-x86_64.cmake | ||
| cmake-toolchain-qnx-aarch64le.cmake | ||
| cmake-toolchain-qnx-x86_64.cmake | ||
| codechecker-buildbot.sh | ||
| create-android-project.py | ||
| create-release.sh | ||
| fnsince.pl | ||
| gen_audio_channel_conversion.c | ||
| git-pre-push-hook.pl | ||
| makecasefoldhashtable.pl | ||
| mkinstalldirs | ||
| rename_api.py | ||
| rename_headers.py | ||
| rename_macros.py | ||
| rename_symbols.py | ||
| showrev.sh | ||
| strip_fPIC.sh | ||
| test-versioning.sh | ||
| update-copyright.sh | ||
| update-version.sh | ||
| updaterev.sh | ||
| wikiheaders.pl | ||