Releases: pongasoft/emscripten-glfw
Releases · pongasoft/emscripten-glfw
Version 3.4.0.20250209
Version 3.4.0.20250117
- Added port option
disableWebGL2
to disable support for WebGL2 when not needed (reduces JavaScript code size)
Version 3.4.0.20250112
- Added support for
GLFW_CONTEXT_VERSION_MAJOR
andGLFW_CONTEXT_VERSION_MINOR
- Re-enable GL extensions by default (regression introduced in 3.4.0.20241230). Fixes #13
Version 3.4.0.20241230
- Added support for offscreen canvas (check example_offscreen_canvas for a comprehensive example)
Version 2024.12.21
- Added support for pthread (check example_pthread for a comprehensive example)
Version 3.4.0.20241004
- Implemented custom cursors (
glfwCreateCursor
)- uses a canvas to draw the cursor image into it and convert it into a URL (
canvas.toDataURL()
) - uses the CSS property syntax:
cursor: url(xxx) xhot yhot, auto
when callingglfwSetCursor
with a custom cursor
- uses a canvas to draw the cursor image into it and convert it into a URL (
Version 3.4.0.20240907
- Fixed Meta/Super key workaround to also handle the rare (but possible) use-case of having other keys down before
pressing the Meta/Super key
Version 3.4.0.20240817
- Major clipboard changes: the clipboard now uses the browser events to handle cut, copy and paste
- Added a way to tweak the timeouts for the Super + Key workaround (Super is also known as Meta or Cmd)
- Added a way to set which keys are allowed to be handled by the browser
- Added a convenient API to open a URL (
emscripten::glfw3::OpenURL
) - Added a convenient API to detect if the runtime platform is Apple (
emscripten::glfw3::IsRuntimePlatformApple
),
mostly used for keyboard shortcuts (Ctrl vs. Cmd). - Added
GLFW/emscripten_glfw3_version.h
withEMSCRIPTEN_GLFW_VERSION
define for compilation time version detection EMSCRIPTEN_USE_PORT_CONTRIB_GLFW3
port define now also contains the version
Warning
Breaking changes!
The clipboard async API has been removed. Check the Clipboard support section for details on how to deal with the clipboard in your application.
Version 3.4.0.20240804
- Fixed
nullptr
issue when clipboard is emtpy - Fixed the internal clipboard being wiped on asynchronous callback error
Version 3.4.0.20240731
- Added
emscripten_glfw_get_clipboard_string
the C version ofemscripten::glfw3::GetClipboardString
to
retrieve the clipboard asynchronously - Added a helper class
emscripten::glfw3::FutureClipboardString
to greatly simplify the more frequent use-cases GetClipboardString::value()
now returns the internal clipboard in case of error, instead of throwing exception- Added
optimizationLevel
option to the emscripten port