Glfw + npapi

h1llf0lk wrote on Friday, July 24, 2015:

I have an application that I use GLFW for (thanks BTW, really like the library). I have clients that require the application to be embedded in a browser, which I have successfully achieved in Windows/Firefox using NPAPI + a slightly modified GLFW library. I was wondering, is there any chance that we might see this support included in the library, and, in particular, for other OS’s.

I’m happy to provide my changes to the library if they’re useful. Essentially, NPAPI gives you (in Windows) a handle the the window (HWND), so you just need to avoid the creation of the window and otherwise normally perform all the window initialization steps. I made a new method glfwInitializeWindow that just additionally takes a void*. Thanks.

elmindreda wrote on Sunday, July 26, 2015:

h1llf0lk wrote on Tuesday, July 28, 2015:

ok, great … it seems others could also make good use of this. hope to see it in the future!