SDL 2.0.12

On March 11, the new version SDL 2.0.12 was released.

SDL is a cross-platform development library that provides low-level access to input devices, audio hardware, and graphics hardware through OpenGL and Direct3D. Various media players, emulators, and computer games, including those offered as free software, have been created using SDL.

SDL is written in C, works with C++, and provides bindings to about a dozen other programming languages, including Pascal.

The following improvements have been made:

  • Added texture scaling functions SDL_GetTextureScaleMode() and SDL_SetTextureScaleMode().
  • A texture locking function SDL_LockTextureToSurface() has been added, which represents the locked part as an SDL surface, unlike SDL_LockTexture().
  • A new blending mode SDL_BLENDMODE_MUL has been added, combining modulation and blending.
  • Added SDL_HINT_DISPLAY_USABLE_BOUNDS to ignore the results of SDL_GetDisplayUsableBounds() for display index 0.
  • A finger touch area has been added for the SDL_TouchFingerEvent event.
  • Functions SDL_GameControllerTypeForIndex() and SDL_GameControllerGetType() have been added to obtain the type of game controller.
  • Added SDL_HINT_GAMECONTROLLERTYPE to ignore automatic controller type detection.
  • Functions SDL_JoystickFromPlayerIndex(), SDL_GameControllerFromPlayerIndex(), SDL_JoystickSetPlayerIndex(), and SDL_GameControllerSetPlayerIndex() have been added to determine and set the correspondence between player number and device.
  • Support for two dozen different game controllers has been added or improved.
  • The issue with the vibration call for game controllers using the HIDAPI driver has been fixed.
  • A macro for zeroing array elements SDL_zeroa() has been added.
  • The function SDL_HasARMSIMD() has been added, returning true if the processor supports ARM SIMD (ARMv6+).

Improvements for Linux:

  • Added SDL_HINT_VIDEO_X11_WINDOW_VISUALID to specify the visual selected for new X11 windows.
  • Added SDL_HINT_VIDEO_X11_FORCE_EGL to specify the use of GLX or EGL for X11 by default.

Improvements for Android:

  • The function SDL_GetAndroidSDKVersion() has been added, returning the API level of this device.
  • Support for audio capture using OpenSL-ES has been added.
  • Support for Bluetooth Steam Controller as game controllers has been added.
  • Rare application crashes when going into the background or closing have been fixed.

Source: linux.org.ru

Buy reliable website hosting with DDoS protection, VPS VDS servers 🔥 Buy reliable website hosting with DDoS protection, VPS VDS servers | ProHoster