WhatsNew.txt 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. This is a list of major changes in SDL's version history.
  2. ---------------------------------------------------------------------------
  3. 2.0.3:
  4. ---------------------------------------------------------------------------
  5. Mac OS X:
  6. * Fixed creating an OpenGL context by default on Mac OS X 10.6
  7. ---------------------------------------------------------------------------
  8. 2.0.2:
  9. ---------------------------------------------------------------------------
  10. General:
  11. * Added SDL_GL_ResetAttributes() to reset OpenGL attributes to default values
  12. * Added an API to load a database of game controller mappings from a file:
  13. SDL_GameControllerAddMappingsFromFile(), SDL_GameControllerAddMappingsFromRW()
  14. * Added game controller mappings for the PS4 and OUYA controllers
  15. * Added SDL_GetDefaultAssertionHandler() and SDL_GetAssertionHandler()
  16. * Added SDL_DetachThread()
  17. * Added SDL_HasAVX() to determine if the CPU has AVX features
  18. * Added SDL_vsscanf(), SDL_acos(), and SDL_asin() to the stdlib routines
  19. * EGL can now create/manage OpenGL and OpenGL ES 1.x/2.x contexts, and share
  20. them using SDL_GL_SHARE_WITH_CURRENT_CONTEXT
  21. * Added a field "clicks" to the mouse button event which records whether the event is a single click, double click, etc.
  22. * The screensaver is now disabled by default, and there is a hint SDL_HINT_VIDEO_ALLOW_SCREENSAVER that can change that behavior.
  23. * Added a hint SDL_HINT_MOUSE_RELATIVE_MODE_WARP to specify whether mouse relative mode should be emulated using mouse warping.
  24. * testgl2 does not need to link with libGL anymore
  25. * Added testgles2 test program to demonstrate working with OpenGL ES 2.0
  26. * Added controllermap test program to visually map a game controller
  27. Windows:
  28. * Support for OpenGL ES 2.x contexts using either WGL or EGL (natively via
  29. the driver or emulated through ANGLE)
  30. * Added a hint SDL_HINT_VIDEO_WIN_D3DCOMPILER to specify which D3D shader compiler to use for OpenGL ES 2 support through ANGLE
  31. * Added a hint SDL_HINT_VIDEO_WINDOW_SHARE_PIXEL_FORMAT that is useful when creating multiple windows that should share the same OpenGL context.
  32. * Added an event SDL_RENDER_TARGETS_RESET that is sent when D3D9 render targets are reset after the device has been restored.
  33. Mac OS X:
  34. * Added a hint SDL_HINT_MAC_CTRL_CLICK_EMULATE_RIGHT_CLICK to control whether Ctrl+click should be treated as a right click on Mac OS X. This is off by default.
  35. Linux:
  36. * Fixed fullscreen and focused behavior when receiving NotifyGrab events
  37. * Added experimental Wayland and Mir support, disabled by default
  38. Android:
  39. * Joystick support (minimum SDK version required to build SDL is now 12,
  40. the required runtime version remains at 10, but on such devices joystick
  41. support won't be available).
  42. * Hotplugging support for joysticks
  43. * Added a hint SDL_HINT_ACCELEROMETER_AS_JOYSTICK to control whether the accelerometer should be listed as a 3 axis joystick, which it will by default.
  44. ---------------------------------------------------------------------------
  45. 2.0.1:
  46. ---------------------------------------------------------------------------
  47. General:
  48. * Added an API to get common filesystem paths in SDL_filesystem.h:
  49. SDL_GetBasePath(), SDL_GetPrefPath()
  50. * Added an API to do optimized YV12 and IYUV texture updates:
  51. SDL_UpdateYUVTexture()
  52. * Added an API to get the amount of RAM on the system:
  53. SDL_GetSystemRAM()
  54. * Added a macro to perform timestamp comparisons with SDL_GetTicks():
  55. SDL_TICKS_PASSED()
  56. * Dramatically improved OpenGL ES 2.0 rendering performance
  57. * Added OpenGL attribute SDL_GL_FRAMEBUFFER_SRGB_CAPABLE
  58. Windows:
  59. * Created a static library configuration for the Visual Studio 2010 project
  60. * Added a hint to create the Direct3D device with support for multi-threading:
  61. SDL_HINT_RENDER_DIRECT3D_THREADSAFE
  62. * Added a function to get the D3D9 adapter index for a display:
  63. SDL_Direct3D9GetAdapterIndex()
  64. * Added a function to get the D3D9 device for a D3D9 renderer:
  65. SDL_RenderGetD3D9Device()
  66. * Fixed building SDL with the mingw32 toolchain (mingw-w64 is preferred)
  67. * Fixed crash when using two XInput controllers at the same time
  68. * Fixed detecting a mixture of XInput and DirectInput controllers
  69. * Fixed clearing a D3D render target larger than the window
  70. * Improved support for format specifiers in SDL_snprintf()
  71. Mac OS X:
  72. * Added support for retina displays:
  73. Create your window with the SDL_WINDOW_ALLOW_HIGHDPI flag, and then use SDL_GL_GetDrawableSize() to find the actual drawable size. You are responsible for scaling mouse and drawing coordinates appropriately.
  74. * Fixed mouse warping in fullscreen mode
  75. * Right mouse click is emulated by holding the Ctrl key while left clicking
  76. Linux:
  77. * Fixed float audio support with the PulseAudio driver
  78. * Fixed missing line endpoints in the OpenGL renderer on some drivers
  79. * X11 symbols are no longer defined to avoid collisions when linking statically
  80. iOS:
  81. * Fixed status bar visibility on iOS 7
  82. * Flipped the accelerometer Y axis to match expected values
  83. Android:
  84. IMPORTANT: You MUST get the updated SDLActivity.java to match C code
  85. * Moved EGL initialization to native code
  86. * Fixed the accelerometer axis rotation relative to the device rotation
  87. * Fixed race conditions when handling the EGL context on pause/resume
  88. * Touch devices are available for enumeration immediately after init
  89. Raspberry Pi:
  90. * Added support for the Raspberry Pi, see README-raspberrypi.txt for details