The release of the SDL 2.0.20 library (Simple DirectMedia Layer) aimed at simplifying the development of games and multimedia applications has occurred. The SDL library provides tools such as hardware-accelerated output for 2D and 3D graphics, input handling, audio playback, and 3D rendering via OpenGL/OpenGL ES/Vulkan, along with many other supporting operations. The library is written in C and is distributed under the zlib license. Bindings are provided for using SDL's capabilities in projects written in various programming languages. The library code is distributed under the Zlib license.
In the new release:
- The accuracy of rendering horizontal and vertical lines when using OpenGL and OpenGL ES has been improved.
- The SDL_HINT_RENDER_LINE_METHOD hint has been added to choose the line rendering method, affecting speed, correctness, and compatibility.
- The SDL_RenderGeometryRaw() function has been reworked to use a pointer to the SDL_Color parameter instead of an integer value. Color data can be specified in SDL_PIXELFORMAT_RGBA32 and SDL_PIXELFORMAT_ABGR8888 formats.
- On Windows, the issue with the size of custom cursors has been resolved.
- In Linux, the hotplugging of game controllers, broken in the 2.0.18 release, has been restored.
Additionally, the release of the SDL_ttf 2.0.18 library with a wrapper over the FreeType 2 font engine has been noted, providing tools for working with TTF fonts (TrueType) in SDL 2.0.18. The new release includes additional features for scaling, output management, resizing, and defining TTF font parameters, as well as support for 32-bit glyphs.
Source: opennet.ru
