2013-06-13 06:24:07 -04:00
|
|
|
/*!
|
|
|
|
|
2017-06-11 12:04:17 -04:00
|
|
|
@page news Release notes
|
2013-06-13 06:24:07 -04:00
|
|
|
|
2017-06-11 12:04:17 -04:00
|
|
|
@section news_33 Release notes for 3.3
|
2016-08-18 17:42:15 -04:00
|
|
|
|
2017-05-01 13:20:57 -04:00
|
|
|
|
|
|
|
@subsection news_33_geterror Error query
|
|
|
|
|
2017-05-25 12:23:09 -04:00
|
|
|
GLFW now supports querying the last error code for the calling thread and its
|
|
|
|
human-readable description with @ref glfwGetError.
|
2017-05-01 13:20:57 -04:00
|
|
|
|
|
|
|
@see @ref error_handling
|
|
|
|
|
|
|
|
|
2017-06-18 09:13:25 -04:00
|
|
|
@subsection news_33_gamepad SDL_GameControllerDB support and gamepad input
|
|
|
|
|
|
|
|
GLFW now supports remapping of gamepads and controllers to a 360-like controller
|
2017-07-23 10:34:11 -04:00
|
|
|
layout with @ref glfwJoystickIsGamepad, @ref glfwGetJoystickGUID, @ref
|
|
|
|
glfwGetGamepadName, @ref glfwGetGamepadState and @ref glfwUpdateGamepadMappings,
|
|
|
|
and the input state struct @ref GLFWgamepadstate.
|
2017-06-18 09:13:25 -04:00
|
|
|
|
|
|
|
@sa @ref gamepad
|
|
|
|
|
|
|
|
|
2017-05-11 08:36:56 -04:00
|
|
|
@subsection news_33_attention User attention request
|
|
|
|
|
2017-06-11 12:04:17 -04:00
|
|
|
GLFW now supports requesting user attention to a specific window (on macOS to
|
|
|
|
the application as a whole) with @ref glfwRequestWindowAttention.
|
|
|
|
|
|
|
|
@see @ref window_attention
|
2017-05-11 08:36:56 -04:00
|
|
|
|
|
|
|
|
2016-06-16 07:09:28 -04:00
|
|
|
@subsection news_33_maximize Window maximization callback
|
|
|
|
|
2017-06-11 12:04:17 -04:00
|
|
|
GLFW now supports notifying the application that the window has been maximized
|
|
|
|
@ref glfwSetWindowMaximizeCallback.
|
|
|
|
|
|
|
|
@see @ref window_maximize
|
2016-06-16 07:09:28 -04:00
|
|
|
|
2016-08-18 17:42:15 -04:00
|
|
|
|
2016-09-06 09:40:31 -04:00
|
|
|
@subsection news_33_keyscancode Platform-specific key scancode query
|
2016-08-11 13:11:40 -04:00
|
|
|
|
2017-06-11 12:04:17 -04:00
|
|
|
GLFW now supports querying the platform dependent scancode of any physical key
|
|
|
|
with @ref glfwGetKeyScancode.
|
|
|
|
|
|
|
|
@see @ref input_key
|
2016-08-11 13:11:40 -04:00
|
|
|
|
|
|
|
|
2016-09-29 19:52:22 -04:00
|
|
|
@subsection news_33_setwindowattrib Support for updating window attributes
|
|
|
|
|
|
|
|
GLFW now supports changing the [GLFW_DECORATED](@ref GLFW_DECORATED_attrib),
|
|
|
|
[GLFW_RESIZABLE](@ref GLFW_RESIZABLE_attrib),
|
|
|
|
[GLFW_FLOATING](@ref GLFW_FLOATING_attrib) and
|
|
|
|
[GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_attrib) attributes for existing
|
|
|
|
windows with @ref glfwSetWindowAttrib.
|
|
|
|
|
2017-06-11 12:04:17 -04:00
|
|
|
@see @ref window_attribs
|
2017-03-01 17:27:20 -05:00
|
|
|
|
|
|
|
|
2017-02-14 09:43:31 -05:00
|
|
|
@subsection news_33_inithint Support for initialization hints
|
|
|
|
|
2017-07-24 19:55:08 -04:00
|
|
|
GLFW now supports setting library initialization hints with @ref glfwInitHint
|
|
|
|
or @ref glfwInitHintString. These must be set before initialization to take
|
|
|
|
effect.
|
2017-06-11 12:04:17 -04:00
|
|
|
|
|
|
|
@see @ref init_hints
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_33_platformhints Support for platform specific hints
|
|
|
|
|
|
|
|
GLFW now supports platform specific init and window hints to control system
|
|
|
|
features that are only available on a single platform.
|
|
|
|
|
|
|
|
@see @ref init_hints_osx
|
|
|
|
@see @ref window_hints_osx
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_33_joyhats Support for joystick hats
|
|
|
|
|
|
|
|
GLFW now supports querying the hats (or POVs or D-pads) of a joystick with @ref
|
|
|
|
glfwGetJoystickHats. Hats are by default also exposed as buttons, but this can
|
|
|
|
be disabled with the @ref GLFW_JOYSTICK_HAT_BUTTONS init hint.
|
|
|
|
|
|
|
|
@see @ref joystick_hat
|
2017-02-14 09:43:31 -05:00
|
|
|
|
|
|
|
|
2017-09-18 12:10:57 -04:00
|
|
|
@subsection news_33_transparent Support for transparent window framebuffer
|
|
|
|
|
|
|
|
GLFW now supports the creation of windows with transparent framebuffers on
|
|
|
|
systems with desktop compositing enabled with the @ref GLFW_TRANSPARENT window
|
|
|
|
hint and attribute. Any window decorations will still be opaque.
|
|
|
|
|
|
|
|
|
2017-02-06 09:03:50 -05:00
|
|
|
@subsection news_33_centercursor Cursor centering window hint
|
|
|
|
|
|
|
|
GLFW now supports controlling whether the cursor is centered over newly created
|
|
|
|
full screen windows with the [GLFW_CENTER_CURSOR](@ref GLFW_CENTER_CURSOR_hint)
|
2017-06-11 12:04:17 -04:00
|
|
|
window hint. It is enabled by default.
|
2017-02-06 09:03:50 -05:00
|
|
|
|
|
|
|
|
2017-01-10 12:16:15 -05:00
|
|
|
@subsection news_33_rawmotion Support for raw mouse motion
|
|
|
|
|
2017-06-11 12:04:17 -04:00
|
|
|
GLFW now uses raw (unscaled and unaccelerated) mouse motion in disabled cursor
|
|
|
|
mode on platforms where this is available, specifically Windows and X11.
|
2017-01-10 12:16:15 -05:00
|
|
|
|
|
|
|
|
2016-10-13 19:46:56 -04:00
|
|
|
@subsection news_33_moltenvk Support for Vulkan on macOS via MoltenVK
|
|
|
|
|
|
|
|
GLFW now supports the `VK_MVK_macos_surface` window surface creation extension
|
2016-12-05 19:14:23 -05:00
|
|
|
provided by [MoltenVK](https://moltengl.com/moltenvk/).
|
2016-10-13 19:46:56 -04:00
|
|
|
|
2017-06-11 12:04:17 -04:00
|
|
|
@see @ref vulkan_guide
|
|
|
|
|
2016-10-13 19:46:56 -04:00
|
|
|
|
2016-10-13 11:24:51 -04:00
|
|
|
@subsection news_33_osmesa OSMesa backend for headless software rendering
|
|
|
|
|
2017-02-28 13:23:25 -05:00
|
|
|
GLFW now supports creating offscreen OpenGL contexts using
|
|
|
|
[OSMesa](https://www.mesa3d.org/osmesa.html) by setting
|
|
|
|
[GLFW_CONTEXT_CREATION_API](@ref GLFW_CONTEXT_CREATION_API_hint) to
|
|
|
|
`GLFW_OSMESA_CONTEXT_API`.
|
|
|
|
|
2017-06-11 12:04:17 -04:00
|
|
|
There is also a new null backend that uses OSMesa as its native context
|
2017-02-28 13:23:25 -05:00
|
|
|
creation API, intended for automated testing. This backend does not provide
|
|
|
|
input.
|
2016-10-13 11:24:51 -04:00
|
|
|
|
|
|
|
|
2017-08-13 12:11:35 -04:00
|
|
|
@subsection news_33_primary X11 primary selection access
|
|
|
|
|
|
|
|
GLFW now supports querying and setting the X11 primary selection via the native
|
|
|
|
access functions @ref glfwGetX11SelectionString and @ref
|
|
|
|
glfwSetX11SelectionString.
|
|
|
|
|
|
|
|
|
2017-06-11 12:04:17 -04:00
|
|
|
@section news_32 Release notes for 3.2
|
2015-06-01 16:55:06 -04:00
|
|
|
|
2015-08-10 06:46:14 -04:00
|
|
|
|
2015-08-10 14:19:04 -04:00
|
|
|
@subsection news_32_vulkan Support for Vulkan
|
|
|
|
|
|
|
|
GLFW now supports basic integration with Vulkan with @ref glfwVulkanSupported,
|
|
|
|
@ref glfwGetRequiredInstanceExtensions, @ref glfwGetInstanceProcAddress, @ref
|
|
|
|
glfwGetPhysicalDevicePresentationSupport and @ref glfwCreateWindowSurface.
|
|
|
|
Vulkan header inclusion can be selected with
|
2016-12-05 19:14:23 -05:00
|
|
|
@ref GLFW_INCLUDE_VULKAN.
|
2015-08-10 14:19:04 -04:00
|
|
|
|
|
|
|
|
2016-02-23 06:26:42 -05:00
|
|
|
@subsection news_32_setwindowmonitor Window mode switching
|
|
|
|
|
|
|
|
GLFW now supports switching between windowed and full screen modes and updating
|
|
|
|
the monitor and desired resolution and refresh rate of full screen windows with
|
|
|
|
@ref glfwSetWindowMonitor.
|
|
|
|
|
|
|
|
|
2016-03-06 05:49:40 -05:00
|
|
|
@subsection news_32_maximize Window maxmimization support
|
2015-10-13 06:50:59 -04:00
|
|
|
|
|
|
|
GLFW now supports window maximization with @ref glfwMaximizeWindow and the
|
2016-12-05 19:14:23 -05:00
|
|
|
@ref GLFW_MAXIMIZED window hint and attribute.
|
2015-10-13 06:50:59 -04:00
|
|
|
|
|
|
|
|
2016-05-29 11:37:32 -04:00
|
|
|
@subsection news_32_focus Window input focus control
|
2016-03-07 08:55:30 -05:00
|
|
|
|
2016-05-29 11:37:32 -04:00
|
|
|
GLFW now supports giving windows input focus with @ref glfwFocusWindow.
|
2016-03-07 08:55:30 -05:00
|
|
|
|
|
|
|
|
2016-05-29 11:37:32 -04:00
|
|
|
@subsection news_32_sizelimits Window size limit support
|
2016-02-21 09:42:49 -05:00
|
|
|
|
2016-05-29 11:37:32 -04:00
|
|
|
GLFW now supports setting both absolute and relative window size limits with
|
|
|
|
@ref glfwSetWindowSizeLimits and @ref glfwSetWindowAspectRatio.
|
2016-02-21 09:42:49 -05:00
|
|
|
|
|
|
|
|
2016-05-29 11:37:32 -04:00
|
|
|
@subsection news_32_keyname Localized key names
|
2016-03-06 05:38:55 -05:00
|
|
|
|
2016-05-29 11:37:32 -04:00
|
|
|
GLFW now supports querying the localized name of printable keys with @ref
|
|
|
|
glfwGetKeyName, either by key token or by scancode.
|
2016-03-06 05:38:55 -05:00
|
|
|
|
|
|
|
|
2016-02-02 15:11:16 -05:00
|
|
|
@subsection news_32_waittimeout Wait for events with timeout
|
|
|
|
|
|
|
|
GLFW now supports waiting for events for a set amount of time with @ref
|
|
|
|
glfwWaitEventsTimeout.
|
|
|
|
|
|
|
|
|
2016-05-29 11:37:32 -04:00
|
|
|
@subsection news_32_icon Window icon support
|
|
|
|
|
|
|
|
GLFW now supports setting the icon of windows with @ref glfwSetWindowIcon.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_32_timer Raw timer access
|
|
|
|
|
|
|
|
GLFW now supports raw timer values with @ref glfwGetTimerValue and @ref
|
|
|
|
glfwGetTimerFrequency.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_32_joystick Joystick connection callback
|
|
|
|
|
|
|
|
GLFW now supports notifying when a joystick has been connected or disconnected
|
|
|
|
with @ref glfwSetJoystickCallback.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_32_noapi Context-less windows
|
|
|
|
|
2016-12-05 19:14:23 -05:00
|
|
|
GLFW now supports creating windows without a OpenGL or OpenGL ES context by
|
|
|
|
setting the [GLFW_CLIENT_API](@ref GLFW_CLIENT_API_hint) hint to `GLFW_NO_API`.
|
2016-05-29 11:37:32 -04:00
|
|
|
|
|
|
|
|
2016-03-28 07:19:31 -04:00
|
|
|
@subsection news_32_contextapi Run-time context creation API selection
|
|
|
|
|
2016-12-05 19:14:23 -05:00
|
|
|
GLFW now supports selecting and querying the context creation API at run-time
|
|
|
|
with the @ref GLFW_CONTEXT_CREATION_API hint and attribute.
|
2016-05-29 11:37:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
@subsection news_32_noerror Error-free context creation
|
|
|
|
|
2016-12-05 19:14:23 -05:00
|
|
|
GLFW now supports creating and querying OpenGL and OpenGL ES contexts that do
|
|
|
|
not emit errors with the @ref GLFW_CONTEXT_NO_ERROR hint, provided the machine
|
|
|
|
supports the `GL_KHR_no_error` extension.
|
2016-05-29 11:37:32 -04:00
|
|
|
|
|
|
|
|
|
|
|
@subsection news_32_cmake CMake config-file package support
|
|
|
|
|
|
|
|
GLFW now supports being used as a
|
|
|
|
[config-file package](@ref build_link_cmake_package) from other projects for
|
|
|
|
easy linking with the library and its dependencies.
|
2016-03-28 07:19:31 -04:00
|
|
|
|
|
|
|
|
2017-06-11 12:04:17 -04:00
|
|
|
@section news_31 Release notes for 3.1
|
2014-01-21 16:40:19 -05:00
|
|
|
|
2015-01-17 17:12:49 -05:00
|
|
|
These are the release highlights. For a full list of changes see the
|
|
|
|
[version history](http://www.glfw.org/changelog.html).
|
|
|
|
|
|
|
|
|
2015-01-01 12:41:22 -05:00
|
|
|
@subsection news_31_cursor Custom mouse cursor images
|
2014-03-21 10:58:01 -04:00
|
|
|
|
2015-01-17 19:55:25 -05:00
|
|
|
GLFW now supports creating and setting both custom cursor images and standard
|
|
|
|
cursor shapes. They are created with @ref glfwCreateCursor or @ref
|
|
|
|
glfwCreateStandardCursor, set with @ref glfwSetCursor and destroyed with @ref
|
|
|
|
glfwDestroyCursor.
|
2014-03-21 10:58:01 -04:00
|
|
|
|
2015-01-17 19:55:25 -05:00
|
|
|
@see @ref cursor_object
|
2014-03-21 10:58:01 -04:00
|
|
|
|
2014-01-21 16:40:19 -05:00
|
|
|
|
2015-01-17 19:55:25 -05:00
|
|
|
@subsection news_31_drop Path drop event
|
|
|
|
|
|
|
|
GLFW now provides a callback for receiving the paths of files and directories
|
|
|
|
dropped onto GLFW windows. The callback is set with @ref glfwSetDropCallback.
|
|
|
|
|
|
|
|
@see @ref path_drop
|
2014-01-21 16:40:19 -05:00
|
|
|
|
|
|
|
|
2015-01-01 12:41:22 -05:00
|
|
|
@subsection news_31_emptyevent Main thread wake-up
|
2014-02-10 12:16:58 -05:00
|
|
|
|
|
|
|
GLFW now provides the @ref glfwPostEmptyEvent function for posting an empty
|
2014-04-23 07:30:11 -04:00
|
|
|
event from another thread to the main thread event queue, causing @ref
|
2014-02-10 12:16:58 -05:00
|
|
|
glfwWaitEvents to return.
|
|
|
|
|
2015-01-17 19:55:25 -05:00
|
|
|
@see @ref events
|
|
|
|
|
2014-02-10 12:16:58 -05:00
|
|
|
|
2014-03-25 16:30:13 -04:00
|
|
|
@subsection news_31_framesize Window frame size query
|
|
|
|
|
|
|
|
GLFW now supports querying the size, on each side, of the frame around the
|
|
|
|
client area of a window, with @ref glfwGetWindowFrameSize.
|
|
|
|
|
2015-01-17 19:55:25 -05:00
|
|
|
@see [Window size](@ref window_size)
|
|
|
|
|
2014-03-25 16:30:13 -04:00
|
|
|
|
2015-01-01 12:41:22 -05:00
|
|
|
@subsection news_31_autoiconify Simultaneous multi-monitor rendering
|
2014-04-08 09:32:34 -04:00
|
|
|
|
|
|
|
GLFW now supports disabling auto-iconification of full screen windows with
|
2016-12-05 19:14:23 -05:00
|
|
|
the [GLFW_AUTO_ICONIFY](@ref GLFW_AUTO_ICONIFY_hint) window hint. This is
|
|
|
|
intended for people building multi-monitor installations, where you need windows
|
|
|
|
to stay in full screen despite losing input focus.
|
2014-04-08 09:32:34 -04:00
|
|
|
|
|
|
|
|
2014-05-23 08:01:02 -04:00
|
|
|
@subsection news_31_floating Floating windows
|
|
|
|
|
2014-07-03 01:56:49 -04:00
|
|
|
GLFW now supports floating windows, also called topmost or always on top, for
|
2016-12-05 19:14:23 -05:00
|
|
|
easier debugging with the @ref GLFW_FLOATING window hint and attribute.
|
2014-05-23 08:01:02 -04:00
|
|
|
|
|
|
|
|
2014-06-20 07:39:06 -04:00
|
|
|
@subsection news_31_focused Initially unfocused windows
|
|
|
|
|
|
|
|
GLFW now supports preventing a windowed mode window from gaining input focus on
|
2016-12-05 19:14:23 -05:00
|
|
|
creation, with the [GLFW_FOCUSED](@ref GLFW_FOCUSED_hint) window hint.
|
2014-06-20 07:39:06 -04:00
|
|
|
|
|
|
|
|
2015-01-01 12:41:22 -05:00
|
|
|
@subsection news_31_direct Direct access for window attributes and cursor position
|
|
|
|
|
2015-01-17 19:55:25 -05:00
|
|
|
GLFW now queries the window input focus, visibility and iconification attributes
|
|
|
|
and the cursor position directly instead of returning cached data.
|
2015-01-01 12:41:22 -05:00
|
|
|
|
|
|
|
|
2014-06-12 17:04:20 -04:00
|
|
|
@subsection news_31_charmods Character with modifiers callback
|
|
|
|
|
2014-09-18 09:03:29 -04:00
|
|
|
GLFW now provides a callback for character events with modifier key bits. The
|
|
|
|
callback is set with @ref glfwSetCharModsCallback. Unlike the regular character
|
|
|
|
callback, this will report character events that will not result in a character
|
|
|
|
being input, for example if the Control key is held down.
|
|
|
|
|
2015-01-17 19:55:25 -05:00
|
|
|
@see @ref input_char
|
|
|
|
|
2014-09-18 09:03:29 -04:00
|
|
|
|
2015-01-01 12:41:22 -05:00
|
|
|
@subsection news_31_single Single buffered framebuffers
|
2014-09-18 09:03:29 -04:00
|
|
|
|
2016-12-05 19:14:23 -05:00
|
|
|
GLFW now supports the creation of single buffered windows, with the @ref
|
|
|
|
GLFW_DOUBLEBUFFER hint.
|
2014-06-12 17:04:20 -04:00
|
|
|
|
|
|
|
|
2015-01-01 12:41:22 -05:00
|
|
|
@subsection news_31_glext Macro for including extension header
|
2014-02-11 12:24:01 -05:00
|
|
|
|
2015-01-01 12:41:22 -05:00
|
|
|
GLFW now includes the extension header appropriate for the chosen OpenGL or
|
2016-12-05 19:14:23 -05:00
|
|
|
OpenGL ES header when @ref GLFW_INCLUDE_GLEXT is defined. GLFW does not provide
|
|
|
|
these headers. They must be provided by your development environment or your
|
|
|
|
OpenGL or OpenGL ES SDK.
|
2014-02-11 12:24:01 -05:00
|
|
|
|
|
|
|
|
2015-01-17 17:10:54 -05:00
|
|
|
@subsection news_31_release Context release behaviors
|
|
|
|
|
2016-12-05 19:14:23 -05:00
|
|
|
GLFW now supports controlling and querying whether the pipeline is flushed when
|
|
|
|
a context is made non-current, with the @ref GLFW_CONTEXT_RELEASE_BEHAVIOR hint
|
|
|
|
and attribute, provided the machine supports the `GL_KHR_context_flush_control`
|
|
|
|
extension.
|
2015-01-17 17:10:54 -05:00
|
|
|
|
|
|
|
|
2015-01-17 17:12:49 -05:00
|
|
|
@subsection news_31_wayland (Experimental) Wayland support
|
|
|
|
|
|
|
|
GLFW now has an _experimental_ Wayland display protocol backend that can be
|
|
|
|
selected on Linux with a CMake option.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_31_mir (Experimental) Mir support
|
|
|
|
|
|
|
|
GLFW now has an _experimental_ Mir display server backend that can be selected
|
|
|
|
on Linux with a CMake option.
|
|
|
|
|
|
|
|
|
2017-06-11 12:04:17 -04:00
|
|
|
@section news_30 Release notes for 3.0
|
2013-06-13 06:24:07 -04:00
|
|
|
|
2015-01-17 17:12:49 -05:00
|
|
|
These are the release highlights. For a full list of changes see the
|
|
|
|
[version history](http://www.glfw.org/changelog.html).
|
|
|
|
|
2015-01-17 17:10:54 -05:00
|
|
|
|
2013-06-13 06:24:07 -04:00
|
|
|
@subsection news_30_cmake CMake build system
|
|
|
|
|
|
|
|
GLFW now uses the CMake build system instead of the various makefiles and
|
|
|
|
project files used by earlier versions. CMake is available for all platforms
|
|
|
|
supported by GLFW, is present in most package systems and can generate
|
|
|
|
makefiles and/or project files for most popular development environments.
|
|
|
|
|
|
|
|
For more information on how to use CMake, see the
|
|
|
|
[CMake manual](http://cmake.org/cmake/help/documentation.html).
|
|
|
|
|
|
|
|
|
2013-11-20 09:37:08 -05:00
|
|
|
@subsection news_30_multiwnd Multi-window support
|
2013-06-13 06:24:07 -04:00
|
|
|
|
|
|
|
GLFW now supports the creation of multiple windows, each with their own OpenGL
|
|
|
|
or OpenGL ES context, and all window functions now take a window handle. Event
|
|
|
|
callbacks are now per-window and are provided with the handle of the window that
|
|
|
|
received the event. The @ref glfwMakeContextCurrent function has been added to
|
|
|
|
select which context is current on a given thread.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_multimon Multi-monitor support
|
|
|
|
|
|
|
|
GLFW now explicitly supports multiple monitors. They can be enumerated with
|
|
|
|
@ref glfwGetMonitors, queried with @ref glfwGetVideoModes, @ref
|
|
|
|
glfwGetMonitorPos, @ref glfwGetMonitorName and @ref glfwGetMonitorPhysicalSize,
|
|
|
|
and specified at window creation to make the newly created window full screen on
|
|
|
|
that specific monitor.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_unicode Unicode support
|
|
|
|
|
|
|
|
All string arguments to GLFW functions and all strings returned by GLFW now use
|
|
|
|
the UTF-8 encoding. This includes the window title, error string, clipboard
|
|
|
|
text, monitor and joystick names as well as the extension function arguments (as
|
|
|
|
ASCII is a subset of UTF-8).
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_clipboard Clipboard text I/O
|
|
|
|
|
|
|
|
GLFW now supports reading and writing plain text to and from the system
|
|
|
|
clipboard, with the @ref glfwGetClipboardString and @ref glfwSetClipboardString
|
|
|
|
functions.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_gamma Gamma ramp support
|
|
|
|
|
|
|
|
GLFW now supports setting and reading back the gamma ramp of monitors, with the
|
|
|
|
@ref glfwGetGammaRamp and @ref glfwSetGammaRamp functions. There is also @ref
|
|
|
|
glfwSetGamma, which generates a ramp from a gamma value and then sets it.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_gles OpenGL ES support
|
|
|
|
|
|
|
|
GLFW now supports the creation of OpenGL ES contexts, by setting the
|
2016-12-05 19:14:23 -05:00
|
|
|
[GLFW_CLIENT_API](@ref GLFW_CLIENT_API_hint) hint to `GLFW_OPENGL_ES_API`, where
|
|
|
|
creation of such contexts are supported. Note that GLFW _does not implement_
|
|
|
|
OpenGL ES, so your driver must provide support in a way usable by GLFW. Modern
|
|
|
|
Nvidia and Intel drivers support creation of OpenGL ES context using the GLX and
|
|
|
|
WGL APIs, while AMD provides an EGL implementation instead.
|
2013-06-13 06:24:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_egl (Experimental) EGL support
|
|
|
|
|
|
|
|
GLFW now has an experimental EGL context creation back end that can be selected
|
|
|
|
through CMake options.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_hidpi High-DPI support
|
|
|
|
|
2016-10-19 18:50:54 -04:00
|
|
|
GLFW now supports high-DPI monitors on both Windows and macOS, giving windows
|
|
|
|
full resolution framebuffers where other UI elements are scaled up. To achieve
|
|
|
|
this, @ref glfwGetFramebufferSize and @ref glfwSetFramebufferSizeCallback have
|
|
|
|
been added. These work with pixels, while the rest of the GLFW API works with
|
|
|
|
screen coordinates. This is important as OpenGL uses pixels, not screen
|
|
|
|
coordinates.
|
2013-06-13 06:24:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_error Error callback
|
|
|
|
|
|
|
|
GLFW now has an error callback, which can provide your application with much
|
|
|
|
more detailed diagnostics than was previously possible. The callback is passed
|
|
|
|
an error code and a description string.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_wndptr Per-window user pointer
|
|
|
|
|
|
|
|
Each window now has a user-defined pointer, retrieved with @ref
|
|
|
|
glfwGetWindowUserPointer and set with @ref glfwSetWindowUserPointer, to make it
|
|
|
|
easier to integrate GLFW into C++ code.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_iconifyfun Window iconification callback
|
|
|
|
|
|
|
|
Each window now has a callback for iconification and restoration events,
|
|
|
|
which is set with @ref glfwSetWindowIconifyCallback.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_wndposfun Window position callback
|
|
|
|
|
|
|
|
Each window now has a callback for position events, which is set with @ref
|
|
|
|
glfwSetWindowPosCallback.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_wndpos Window position query
|
|
|
|
|
|
|
|
The position of a window can now be retrieved using @ref glfwGetWindowPos.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_focusfun Window focus callback
|
|
|
|
|
|
|
|
Each windows now has a callback for focus events, which is set with @ref
|
|
|
|
glfwSetWindowFocusCallback.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_enterleave Cursor enter/leave callback
|
|
|
|
|
|
|
|
Each window now has a callback for when the mouse cursor enters or leaves its
|
|
|
|
client area, which is set with @ref glfwSetCursorEnterCallback.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_wndtitle Initial window title
|
|
|
|
|
|
|
|
The title of a window is now specified at creation time, as one of the arguments
|
|
|
|
to @ref glfwCreateWindow.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_hidden Hidden windows
|
|
|
|
|
|
|
|
Windows can now be hidden with @ref glfwHideWindow, shown using @ref
|
2016-12-05 19:14:23 -05:00
|
|
|
glfwShowWindow and created initially hidden with the @ref GLFW_VISIBLE window
|
|
|
|
hint and attribute. This allows for off-screen rendering in a way compatible
|
|
|
|
with most drivers, as well as moving a window to a specific position before
|
|
|
|
showing it.
|
2013-06-13 06:24:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_undecorated Undecorated windows
|
|
|
|
|
2016-07-17 09:38:40 -04:00
|
|
|
Windowed mode windows can now be created without decorations, e.g. things like
|
2016-12-05 19:14:23 -05:00
|
|
|
a frame, a title bar, with the @ref GLFW_DECORATED window hint and attribute.
|
|
|
|
This allows for the creation of things like splash screens.
|
2013-06-13 06:24:07 -04:00
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_keymods Modifier key bit masks
|
|
|
|
|
|
|
|
[Modifier key bit mask](@ref mods) parameters have been added to the
|
|
|
|
[mouse button](@ref GLFWmousebuttonfun) and [key](@ref GLFWkeyfun) callbacks.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_scancode Platform-specific scancodes
|
|
|
|
|
|
|
|
A scancode parameter has been added to the [key callback](@ref GLFWkeyfun). Keys
|
|
|
|
that don't have a [key token](@ref keys) still get passed on with the key
|
|
|
|
parameter set to `GLFW_KEY_UNKNOWN`. These scancodes will vary between machines
|
|
|
|
and are intended to be used for key bindings.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_jsname Joystick names
|
|
|
|
|
|
|
|
The name of a joystick can now be retrieved using @ref glfwGetJoystickName.
|
|
|
|
|
|
|
|
|
|
|
|
@subsection news_30_doxygen Doxygen documentation
|
|
|
|
|
|
|
|
You are reading it.
|
|
|
|
|
|
|
|
*/
|