Skip to content

Version 3.4.0.20240727

Compare
Choose a tag to compare
@ypujante ypujante released this 27 Jul 18:42
· 49 commits to master since this release
  • Introduced C++ API (namespace emscripten::glfw3) included with GLFW3/emscripten_glfw3.h:
    • provides a more correct API with sensible defaults (ex: std::string_view / std::optional<std::string_view>
      vs char const * which may or may not be nullptr)
    • allow for C++ only API (ex: std::future)
    • the C API is still available if you would rather stick to it
  • Implemented emscripten::glfw3::GetClipboardString (C++ only) which provides a way of fetching the global
    clipboard in a browser environment (glfwGetClipboardString is not the right API due to the asynchronous nature
    of the underlying platform API).
  • The cursor position is no longer clamped to the window size, and as a result, can have negative values or values
    greater than the window size.
    Note that GLFW implements a similar behavior on the macOS desktop platform.
  • Implemented glfwSetWindowPosCallback
  • Added support for GLFW Window Attribute GLFW_HOVERED
  • Fixed #6: emscripten_glfw_make_canvas_resizable does not clean up properly.
  • Fixed an issue with opacity: when using opacity, the handle is not working unless its z-index is higher than the
    canvas z-index