2015-06-21 18:33:46 +03:00
This is a list of major changes in SDL's version history.
2022-08-28 04:55:55 +03:00
---------------------------------------------------------------------------
2022-11-24 00:33:48 +03:00
3.2.0:
2022-08-28 04:55:55 +03:00
---------------------------------------------------------------------------
General:
2022-11-27 07:43:38 +03:00
* SDL headers should now be included as `#include <SDL3/SDL.h>`
2022-11-25 22:35:24 +03:00
* M_PI is no longer defined in SDL_stdinc.h, now the symbols SDL_PI_D (double) and SDL_PI_F (float) are available
2022-11-24 00:33:48 +03:00
* SDL_GetWindowWMInfo() returns a standard int result code instead of SDL_bool, and takes SDL_SYSWM_CURRENT_VERSION as a new third parameter
2022-11-26 03:00:06 +03:00
* The preprocessor symbol __MACOSX__ has been renamed __MACOS__
* The preprocessor symbol __IPHONEOS__ has been renamed __IOS__
2022-11-27 21:07:44 +03:00
* Removed the following functions from the API, see docs/README-migration.md for details:
2022-12-01 19:26:32 +03:00
* SDL_CalculateGammaRamp()
2022-12-04 20:21:14 +03:00
* SDL_CreateRGBSurface()
* SDL_CreateRGBSurfaceFrom()
* SDL_CreateRGBSurfaceWithFormat()
* SDL_CreateRGBSurfaceWithFormatFrom()
* SDL_GameControllerGetSensorDataWithTimestamp()
2022-12-01 19:26:32 +03:00
* SDL_GetRevisionNumber()
* SDL_GetWindowBrightness()
* SDL_GetWindowGammaRamp()
* SDL_RWFromFP()
2022-12-04 20:21:14 +03:00
* SDL_SensorGetDataWithTimestamp()
2022-12-01 19:26:32 +03:00
* SDL_SetWindowBrightness()
* SDL_SetWindowGammaRamp()
2022-11-27 21:07:44 +03:00
* Removed the following hints from the API, see docs/README-migration.md for details:
2022-12-01 19:26:32 +03:00
* SDL_HINT_IDLE_TIMER_DISABLED
* SDL_HINT_VIDEO_X11_FORCE_EGL
* SDL_HINT_VIDEO_X11_XINERAMA
* SDL_HINT_VIDEO_X11_XVIDMODE
2022-12-08 12:40:01 +03:00
* Renamed hints 'SDL_HINT_VIDEODRIVER' and 'SDL_HINT_AUDIODRIVER' to 'SDL_HINT_VIDEO_DRIVER' and 'SDL_HINT_AUDIO_DRIVER'
* Renamed environment variables 'SDL_VIDEODRIVER' and 'SDL_AUDIODRIVER' to 'SDL_VIDEO_DRIVER' and 'SDL_AUDIO_DRIVER'
2022-11-26 12:41:46 +03:00
* SDL_stdinc.h no longer includes stdio.h, stdlib.h, etc., it only provides the SDL C runtime functionality
2022-12-02 23:53:48 +03:00
* Added SDL_CreateSurface() and SDL_CreateSurfaceFrom() which replace the SDL_CreateRGBSurface*(), and can also be used to create YUV surfaces
2022-11-29 20:40:09 +03:00
* Removed unused 'flags' parameter from SDL_ConvertSurface and SDL_ConvertSurfaceFormat
2022-12-02 01:53:37 +03:00
* Removed 'SDL_GL_CONTEXT_EGL' from OpenGL configuration attributes
2022-12-02 12:17:17 +03:00
* SDL_GetTicks() now returns a 64-bit value and the tick values should be directly compared instead of using the SDL_TICKS_PASSED macro
* Added SDL_GetTicksNS() to return the number of nanoseconds since the SDL library initialized
* Added SDL_DelayNS() to specify a delay in nanoseconds, to the highest precision the system will support
2022-12-02 20:03:13 +03:00
* The timestamp member of the SDL_Event structure is now in nanoseconds, filled in with the time the event was generated, or the time it was queued if that's not available
2022-11-26 20:12:42 +03:00
* Intrinsic headers are no longer included in the public SDL headers