esy is used for building, so if you don't have
esy, install it:
npm install -g email@example.com
NOTE: If you've never built with
esybefore, the first compile could take some time - it builds the
ocamlcompiler as well as
cmake. Incremental builds, though, are extremely fast!
A very simple example project is provided - you can test it out here:
- Start an http-server at
_build/install/default/bin. (I use
npm install -g http-server).
- Navigate to
This project is licensed under the MIT License - see LICENSE for more details.
For the most part, we strive to have API compatibility for GLFW and OpenGL. This library supports compilation to both native and JSOO targets. In the JSOO case, we emulate the GLFW APIs.
We do have some exceptions:
We wrap the native window access functions in a function
glfwGetNativeWindow. This returns a
NativeWindow.t, where the underlying value is platform specific:
- Windows -
HWNDfor the current window.
- OSX -
void *pointer to the
- Linux -
void *pointer to the X11 Window.
- JS -
HTMLCanvasElementrepresenting the window.