Skip to content

Better Emscripten integration#10

Merged
mrizaln merged 10 commits intomainfrom
emscripten-integration
Dec 25, 2025
Merged

Better Emscripten integration#10
mrizaln merged 10 commits intomainfrom
emscripten-integration

Conversation

@mrizaln
Copy link
Copy Markdown
Owner

@mrizaln mrizaln commented Dec 25, 2025

As my goal for creating this library is to eliminate pollution to the global namespace by not requiring including the <GLFW/glfw3.h> header directly (or indirectly), I attempt to wrap emscripten-glfw extension functions. While at it I also attempt to integrate emscripten support by moving window-related extension functions into hints.

  • Add emscripten-glfw extension functions into new header: "glfw_cpp/emscripten.hpp".
  • Add platform hint and window hints for Emscripten.
  • Add WebGL hint to better mirror the graphics backend used in Emscripten.
  • Fix client API attribute acquisition on Emscripten.

@mrizaln mrizaln merged commit 4fa6f23 into main Dec 25, 2025
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.

1 participant