3.3.2
Pre-releaseThis is a preview of the upcoming 3.4 release!
The API and ABI are still in progress, but we wanted to get this out so everyone can try out the new features and provide feedback.
Please report any issues on GitHub:
https://github.com/libsdl-org/SDL/issues
Here are the highlights of this preview release:
- Added SDL_CreateAnimatedCursor() to create animated color cursors
- Added SDL_SetWindowProgressState(), SDL_SetWindowProgressValue(), SDL_GetWindowProgressState(), and SDL_GetWindowProgressValue() to show progress in the window's taskbar icon on Windows and Linux
- Added SDL_GetGPUDeviceProperties() to get the properties of an SDL GPU device
- Added SDL_GetPixelFormatFromGPUTextureFormat() and SDL_GetGPUTextureFormatFromPixelFormat()
- Added SDL_CreateGPURenderer() and SDL_GetGPURendererDevice() to create a 2D renderer for use with GPU rendering.
- Added SDL_CreateGPURenderState(), SDL_SetGPURenderStateFragmentUniforms(), SDL_SetGPURenderState(), and SDL_DestroyGPURenderState() to use fragment shaders with a GPU 2D renderer
- Added support for YUV textures and HDR colorspaces to the GPU 2D renderer
- Added support for textures with palettes, and SDL_GetTexturePalette() and SDL_SetTexturePalette() to interact with them
- Added SDL_RenderTexture9GridTiled() to do tiled instead of stretched 9-grid texture rendering
- Added SDL_GetDefaultTextureScaleMode() and SDL_SetDefaultTextureScaleMode() to set the texture scale mode for new textures
- Added SDL_GetRenderTextureAddressMode() and SDL_SetRenderTextureAddressMode() to change the texture addressing mode
- Added SDL_TEXTURE_ADDRESS_WRAP to allow wrapping of textures if the renderer has SDL_PROP_RENDERER_TEXTURE_WRAPPING_BOOLEAN set
- Added SDL_LoadPNG(), SDL_LoadPNG_IO(), SDL_SavePNG(), and SDL_SavePNG_IO() to load and save PNG images
- Added SDL_RotateSurface() to create a rotated copy of a surface
- Added SDL_PutAudioStreamDataNoCopy() to do more efficient audio stream processing in some cases
- Added SDL_PutAudioStreamPlanarData() to add planar audio data instead of interleaved data to an audio stream
- Added SDL_HINT_AUDIO_DEVICE_RAW_STREAM to signal that the OS shouldn't do further audio processing, useful for applications that handle noise canceling, etc.
- Added enhanced support for 8BitDo controllers
- Added enhanced support for FlyDigi controllers
- Added enhanced support for Hand Held Legend SInput controllers
- Added SDL_hid_get_properties() to associate SDL properties with HID devices
- Added SDL_SetRelativeMouseTransform() to add custom mouse input transformation
- Added SDL_GetPenDeviceType() to determine whether a pen is on the screen or on a separate touchpad
- Added SDL_GetEventDescription() to get an English description of an event, suitable for logging
- Added verbose log output when the DEBUG_INVOCATION environment variable is set to "1"
- Added SDL_AddAtomicU32()
- Added SDL_GetSystemPageSize() to get the system page size
Windows:
- Added SDL_HINT_RENDER_DIRECT3D11_WARP to enable D3D11 software rasterization
- SDL_HINT_AUDIO_DEVICE_STREAM_ROLE is used by the WASAPI audio driver to set the audio stream category
- SDL_HINT_WINDOWS_GAMEINPUT is disabled by default
Linux:
- Added atomic support for KMSDRM
- Added SDL_HINT_KMSDRM_ATOMIC to control whether KMSDRM will use atomic functionality
Emscripten:
- Added SDL_HINT_EMSCRIPTEN_FILL_DOCUMENT for applications that don't want to be fullscreen, but would like to fill the window
PlayStation 2:
- Added the following hints to control the display parameters: SDL_HINT_PS2_GS_WIDTH, SDL_HINT_PS2_GS_HEIGHT, SDL_HINT_PS2_GS_PROGRESSIVE, SDL_HINT_PS2_GS_MODE
Note: On Unix platforms SDL provides ELF notes describing its non-mandatory library dependencies in the format described by https://systemd.io/ELF_DLOPEN_METADATA/. Some of these libraries are quite important, so distribution vendors who package SDL should parse the ELF notes and consider generating dependencies at the packaging level, for example by using https://github.com/systemd/package-notes. Other libraries and games can add similar ELF notes to describe their own dependencies by using the SDL_ELF_NOTE_DLOPEN macro.