lpalmes / reason-glfw

Cross-platform GLFW / OpenGL ES / WebGL bindings for Reason

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status Build Status npm version

reason-glfw

Cross-platform Reason / OCaml bindings for GLFW - supports Native (OpenGL) and Javascript (WebGL))

Building

esy is used for building, so if you don't have esy, install it:

npm install -g esy@0.2.11
  • esy install
  • esy build

NOTE: If you've never built with esy before, the first compile could take some time - it builds the ocaml compiler as well as cmake. Incremental builds, though, are extremely fast!

Running

A very simple example project is provided - you can test it out here:

NATIVE:

  • cd _build/install/default/bin
  • ./test_glfw (./test_glfw.exe on Windows)

WEB:

  • Start an http-server at _build/install/default/bin. (I use npm install -g http-server).
  • Navigate to index.html

License

This project is licensed under the MIT License - see LICENSE for more details.

Acknowledgements

  • The test texture is provided by LearnOpenGL - an excellent resource for OpenGL!
  • This is built on several great libraries, like GLFW, glad, stb_image
  • The test image is from @Arahnoid's UVChecker-map repo.

About

Cross-platform GLFW / OpenGL ES / WebGL bindings for Reason

License:MIT License


Languages

Language:C 75.4%Language:C++ 9.9%Language:OCaml 8.0%Language:JavaScript 6.5%Language:Shell 0.2%Language:HTML 0.1%