API Documentation: https://ibilon.github.io/hxglfw/
hxglfw is a haxe/hxcpp wrapper around GLFW. This is not the C api.
The library is null safe and compatible cppia, see cppia_host.hxml
and sample.hxml
on how to use cppia.
This cover:
- Monitor querying
- Window creation
- Keyboard, Mouse and Gamepad input
- Support for Linux X11
- [Planned] Windows/MacOS/Linux wayland support
This does not cover OpenGL context creation/manipulation.
If a feature from GLFW you need is missing please open an issue.
hxglfw requires building GLFW, see https://www.glfw.org/docs/latest/compile.html#compile_deps for the required dependencies.
Make sure to clone this repository with --recursive
, or download the submodule with git submodule update --init
.
A small example is available in sample/
:
- Compile the cppia host with
haxe cppia_host.hxml
, this only to be rebuilt if you change/update the hxglfw library - Compile the sample with
haxe sample.hxml
- Run it with
./build/cppia_host/CppiaHost-debug build/sample.cppia
.
This library is zlib licensed, the statically linked GLFW is zlib licensed including its documentation which is reused for this library.