Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[contrib.glfw3] new version 3.4.0.20240727 #22288

Closed

Conversation

ypujante
Copy link
Contributor

Release notes for the changes

  • 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

@ypujante
Copy link
Contributor Author

There is a lot of failures that seems to be due to file sizes ex:test_minimal_runtime_code_size_random_printf_wasm2js).

My changes did not cause this:

  test_contrib_ports (test_other.other) ... ok (0.000s)

@ypujante
Copy link
Contributor Author

There is one more change I want to get in so I will close this pr and just submit another one later

@ypujante ypujante closed this Jul 30, 2024
@ypujante ypujante deleted the emscripten-glfw-3.4.0.20240727 branch August 25, 2024 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

emscripten_glfw_make_canvas_resizable does not cleanup properly
1 participant