- Notifications
You must be signed in to change notification settings - Fork0
hxglfw is a haxe/hxcpp wrapper around GLFW
License
ibilon/hxglfw
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
API Documentation:https://ibilon.github.io/hxglfw/
hxglfw is a haxe/hxcpp wrapper around GLFW. This is not the C api.
The library isnull safe and compatiblecppia, seecppia_host.hxml
andsample.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 doesnot cover OpenGL context creation/manipulation.
If a feature from GLFW you need is missing please open anissue.
hxglfw requires building GLFW, seehttps://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 withgit submodule update --init
.
A small example is available insample/
:
- 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 iszlib licensed, the statically linked GLFW iszlib licensed including its documentation which is reused for this library.
About
hxglfw is a haxe/hxcpp wrapper around GLFW