2024-02-13 19:45:29 +00:00
|
|
|
# Release notes {#news}
|
2013-06-13 10:24:07 +00:00
|
|
|
|
2024-02-13 21:42:49 +00:00
|
|
|
[TOC]
|
2016-08-18 21:42:15 +00:00
|
|
|
|
2017-06-18 13:13:25 +00:00
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
## Release notes for version 3.4 {#news_34}
|
2019-04-16 12:43:29 +00:00
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
### New features in version 3.4 {#features_34}
|
2019-04-16 12:43:29 +00:00
|
|
|
|
2024-02-20 13:20:30 +00:00
|
|
|
#### Cocoa NSView native access function {#native_cocoa_nsview_34}
|
|
|
|
|
|
|
|
GLFW now provides the @ref glfwGetCocoaView native access function
|
|
|
|
for returning the Cocoa NSView.
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### Runtime platform selection {#runtime_platform_34}
|
2021-07-13 19:50:09 +00:00
|
|
|
|
|
|
|
GLFW now supports being compiled for multiple backends and selecting between
|
|
|
|
them at runtime with the @ref GLFW_PLATFORM init hint. After initialization the
|
|
|
|
selected platform can be queried with @ref glfwGetPlatform. You can check if
|
|
|
|
support for a given platform is compiled in with @ref glfwPlatformSupported.
|
|
|
|
|
|
|
|
|
2024-02-18 14:23:23 +00:00
|
|
|
#### More standard cursor shapes {#standard_cursors_34}
|
2019-05-07 18:40:37 +00:00
|
|
|
|
|
|
|
GLFW now provides the standard cursor shapes @ref GLFW_RESIZE_NWSE_CURSOR and
|
|
|
|
@ref GLFW_RESIZE_NESW_CURSOR for diagonal resizing, @ref GLFW_RESIZE_ALL_CURSOR
|
2022-07-28 13:56:18 +00:00
|
|
|
for omnidirectional resizing and @ref GLFW_NOT_ALLOWED_CURSOR for showing an
|
2019-05-07 18:40:37 +00:00
|
|
|
action is not allowed.
|
|
|
|
|
|
|
|
Unlike the original set, these shapes may not be available everywhere and
|
|
|
|
creation will then fail with the new @ref GLFW_CURSOR_UNAVAILABLE error.
|
|
|
|
|
|
|
|
The cursors for horizontal and vertical resizing are now referred to as @ref
|
|
|
|
GLFW_RESIZE_EW_CURSOR and @ref GLFW_RESIZE_NS_CURSOR, and the pointing hand
|
|
|
|
cursor is now referred to as @ref GLFW_POINTING_HAND_CURSOR. The older names
|
|
|
|
are still available.
|
|
|
|
|
|
|
|
For more information see @ref cursor_standard.
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### Mouse event passthrough {#mouse_passthrough_34}
|
2020-07-08 21:21:28 +00:00
|
|
|
|
|
|
|
GLFW now provides the [GLFW_MOUSE_PASSTHROUGH](@ref GLFW_MOUSE_PASSTHROUGH_hint)
|
|
|
|
window hint for making a window transparent to mouse input, lettings events pass
|
|
|
|
to whatever window is behind it. This can also be changed after window
|
|
|
|
creation with the matching [window attribute](@ref GLFW_MOUSE_PASSTHROUGH_attrib).
|
|
|
|
|
|
|
|
|
2024-02-16 12:45:22 +00:00
|
|
|
#### Ability to get window title {#features_34_window_title}
|
2024-02-07 19:26:52 +00:00
|
|
|
|
2024-02-16 12:45:22 +00:00
|
|
|
GLFW now supports querying the title of a window with the @ref glfwGetWindowTitle
|
2024-02-07 19:26:52 +00:00
|
|
|
function.
|
|
|
|
|
2024-02-16 12:45:22 +00:00
|
|
|
For more information see @ref window_title.
|
|
|
|
|
2024-02-07 19:26:52 +00:00
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### Captured cursor mode {#captured_cursor_34}
|
2019-12-03 16:58:20 +00:00
|
|
|
|
|
|
|
GLFW now supports confining the cursor to the window content area with the @ref
|
|
|
|
GLFW_CURSOR_CAPTURED cursor mode.
|
|
|
|
|
|
|
|
For more information see @ref cursor_mode.
|
|
|
|
|
|
|
|
|
2024-02-18 14:23:23 +00:00
|
|
|
#### Support for custom heap memory allocator {#features_34_init_allocator}
|
2021-08-03 18:53:48 +00:00
|
|
|
|
|
|
|
GLFW now supports plugging a custom memory allocator at initialization with @ref
|
|
|
|
glfwInitAllocator. The allocator is a struct of type @ref GLFWallocator with
|
|
|
|
function pointers corresponding to the standard library functions `malloc`,
|
|
|
|
`realloc` and `free`.
|
|
|
|
|
|
|
|
For more information see @ref init_allocator.
|
|
|
|
|
|
|
|
|
2024-02-07 19:04:14 +00:00
|
|
|
#### Window hint for framebuffer scaling {#scale_framebuffer_34}
|
|
|
|
|
|
|
|
GLFW now allows provides the
|
|
|
|
[GLFW_SCALE_FRAMEBUFFER](@ref GLFW_SCALE_FRAMEBUFFER_hint) window hint for
|
|
|
|
controlling framebuffer scaling on platforms that handle scaling by keeping the
|
|
|
|
window size the same while resizing the framebuffer. The default value is to
|
|
|
|
allow framebuffer scaling.
|
|
|
|
|
|
|
|
This was already possible on macOS via the
|
|
|
|
[GLFW_COCOA_RETINA_FRAMEBUFFER](@ref GLFW_COCOA_RETINA_FRAMEBUFFER_hint) window
|
|
|
|
hint. This hint is now another name for
|
|
|
|
[GLFW_SCALE_FRAMEBUFFER](@ref GLFW_SCALE_FRAMEBUFFER_hint).
|
|
|
|
|
2024-02-18 14:23:23 +00:00
|
|
|
For more information see @ref window_scale.
|
2024-02-07 19:04:14 +00:00
|
|
|
|
|
|
|
|
2024-02-18 14:23:23 +00:00
|
|
|
#### Window hints for initial window position {#features_34_position_hint}
|
2021-10-26 12:25:03 +00:00
|
|
|
|
|
|
|
GLFW now provides the @ref GLFW_POSITION_X and @ref GLFW_POSITION_Y window hints for
|
|
|
|
specifying the initial position of the window. This removes the need to create a hidden
|
|
|
|
window, move it and then show it. The default value of these hints is
|
|
|
|
`GLFW_ANY_POSITION`, which selects the previous behavior.
|
|
|
|
|
2024-02-18 14:23:23 +00:00
|
|
|
For more information see @ref window_pos.
|
|
|
|
|
2021-10-26 12:25:03 +00:00
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### Support for keyboard access to Windows window menu {#features_34_win32_keymenu}
|
2019-08-20 17:00:59 +00:00
|
|
|
|
|
|
|
GLFW now provides the
|
|
|
|
[GLFW_WIN32_KEYBOARD_MENU](@ref GLFW_WIN32_KEYBOARD_MENU_hint) window hint for
|
|
|
|
enabling keyboard access to the window menu via the Alt+Space and
|
|
|
|
Alt-and-then-Space shortcuts. This may be useful for more GUI-oriented
|
|
|
|
applications.
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### Support for applying STARTUPINFO show command {#features_34_win32_showdefault}
|
2024-02-01 01:10:34 +00:00
|
|
|
|
|
|
|
GLFW now provides the [GLFW_WIN32_SHOWDEFAULT](@ref GLFW_WIN32_SHOWDEFAULT_hint) window
|
|
|
|
hint for applying the show command in the program's `STARTUPINFO` when showing the window
|
|
|
|
for the first time. This may be useful for the main window of a windowed-mode tool.
|
|
|
|
|
|
|
|
|
2024-02-18 14:23:23 +00:00
|
|
|
#### Wayland libdecor decorations {#wayland_libdecor_34}
|
|
|
|
|
|
|
|
GLFW now supports improved fallback window decorations via
|
|
|
|
[libdecor](https://gitlab.freedesktop.org/libdecor/libdecor).
|
|
|
|
|
|
|
|
Support for libdecor can be toggled before GLFW is initialized with the
|
|
|
|
[GLFW_WAYLAND_LIBDECOR](@ref GLFW_WAYLAND_LIBDECOR_hint) init hint. It is
|
|
|
|
enabled by default.
|
|
|
|
|
|
|
|
|
|
|
|
#### Window hint for Wayland app_id {#wayland_app_id_34}
|
|
|
|
|
|
|
|
GLFW now supports specifying the app_id for a Wayland window using the
|
|
|
|
[GLFW_WAYLAND_APP_ID](@ref GLFW_WAYLAND_APP_ID_hint) window hint string.
|
|
|
|
|
|
|
|
|
|
|
|
#### Support for ANGLE rendering backend selection {#features_34_angle_backend}
|
|
|
|
|
|
|
|
GLFW now provides the
|
|
|
|
[GLFW_ANGLE_PLATFORM_TYPE](@ref GLFW_ANGLE_PLATFORM_TYPE_hint) init hint for
|
|
|
|
requesting a specific rendering backend when using [ANGLE][] to create OpenGL ES
|
|
|
|
contexts.
|
|
|
|
|
|
|
|
[ANGLE]: https://chromium.googlesource.com/angle/angle/
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
### Caveats for version 3.4 {#caveats}
|
2021-07-13 19:50:09 +00:00
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### Multiple sets of native access functions {#native_34}
|
2021-07-13 19:50:09 +00:00
|
|
|
|
|
|
|
Because GLFW now supports runtime selection of platform (window system), a library binary
|
|
|
|
may export native access functions for multiple platforms. Starting with version 3.4 you
|
|
|
|
must not assume that GLFW is running on a platform just because it exports native access
|
2022-07-28 13:56:18 +00:00
|
|
|
functions for it. After initialization, you can query the selected platform with @ref
|
2021-07-13 19:50:09 +00:00
|
|
|
glfwGetPlatform.
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### Version string format has been changed {#version_string_34}
|
2021-07-13 19:50:09 +00:00
|
|
|
|
|
|
|
Because GLFW now supports runtime selection of platform (window system), the version
|
|
|
|
string returned by @ref glfwGetVersionString has been expanded. It now contains the names
|
|
|
|
of all APIs for all the platforms that the library binary supports.
|
|
|
|
|
2019-04-16 12:43:29 +00:00
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### Joystick support is initialized on demand {#joysticks_34}
|
2020-07-12 16:31:29 +00:00
|
|
|
|
|
|
|
The joystick part of GLFW is now initialized when first used, primarily to work
|
|
|
|
around faulty Windows drivers that cause DirectInput to take up to several
|
|
|
|
seconds to enumerate devices.
|
|
|
|
|
|
|
|
This change will usually not be observable. However, if your application waits
|
|
|
|
for events without having first called any joystick function or created any
|
|
|
|
visible windows, the wait may never unblock as GLFW may not yet have subscribed
|
|
|
|
to joystick related OS events.
|
|
|
|
|
|
|
|
To work around this, call any joystick function before waiting for events, for
|
|
|
|
example by setting a [joystick callback](@ref joystick_event).
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### Framebuffer may lack alpha channel on older Wayland systems {#wayland_alpha_34}
|
2022-07-25 18:33:47 +00:00
|
|
|
|
|
|
|
On Wayland, when creating an EGL context on a machine lacking the new
|
|
|
|
`EGL_EXT_present_opaque` extension, the @ref GLFW_ALPHA_BITS window hint will be
|
|
|
|
ignored and the framebuffer will have no alpha channel. This is because some
|
|
|
|
Wayland compositors treat any buffer with an alpha channel as per-pixel
|
|
|
|
transparent.
|
|
|
|
|
|
|
|
If you want a per-pixel transparent window, see the
|
|
|
|
[GLFW_TRANSPARENT_FRAMEBUFFER](@ref GLFW_TRANSPARENT_FRAMEBUFFER_hint) window
|
|
|
|
hint.
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### Tests and examples are disabled when built as a subproject {#standalone_34}
|
2019-05-08 17:04:21 +00:00
|
|
|
|
|
|
|
GLFW now does not build the tests and examples when it is added as
|
|
|
|
a subdirectory of another CMake project. To enable these, set the @ref
|
|
|
|
GLFW_BUILD_TESTS and @ref GLFW_BUILD_EXAMPLES cache variables before adding the
|
|
|
|
GLFW subdirectory.
|
|
|
|
|
2024-02-13 19:57:45 +00:00
|
|
|
```cmake
|
2019-05-08 17:04:21 +00:00
|
|
|
set(GLFW_BUILD_EXAMPLES ON CACHE BOOL "" FORCE)
|
|
|
|
set(GLFW_BUILD_TESTS ON CACHE BOOL "" FORCE)
|
|
|
|
add_subdirectory(path/to/glfw)
|
2024-02-13 19:57:45 +00:00
|
|
|
```
|
2019-05-08 17:04:21 +00:00
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### macOS main menu now created at initialization {#initmenu_34}
|
2020-03-05 19:32:19 +00:00
|
|
|
|
|
|
|
GLFW now creates the main menu and completes the initialization of NSApplication
|
|
|
|
during initialization. Programs that do not want a main menu can disable it
|
|
|
|
with the [GLFW_COCOA_MENUBAR](@ref GLFW_COCOA_MENUBAR_hint) init hint.
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### CoreVideo dependency has been removed {#corevideo_34}
|
2019-12-25 16:09:38 +00:00
|
|
|
|
|
|
|
GLFW no longer depends on the CoreVideo framework on macOS and it no longer
|
|
|
|
needs to be specified during compilation or linking.
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### Framebuffer transparency requires DWM transparency {#caveat_fbtransparency_34}
|
2020-07-27 22:12:45 +00:00
|
|
|
|
|
|
|
GLFW no longer supports framebuffer transparency enabled via @ref
|
|
|
|
GLFW_TRANSPARENT_FRAMEBUFFER on Windows 7 if DWM transparency is off
|
|
|
|
(the Transparency setting under Personalization > Window Color).
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### Empty events on X11 no longer round-trip to server {#emptyevents_34}
|
2022-02-18 13:29:43 +00:00
|
|
|
|
|
|
|
Events posted with @ref glfwPostEmptyEvent now use a separate unnamed pipe
|
|
|
|
instead of sending an X11 client event to the helper window.
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
### Deprecations in version 3.4 {#deprecations_34}
|
2019-04-16 12:43:29 +00:00
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
### Removals in 3.4 {#removals_34}
|
2019-04-16 12:43:29 +00:00
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### GLFW_VULKAN_STATIC CMake option has been removed {#vulkan_static_34}
|
2021-10-21 18:45:44 +00:00
|
|
|
|
|
|
|
This option was used to compile GLFW directly linked with the Vulkan loader, instead of
|
|
|
|
using dynamic loading to get hold of `vkGetInstanceProcAddr` at initialization. This is
|
|
|
|
now done by calling the @ref glfwInitVulkanLoader function before initialization.
|
|
|
|
|
|
|
|
If you need backward compatibility, this macro can still be defined for GLFW 3.4 and will
|
|
|
|
have no effect. The call to @ref glfwInitVulkanLoader can be conditionally enabled in
|
|
|
|
your code by checking the @ref GLFW_VERSION_MAJOR and @ref GLFW_VERSION_MINOR macros.
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### GLFW_USE_OSMESA CMake option has been removed {#osmesa_option_34}
|
2021-07-13 19:50:09 +00:00
|
|
|
|
|
|
|
This option was used to compile GLFW for the Null platform. The Null platform is now
|
|
|
|
always supported. To produce a library binary that only supports this platform, the way
|
|
|
|
this CMake option used to do, you will instead need to disable the default platform for
|
|
|
|
the target OS. This means setting the @ref GLFW_BUILD_WIN32, @ref GLFW_BUILD_COCOA or
|
|
|
|
@ref GLFW_BUILD_X11 CMake option to false.
|
|
|
|
|
|
|
|
You can set all of them to false and the ones that don't apply for the target OS will be
|
|
|
|
ignored.
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### Support for the wl_shell protocol has been removed {#wl_shell_34}
|
2020-05-19 16:56:25 +00:00
|
|
|
|
|
|
|
Support for the wl_shell protocol has been removed and GLFW now only supports
|
|
|
|
the XDG-Shell protocol. If your Wayland compositor does not support XDG-Shell
|
|
|
|
then GLFW will fail to initialize.
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
### New symbols in version 3.4 {#symbols_34}
|
2019-04-16 12:43:29 +00:00
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### New functions in version 3.4 {#functions_34}
|
2021-08-03 18:53:48 +00:00
|
|
|
|
|
|
|
- @ref glfwInitAllocator
|
2021-07-13 19:50:09 +00:00
|
|
|
- @ref glfwGetPlatform
|
|
|
|
- @ref glfwPlatformSupported
|
2021-10-21 18:45:44 +00:00
|
|
|
- @ref glfwInitVulkanLoader
|
2024-02-07 19:26:52 +00:00
|
|
|
- @ref glfwGetWindowTitle
|
2021-08-03 18:53:48 +00:00
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### New types in version 3.4 {#types_34}
|
2021-08-03 18:53:48 +00:00
|
|
|
|
|
|
|
- @ref GLFWallocator
|
|
|
|
- @ref GLFWallocatefun
|
|
|
|
- @ref GLFWreallocatefun
|
|
|
|
- @ref GLFWdeallocatefun
|
|
|
|
|
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
#### New constants in version 3.4 {#constants_34}
|
2019-04-16 12:43:29 +00:00
|
|
|
|
2021-07-13 19:50:09 +00:00
|
|
|
- @ref GLFW_PLATFORM
|
|
|
|
- @ref GLFW_ANY_PLATFORM
|
|
|
|
- @ref GLFW_PLATFORM_WIN32
|
|
|
|
- @ref GLFW_PLATFORM_COCOA
|
|
|
|
- @ref GLFW_PLATFORM_WAYLAND
|
|
|
|
- @ref GLFW_PLATFORM_X11
|
|
|
|
- @ref GLFW_PLATFORM_NULL
|
|
|
|
- @ref GLFW_PLATFORM_UNAVAILABLE
|
2019-05-07 18:40:37 +00:00
|
|
|
- @ref GLFW_POINTING_HAND_CURSOR
|
|
|
|
- @ref GLFW_RESIZE_EW_CURSOR
|
|
|
|
- @ref GLFW_RESIZE_NS_CURSOR
|
|
|
|
- @ref GLFW_RESIZE_NWSE_CURSOR
|
|
|
|
- @ref GLFW_RESIZE_NESW_CURSOR
|
|
|
|
- @ref GLFW_RESIZE_ALL_CURSOR
|
2020-07-08 21:21:28 +00:00
|
|
|
- @ref GLFW_MOUSE_PASSTHROUGH
|
2019-05-07 18:40:37 +00:00
|
|
|
- @ref GLFW_NOT_ALLOWED_CURSOR
|
|
|
|
- @ref GLFW_CURSOR_UNAVAILABLE
|
2019-08-20 17:00:59 +00:00
|
|
|
- @ref GLFW_WIN32_KEYBOARD_MENU
|
2024-02-01 01:10:34 +00:00
|
|
|
- @ref GLFW_WIN32_SHOWDEFAULT
|
2020-06-26 16:35:48 +00:00
|
|
|
- @ref GLFW_CONTEXT_DEBUG
|
2020-06-26 18:18:15 +00:00
|
|
|
- @ref GLFW_FEATURE_UNAVAILABLE
|
|
|
|
- @ref GLFW_FEATURE_UNIMPLEMENTED
|
2020-06-25 16:22:08 +00:00
|
|
|
- @ref GLFW_ANGLE_PLATFORM_TYPE
|
|
|
|
- @ref GLFW_ANGLE_PLATFORM_TYPE_NONE
|
|
|
|
- @ref GLFW_ANGLE_PLATFORM_TYPE_OPENGL
|
|
|
|
- @ref GLFW_ANGLE_PLATFORM_TYPE_OPENGLES
|
|
|
|
- @ref GLFW_ANGLE_PLATFORM_TYPE_D3D9
|
|
|
|
- @ref GLFW_ANGLE_PLATFORM_TYPE_D3D11
|
|
|
|
- @ref GLFW_ANGLE_PLATFORM_TYPE_VULKAN
|
|
|
|
- @ref GLFW_ANGLE_PLATFORM_TYPE_METAL
|
2020-12-09 23:11:44 +00:00
|
|
|
- @ref GLFW_X11_XCB_VULKAN_SURFACE
|
2019-12-03 16:58:20 +00:00
|
|
|
- @ref GLFW_CURSOR_CAPTURED
|
2021-10-26 12:25:03 +00:00
|
|
|
- @ref GLFW_POSITION_X
|
|
|
|
- @ref GLFW_POSITION_Y
|
|
|
|
- @ref GLFW_ANY_POSITION
|
2023-12-03 16:23:37 +00:00
|
|
|
- @ref GLFW_WAYLAND_APP_ID
|
2022-12-27 13:37:27 +00:00
|
|
|
- @ref GLFW_WAYLAND_LIBDECOR
|
|
|
|
- @ref GLFW_WAYLAND_PREFER_LIBDECOR
|
|
|
|
- @ref GLFW_WAYLAND_DISABLE_LIBDECOR
|
2024-02-07 19:04:14 +00:00
|
|
|
- @ref GLFW_SCALE_FRAMEBUFFER
|
2019-08-20 17:00:59 +00:00
|
|
|
|
2019-04-16 12:43:29 +00:00
|
|
|
|
2024-02-13 19:45:29 +00:00
|
|
|
## Release notes for earlier versions {#news_archive}
|
2017-06-18 13:13:25 +00:00
|
|
|
|
2019-10-18 11:17:47 +00:00
|
|
|
- [Release notes for 3.3](https://www.glfw.org/docs/3.3/news.html)
|
|
|
|
- [Release notes for 3.2](https://www.glfw.org/docs/3.2/news.html)
|
|
|
|
- [Release notes for 3.1](https://www.glfw.org/docs/3.1/news.html)
|
|
|
|
- [Release notes for 3.0](https://www.glfw.org/docs/3.0/news.html)
|
2013-06-13 10:24:07 +00:00
|
|
|
|