news.dox 17 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523
  1. /*!
  2. @page news Release notes
  3. @section news_33 Release notes for 3.3
  4. @subsection news_33_geterror Error query
  5. GLFW now supports querying the last error code for the calling thread and its
  6. human-readable description with @ref glfwGetError.
  7. @see @ref error_handling
  8. @subsection news_33_gamepad SDL_GameControllerDB support and gamepad input
  9. GLFW now supports remapping of gamepads and controllers to a 360-like controller
  10. layout with @ref glfwJoystickIsGamepad, @ref glfwGetJoystickGUID, @ref
  11. glfwGetGamepadName, @ref glfwGetGamepadState and @ref glfwUpdateGamepadMappings,
  12. and the input state struct @ref GLFWgamepadstate.
  13. @sa @ref gamepad
  14. @subsection news_33_attention User attention request
  15. GLFW now supports requesting user attention to a specific window (on macOS to
  16. the application as a whole) with @ref glfwRequestWindowAttention.
  17. @see @ref window_attention
  18. @subsection news_33_maximize Window maximization callback
  19. GLFW now supports notifying the application that the window has been maximized
  20. @ref glfwSetWindowMaximizeCallback.
  21. @see @ref window_maximize
  22. @subsection news_33_keyscancode Platform-specific key scancode query
  23. GLFW now supports querying the platform dependent scancode of any physical key
  24. with @ref glfwGetKeyScancode.
  25. @see @ref input_key
  26. @subsection news_33_setwindowattrib Support for updating window attributes
  27. GLFW now supports changing the [GLFW_DECORATED](@ref GLFW_DECORATED_attrib),
  28. [GLFW_RESIZABLE](@ref GLFW_RESIZABLE_attrib),
  29. [GLFW_FLOATING](@ref GLFW_FLOATING_attrib) and
  30. [GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_attrib) attributes for existing
  31. windows with @ref glfwSetWindowAttrib.
  32. @see @ref window_attribs
  33. @subsection news_33_contentscale Content scale queries for DPI-aware rendering
  34. GLFW now supports querying the window and monitor content scale, i.e. the ratio
  35. between the current DPI and the platform's default DPI, with @ref
  36. glfwGetWindowContentScale and @ref glfwGetMonitorContentScale.
  37. @see @ref window_scale
  38. @subsection news_33_inithint Support for initialization hints
  39. GLFW now supports setting library initialization hints with @ref glfwInitHint
  40. or @ref glfwInitHintString. These must be set before initialization to take
  41. effect.
  42. @see @ref init_hints
  43. @subsection news_33_platformhints Support for platform specific hints
  44. GLFW now supports platform specific init and window hints to control system
  45. features that are only available on a single platform.
  46. @see @ref init_hints_osx
  47. @see @ref window_hints_osx
  48. @subsection news_33_joyhats Support for joystick hats
  49. GLFW now supports querying the hats (or POVs or D-pads) of a joystick with @ref
  50. glfwGetJoystickHats. Hats are by default also exposed as buttons, but this can
  51. be disabled with the @ref GLFW_JOYSTICK_HAT_BUTTONS init hint.
  52. @see @ref joystick_hat
  53. @subsection news_33_transparent Support for transparent windows and framebuffers
  54. GLFW now supports the creation of windows with transparent framebuffers on
  55. systems with desktop compositing enabled with the @ref
  56. GLFW_TRANSPARENT_FRAMEBUFFER window hint and attribute. This hint must be set
  57. before window creation and leaves any window decorations opaque.
  58. GLFW now also supports whole window transparency with @ref glfwGetWindowOpacity
  59. and @ref glfwSetWindowOpacity. This value controls the opacity of the whole
  60. window including decorations and unlike framebuffer transparency can be changed
  61. at any time after window creation.
  62. @subsection news_33_centercursor Cursor centering window hint
  63. GLFW now supports controlling whether the cursor is centered over newly created
  64. full screen windows with the [GLFW_CENTER_CURSOR](@ref GLFW_CENTER_CURSOR_hint)
  65. window hint. It is enabled by default.
  66. @subsection news_33_rawmotion Support for raw mouse motion
  67. GLFW now uses raw (unscaled and unaccelerated) mouse motion in disabled cursor
  68. mode on platforms where this is available, specifically Windows and X11.
  69. @subsection news_33_moltenvk Support for Vulkan on macOS via MoltenVK
  70. GLFW now supports the `VK_MVK_macos_surface` window surface creation extension
  71. provided by [MoltenVK](https://moltengl.com/moltenvk/).
  72. @see @ref vulkan_guide
  73. @subsection news_33_osmesa OSMesa backend for headless software rendering
  74. GLFW now supports creating offscreen OpenGL contexts using
  75. [OSMesa](https://www.mesa3d.org/osmesa.html) by setting
  76. [GLFW_CONTEXT_CREATION_API](@ref GLFW_CONTEXT_CREATION_API_hint) to
  77. `GLFW_OSMESA_CONTEXT_API`.
  78. There is also a new null backend that uses OSMesa as its native context
  79. creation API, intended for automated testing. This backend does not provide
  80. input.
  81. @subsection news_33_primary X11 primary selection access
  82. GLFW now supports querying and setting the X11 primary selection via the native
  83. access functions @ref glfwGetX11SelectionString and @ref
  84. glfwSetX11SelectionString.
  85. @section news_32 Release notes for 3.2
  86. @subsection news_32_vulkan Support for Vulkan
  87. GLFW now supports basic integration with Vulkan with @ref glfwVulkanSupported,
  88. @ref glfwGetRequiredInstanceExtensions, @ref glfwGetInstanceProcAddress, @ref
  89. glfwGetPhysicalDevicePresentationSupport and @ref glfwCreateWindowSurface.
  90. Vulkan header inclusion can be selected with
  91. @ref GLFW_INCLUDE_VULKAN.
  92. @subsection news_32_setwindowmonitor Window mode switching
  93. GLFW now supports switching between windowed and full screen modes and updating
  94. the monitor and desired resolution and refresh rate of full screen windows with
  95. @ref glfwSetWindowMonitor.
  96. @subsection news_32_maximize Window maxmimization support
  97. GLFW now supports window maximization with @ref glfwMaximizeWindow and the
  98. @ref GLFW_MAXIMIZED window hint and attribute.
  99. @subsection news_32_focus Window input focus control
  100. GLFW now supports giving windows input focus with @ref glfwFocusWindow.
  101. @subsection news_32_sizelimits Window size limit support
  102. GLFW now supports setting both absolute and relative window size limits with
  103. @ref glfwSetWindowSizeLimits and @ref glfwSetWindowAspectRatio.
  104. @subsection news_32_keyname Localized key names
  105. GLFW now supports querying the localized name of printable keys with @ref
  106. glfwGetKeyName, either by key token or by scancode.
  107. @subsection news_32_waittimeout Wait for events with timeout
  108. GLFW now supports waiting for events for a set amount of time with @ref
  109. glfwWaitEventsTimeout.
  110. @subsection news_32_icon Window icon support
  111. GLFW now supports setting the icon of windows with @ref glfwSetWindowIcon.
  112. @subsection news_32_timer Raw timer access
  113. GLFW now supports raw timer values with @ref glfwGetTimerValue and @ref
  114. glfwGetTimerFrequency.
  115. @subsection news_32_joystick Joystick connection callback
  116. GLFW now supports notifying when a joystick has been connected or disconnected
  117. with @ref glfwSetJoystickCallback.
  118. @subsection news_32_noapi Context-less windows
  119. GLFW now supports creating windows without a OpenGL or OpenGL ES context by
  120. setting the [GLFW_CLIENT_API](@ref GLFW_CLIENT_API_hint) hint to `GLFW_NO_API`.
  121. @subsection news_32_contextapi Run-time context creation API selection
  122. GLFW now supports selecting and querying the context creation API at run-time
  123. with the @ref GLFW_CONTEXT_CREATION_API hint and attribute.
  124. @subsection news_32_noerror Error-free context creation
  125. GLFW now supports creating and querying OpenGL and OpenGL ES contexts that do
  126. not emit errors with the @ref GLFW_CONTEXT_NO_ERROR hint, provided the machine
  127. supports the `GL_KHR_no_error` extension.
  128. @subsection news_32_cmake CMake config-file package support
  129. GLFW now supports being used as a
  130. [config-file package](@ref build_link_cmake_package) from other projects for
  131. easy linking with the library and its dependencies.
  132. @section news_31 Release notes for 3.1
  133. These are the release highlights. For a full list of changes see the
  134. [version history](http://www.glfw.org/changelog.html).
  135. @subsection news_31_cursor Custom mouse cursor images
  136. GLFW now supports creating and setting both custom cursor images and standard
  137. cursor shapes. They are created with @ref glfwCreateCursor or @ref
  138. glfwCreateStandardCursor, set with @ref glfwSetCursor and destroyed with @ref
  139. glfwDestroyCursor.
  140. @see @ref cursor_object
  141. @subsection news_31_drop Path drop event
  142. GLFW now provides a callback for receiving the paths of files and directories
  143. dropped onto GLFW windows. The callback is set with @ref glfwSetDropCallback.
  144. @see @ref path_drop
  145. @subsection news_31_emptyevent Main thread wake-up
  146. GLFW now provides the @ref glfwPostEmptyEvent function for posting an empty
  147. event from another thread to the main thread event queue, causing @ref
  148. glfwWaitEvents to return.
  149. @see @ref events
  150. @subsection news_31_framesize Window frame size query
  151. GLFW now supports querying the size, on each side, of the frame around the
  152. client area of a window, with @ref glfwGetWindowFrameSize.
  153. @see [Window size](@ref window_size)
  154. @subsection news_31_autoiconify Simultaneous multi-monitor rendering
  155. GLFW now supports disabling auto-iconification of full screen windows with
  156. the [GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_hint) window hint. This is
  157. intended for people building multi-monitor installations, where you need windows
  158. to stay in full screen despite losing input focus.
  159. @subsection news_31_floating Floating windows
  160. GLFW now supports floating windows, also called topmost or always on top, for
  161. easier debugging with the @ref GLFW_FLOATING window hint and attribute.
  162. @subsection news_31_focused Initially unfocused windows
  163. GLFW now supports preventing a windowed mode window from gaining input focus on
  164. creation, with the [GLFW_FOCUSED](@ref GLFW_FOCUSED_hint) window hint.
  165. @subsection news_31_direct Direct access for window attributes and cursor position
  166. GLFW now queries the window input focus, visibility and iconification attributes
  167. and the cursor position directly instead of returning cached data.
  168. @subsection news_31_charmods Character with modifiers callback
  169. GLFW now provides a callback for character events with modifier key bits. The
  170. callback is set with @ref glfwSetCharModsCallback. Unlike the regular character
  171. callback, this will report character events that will not result in a character
  172. being input, for example if the Control key is held down.
  173. @see @ref input_char
  174. @subsection news_31_single Single buffered framebuffers
  175. GLFW now supports the creation of single buffered windows, with the @ref
  176. GLFW_DOUBLEBUFFER hint.
  177. @subsection news_31_glext Macro for including extension header
  178. GLFW now includes the extension header appropriate for the chosen OpenGL or
  179. OpenGL ES header when @ref GLFW_INCLUDE_GLEXT is defined. GLFW does not provide
  180. these headers. They must be provided by your development environment or your
  181. OpenGL or OpenGL ES SDK.
  182. @subsection news_31_release Context release behaviors
  183. GLFW now supports controlling and querying whether the pipeline is flushed when
  184. a context is made non-current, with the @ref GLFW_CONTEXT_RELEASE_BEHAVIOR hint
  185. and attribute, provided the machine supports the `GL_KHR_context_flush_control`
  186. extension.
  187. @subsection news_31_wayland (Experimental) Wayland support
  188. GLFW now has an _experimental_ Wayland display protocol backend that can be
  189. selected on Linux with a CMake option.
  190. @subsection news_31_mir (Experimental) Mir support
  191. GLFW now has an _experimental_ Mir display server backend that can be selected
  192. on Linux with a CMake option.
  193. @section news_30 Release notes for 3.0
  194. These are the release highlights. For a full list of changes see the
  195. [version history](http://www.glfw.org/changelog.html).
  196. @subsection news_30_cmake CMake build system
  197. GLFW now uses the CMake build system instead of the various makefiles and
  198. project files used by earlier versions. CMake is available for all platforms
  199. supported by GLFW, is present in most package systems and can generate
  200. makefiles and/or project files for most popular development environments.
  201. For more information on how to use CMake, see the
  202. [CMake manual](http://cmake.org/cmake/help/documentation.html).
  203. @subsection news_30_multiwnd Multi-window support
  204. GLFW now supports the creation of multiple windows, each with their own OpenGL
  205. or OpenGL ES context, and all window functions now take a window handle. Event
  206. callbacks are now per-window and are provided with the handle of the window that
  207. received the event. The @ref glfwMakeContextCurrent function has been added to
  208. select which context is current on a given thread.
  209. @subsection news_30_multimon Multi-monitor support
  210. GLFW now explicitly supports multiple monitors. They can be enumerated with
  211. @ref glfwGetMonitors, queried with @ref glfwGetVideoModes, @ref
  212. glfwGetMonitorPos, @ref glfwGetMonitorName and @ref glfwGetMonitorPhysicalSize,
  213. and specified at window creation to make the newly created window full screen on
  214. that specific monitor.
  215. @subsection news_30_unicode Unicode support
  216. All string arguments to GLFW functions and all strings returned by GLFW now use
  217. the UTF-8 encoding. This includes the window title, error string, clipboard
  218. text, monitor and joystick names as well as the extension function arguments (as
  219. ASCII is a subset of UTF-8).
  220. @subsection news_30_clipboard Clipboard text I/O
  221. GLFW now supports reading and writing plain text to and from the system
  222. clipboard, with the @ref glfwGetClipboardString and @ref glfwSetClipboardString
  223. functions.
  224. @subsection news_30_gamma Gamma ramp support
  225. GLFW now supports setting and reading back the gamma ramp of monitors, with the
  226. @ref glfwGetGammaRamp and @ref glfwSetGammaRamp functions. There is also @ref
  227. glfwSetGamma, which generates a ramp from a gamma value and then sets it.
  228. @subsection news_30_gles OpenGL ES support
  229. GLFW now supports the creation of OpenGL ES contexts, by setting the
  230. [GLFW_CLIENT_API](@ref GLFW_CLIENT_API_hint) hint to `GLFW_OPENGL_ES_API`, where
  231. creation of such contexts are supported. Note that GLFW _does not implement_
  232. OpenGL ES, so your driver must provide support in a way usable by GLFW. Modern
  233. Nvidia and Intel drivers support creation of OpenGL ES context using the GLX and
  234. WGL APIs, while AMD provides an EGL implementation instead.
  235. @subsection news_30_egl (Experimental) EGL support
  236. GLFW now has an experimental EGL context creation back end that can be selected
  237. through CMake options.
  238. @subsection news_30_hidpi High-DPI support
  239. GLFW now supports high-DPI monitors on both Windows and macOS, giving windows
  240. full resolution framebuffers where other UI elements are scaled up. To achieve
  241. this, @ref glfwGetFramebufferSize and @ref glfwSetFramebufferSizeCallback have
  242. been added. These work with pixels, while the rest of the GLFW API works with
  243. screen coordinates. This is important as OpenGL uses pixels, not screen
  244. coordinates.
  245. @subsection news_30_error Error callback
  246. GLFW now has an error callback, which can provide your application with much
  247. more detailed diagnostics than was previously possible. The callback is passed
  248. an error code and a description string.
  249. @subsection news_30_wndptr Per-window user pointer
  250. Each window now has a user-defined pointer, retrieved with @ref
  251. glfwGetWindowUserPointer and set with @ref glfwSetWindowUserPointer, to make it
  252. easier to integrate GLFW into C++ code.
  253. @subsection news_30_iconifyfun Window iconification callback
  254. Each window now has a callback for iconification and restoration events,
  255. which is set with @ref glfwSetWindowIconifyCallback.
  256. @subsection news_30_wndposfun Window position callback
  257. Each window now has a callback for position events, which is set with @ref
  258. glfwSetWindowPosCallback.
  259. @subsection news_30_wndpos Window position query
  260. The position of a window can now be retrieved using @ref glfwGetWindowPos.
  261. @subsection news_30_focusfun Window focus callback
  262. Each windows now has a callback for focus events, which is set with @ref
  263. glfwSetWindowFocusCallback.
  264. @subsection news_30_enterleave Cursor enter/leave callback
  265. Each window now has a callback for when the mouse cursor enters or leaves its
  266. client area, which is set with @ref glfwSetCursorEnterCallback.
  267. @subsection news_30_wndtitle Initial window title
  268. The title of a window is now specified at creation time, as one of the arguments
  269. to @ref glfwCreateWindow.
  270. @subsection news_30_hidden Hidden windows
  271. Windows can now be hidden with @ref glfwHideWindow, shown using @ref
  272. glfwShowWindow and created initially hidden with the @ref GLFW_VISIBLE window
  273. hint and attribute. This allows for off-screen rendering in a way compatible
  274. with most drivers, as well as moving a window to a specific position before
  275. showing it.
  276. @subsection news_30_undecorated Undecorated windows
  277. Windowed mode windows can now be created without decorations, e.g. things like
  278. a frame, a title bar, with the @ref GLFW_DECORATED window hint and attribute.
  279. This allows for the creation of things like splash screens.
  280. @subsection news_30_keymods Modifier key bit masks
  281. [Modifier key bit mask](@ref mods) parameters have been added to the
  282. [mouse button](@ref GLFWmousebuttonfun) and [key](@ref GLFWkeyfun) callbacks.
  283. @subsection news_30_scancode Platform-specific scancodes
  284. A scancode parameter has been added to the [key callback](@ref GLFWkeyfun). Keys
  285. that don't have a [key token](@ref keys) still get passed on with the key
  286. parameter set to `GLFW_KEY_UNKNOWN`. These scancodes will vary between machines
  287. and are intended to be used for key bindings.
  288. @subsection news_30_jsname Joystick names
  289. The name of a joystick can now be retrieved using @ref glfwGetJoystickName.
  290. @subsection news_30_doxygen Doxygen documentation
  291. You are reading it.
  292. */