WhatsNew.txt 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. This is a list of major changes in SDL's version history.
  2. ---------------------------------------------------------------------------
  3. 3.2.0:
  4. ---------------------------------------------------------------------------
  5. General:
  6. * SDL headers should now be included as `#include <SDL3/SDL.h>`
  7. * M_PI is no longer defined in SDL_stdinc.h, now the symbols SDL_PI_D (double) and SDL_PI_F (float) are available
  8. * SDL_GetWindowWMInfo() returns a standard int result code instead of SDL_bool, and takes SDL_SYSWM_CURRENT_VERSION as a new third parameter
  9. * The preprocessor symbol __MACOSX__ has been renamed __MACOS__
  10. * The preprocessor symbol __IPHONEOS__ has been renamed __IOS__
  11. * Removed the following functions from the API, see docs/README-migration.md for details:
  12. * SDL_CalculateGammaRamp()
  13. * SDL_CreateRGBSurface()
  14. * SDL_CreateRGBSurfaceFrom()
  15. * SDL_CreateRGBSurfaceWithFormat()
  16. * SDL_CreateRGBSurfaceWithFormatFrom()
  17. * SDL_GameControllerGetSensorDataWithTimestamp()
  18. * SDL_GetRevisionNumber()
  19. * SDL_GetWindowBrightness()
  20. * SDL_GetWindowGammaRamp()
  21. * SDL_RWFromFP()
  22. * SDL_SensorGetDataWithTimestamp()
  23. * SDL_SetWindowBrightness()
  24. * SDL_SetWindowGammaRamp()
  25. * Removed the following hints from the API, see docs/README-migration.md for details:
  26. * SDL_HINT_IDLE_TIMER_DISABLED
  27. * SDL_HINT_VIDEO_X11_FORCE_EGL
  28. * SDL_HINT_VIDEO_X11_XINERAMA
  29. * SDL_HINT_VIDEO_X11_XVIDMODE
  30. * Renamed hints 'SDL_HINT_VIDEODRIVER' and 'SDL_HINT_AUDIODRIVER' to 'SDL_HINT_VIDEO_DRIVER' and 'SDL_HINT_AUDIO_DRIVER'
  31. * Renamed environment variables 'SDL_VIDEODRIVER' and 'SDL_AUDIODRIVER' to 'SDL_VIDEO_DRIVER' and 'SDL_AUDIO_DRIVER'
  32. * SDL_stdinc.h no longer includes stdio.h, stdlib.h, etc., it only provides the SDL C runtime functionality
  33. * Added SDL_CreateSurface() and SDL_CreateSurfaceFrom() which replace the SDL_CreateRGBSurface*(), and can also be used to create YUV surfaces
  34. * Removed unused 'flags' parameter from SDL_ConvertSurface and SDL_ConvertSurfaceFormat
  35. * Removed 'SDL_GL_CONTEXT_EGL' from OpenGL configuration attributes
  36. * SDL_GetTicks() now returns a 64-bit value and the tick values should be directly compared instead of using the SDL_TICKS_PASSED macro
  37. * Added SDL_GetTicksNS() to return the number of nanoseconds since the SDL library initialized
  38. * Added SDL_DelayNS() to specify a delay in nanoseconds, to the highest precision the system will support
  39. * 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
  40. * The `SDL_DISPLAYEVENT_*` and `SDL_WINDOWEVENT_*` events have been moved to top level events
  41. * Intrinsic headers are no longer included in the public SDL headers