Skip to content

foreignsasquatch/raylib-hx

Repository files navigation

raylib-hx Logo

raylib-hx

Haxe/hxcpp @:native bindings for raylib.

Supported Platforms

  • Windows
  • macOS
  • Linux
  • Emscripten
  • Android

Hashlink or Neko are not supported

Installation

You can install it through Haxelib

haxelib install raylib-hx

Or through Git, if you want the latest updates

haxelib git raylib-hx https://github.com/foreignsasquatch/raylib-hx.git

Dependencies

On Linux, you need to install the required libraries for your distribution.

For detailed instructions, refer to the raylib wiki: Working on GNU Linux - Install Required Libraries.

Usage

Check out the Examples Folder for some examples on how to use this library.

Tip

If you wish to use Wayland for windowing instead of X11 on Linux, make sure to define RAYLIB_WAYLAND_DISPLAY and execute the following command in the project/scripts directory:

chmod +x glfw-generate-wayland.sh && ./glfw-generate-wayland.sh

Tip

To hide the console window on desktop, add the no_console compiler flag.

Licensing

raylib-hx and raylib are made available under the Zlib License.

Consider supporting

ko-fi