39 lines
2.1 KiB
Plaintext
39 lines
2.1 KiB
Plaintext
|
|
This is a list of major changes in SDL's version history.
|
|
|
|
---------------------------------------------------------------------------
|
|
3.2.0:
|
|
---------------------------------------------------------------------------
|
|
|
|
General:
|
|
* SDL headers should now be included as `#include <SDL3/SDL.h>`
|
|
* M_PI is no longer defined in SDL_stdinc.h, now the symbols SDL_PI_D (double) and SDL_PI_F (float) are available
|
|
* SDL_GetWindowWMInfo() returns a standard int result code instead of SDL_bool, and takes SDL_SYSWM_CURRENT_VERSION as a new third parameter
|
|
* The preprocessor symbol __MACOSX__ has been renamed __MACOS__
|
|
* The preprocessor symbol __IPHONEOS__ has been renamed __IOS__
|
|
* Removed the following functions from the API, see docs/README-migration.md for details:
|
|
* SDL_CalculateGammaRamp()
|
|
* SDL_GetRevisionNumber()
|
|
* SDL_GetWindowBrightness()
|
|
* SDL_GetWindowGammaRamp()
|
|
* SDL_RWFromFP()
|
|
* SDL_SetWindowBrightness()
|
|
* SDL_SetWindowGammaRamp()
|
|
* SDL_CreateRGBSurface()
|
|
* SDL_CreateRGBSurfaceWithFormat()
|
|
* SDL_CreateRGBSurfaceFrom()
|
|
* SDL_CreateRGBSurfaceWithFormatFrom()
|
|
* Removed the following hints from the API, see docs/README-migration.md for details:
|
|
* SDL_HINT_IDLE_TIMER_DISABLED
|
|
* SDL_HINT_VIDEO_X11_FORCE_EGL
|
|
* SDL_HINT_VIDEO_X11_XINERAMA
|
|
* SDL_HINT_VIDEO_X11_XVIDMODE
|
|
* SDL_stdinc.h no longer includes stdio.h, stdlib.h, etc., it only provides the SDL C runtime functionality
|
|
* Added SDL_CreateSurface() and SDL_CreateSurfaceFrom() which replace the SDL_CreateRGBSurface*()
|
|
* Removed unused 'flags' parameter from SDL_ConvertSurface and SDL_ConvertSurfaceFormat
|
|
* Removed 'SDL_GL_CONTEXT_EGL' from OpenGL configuration attributes
|
|
* 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
|
|
* The timestamp member of the SDL_Event structure is now in nanoseconds, filled in with SDL_GetTicksNS()
|