WhatsNew.txt 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. * The following macros have been renamed:
  12. * RW_SEEK_CUR -> SDL_RW_SEEK_CUR
  13. * RW_SEEK_END -> SDL_RW_SEEK_END
  14. * RW_SEEK_SET -> SDL_RW_SEEK_SET
  15. * SDL_FreeWAV has been removed and calls can be replaced with SDL_free
  16. * The following functions have been renamed:
  17. * SDL_AudioStreamAvailable => SDL_GetAudioStreamAvailable
  18. * SDL_AudioStreamClear => SDL_ClearAudioStream
  19. * SDL_AudioStreamFlush => SDL_FlushAudioStream
  20. * SDL_AudioStreamGet => SDL_GetAudioStreamData
  21. * SDL_AudioStreamPut => SDL_PutAudioStreamData
  22. * SDL_FreeAudioStream => SDL_DestroyAudioStream
  23. * SDL_NewAudioStream => SDL_CreateAudioStream
  24. * Removed the following functions from the API, see docs/README-migration.md for details:
  25. * SDL_AudioInit()
  26. * SDL_AudioQuit()
  27. * SDL_CalculateGammaRamp()
  28. * SDL_CreateRGBSurface()
  29. * SDL_CreateRGBSurfaceFrom()
  30. * SDL_CreateRGBSurfaceWithFormat()
  31. * SDL_CreateRGBSurfaceWithFormatFrom()
  32. * SDL_GameControllerGetSensorDataWithTimestamp()
  33. * SDL_GetRevisionNumber()
  34. * SDL_GetWindowBrightness()
  35. * SDL_GetWindowGammaRamp()
  36. * SDL_RWFromFP()
  37. * SDL_SensorGetDataWithTimestamp()
  38. * SDL_SetWindowBrightness()
  39. * SDL_SetWindowGammaRamp()
  40. * Removed the following hints from the API, see docs/README-migration.md for details:
  41. * SDL_HINT_IDLE_TIMER_DISABLED
  42. * SDL_HINT_VIDEO_X11_FORCE_EGL
  43. * SDL_HINT_VIDEO_X11_XINERAMA
  44. * SDL_HINT_VIDEO_X11_XVIDMODE
  45. * Renamed hints 'SDL_HINT_VIDEODRIVER' and 'SDL_HINT_AUDIODRIVER' to 'SDL_HINT_VIDEO_DRIVER' and 'SDL_HINT_AUDIO_DRIVER'
  46. * Renamed environment variables 'SDL_VIDEODRIVER' and 'SDL_AUDIODRIVER' to 'SDL_VIDEO_DRIVER' and 'SDL_AUDIO_DRIVER'
  47. * SDL_stdinc.h no longer includes stdio.h, stdlib.h, etc., it only provides the SDL C runtime functionality
  48. * Added SDL_CreateSurface() and SDL_CreateSurfaceFrom() which replace the SDL_CreateRGBSurface*(), and can also be used to create YUV surfaces
  49. * Removed unused 'flags' parameter from SDL_ConvertSurface and SDL_ConvertSurfaceFormat
  50. * Removed 'SDL_GL_CONTEXT_EGL' from OpenGL configuration attributes
  51. * SDL_GetTicks() now returns a 64-bit value and the tick values should be directly compared instead of using the SDL_TICKS_PASSED macro
  52. * Added SDL_GetTicksNS() to return the number of nanoseconds since the SDL library initialized
  53. * Added SDL_DelayNS() to specify a delay in nanoseconds, to the highest precision the system will support
  54. * 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
  55. * The `SDL_DISPLAYEVENT_*` and `SDL_WINDOWEVENT_*` events have been moved to top level events
  56. * Intrinsic headers are no longer included in the public SDL headers
  57. * The following enums have been renamed:
  58. * KMOD_ALT => SDL_KMOD_ALT
  59. * KMOD_CAPS => SDL_KMOD_CAPS
  60. * KMOD_CTRL => SDL_KMOD_CTRL
  61. * KMOD_GUI => SDL_KMOD_GUI
  62. * KMOD_LALT => SDL_KMOD_LALT
  63. * KMOD_LCTRL => SDL_KMOD_LCTRL
  64. * KMOD_LGUI => SDL_KMOD_LGUI
  65. * KMOD_LSHIFT => SDL_KMOD_LSHIFT
  66. * KMOD_MODE => SDL_KMOD_MODE
  67. * KMOD_NONE => SDL_KMOD_NONE
  68. * KMOD_NUM => SDL_KMOD_NUM
  69. * KMOD_RALT => SDL_KMOD_RALT
  70. * KMOD_RCTRL => SDL_KMOD_RCTRL
  71. * KMOD_RESERVED => SDL_KMOD_RESERVED
  72. * KMOD_RGUI => SDL_KMOD_RGUI
  73. * KMOD_RSHIFT => SDL_KMOD_RSHIFT
  74. * KMOD_SCROLL => SDL_KMOD_SCROLL
  75. * KMOD_SHIFT => SDL_KMOD_SHIFT