SDL 2.0.12

On March 11, the next version of SDL 2.0.12 was released.

SDL is a cross-platform development library for providing low-level access to input devices, audio hardware, graphics hardware via OpenGL and Direct3D. Various video players, emulators and computer games, including those provided as free software, have been written using SDL.

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

The following improvements are marked:

  • Added texture zoom level functions SDL_GetTextureScaleMode() and SDL_SetTextureScaleMode()
  • Added texture lock function SDL_LockTextureToSurface(), unlike SDL_LockTexture() representing the locked part as an SDL surface.
  • Added new blend mode SDL_BLENDMODE_MUL combining modulation and blending
  • Added SDL_HINT_DISPLAY_USABLE_BOUNDS hint to ignore SDL_GetDisplayUsableBounds() results for display index 0.
  • Added window under finger for SDL_TouchFingerEvent
  • Added functions SDL_GameControllerTypeForIndex(), SDL_GameControllerGetType() to get game controller type
  • Added SDL_HINT_GAMECONTROLLERTYPE hint to ignore automatic controller type detection
  • Added functions SDL_JoystickFromPlayerIndex(), SDL_GameControllerFromPlayerIndex(), SDL_JoystickSetPlayerIndex(), SDL_GameControllerSetPlayerIndex() to determine and match player and device number
  • Added or improved support for two dozen different game controllers
  • Fixed game controller vibration call blocking when using HIDAPI driver
  • Added macro for zeroing array elements SDL_zeroa()
  • Added SDL_HasARMSIMD() function that returns true if the processor supports ARM SIMD (ARMv6+)

Improvements for Linux:

  • Added SDL_HINT_VIDEO_X11_WINDOW_VISUALID hint to determine the view selected for new X11 windows
  • Added SDL_HINT_VIDEO_X11_FORCE_EGL hint to determine whether to use GLX or EGL for X11 by default

Improvements for Android:

  • Added SDL_GetAndroidSDKVersion() function that returns the API level of the given device
  • Added support for capturing audio with OpenSL-ES
  • Added support for Bluetooth Steam Controller as game controllers
  • Fixed rare app crashes when it goes into the background or closes

Source: linux.org.ru

Add a comment