1.0.3-touch5 • Published 6 years ago

@jaredly/reasongl-native v1.0.3-touch5

Weekly downloads
-
License
-
Repository
github
Last release
6 years ago

ReasonglNative

Slightly high level OCaml/Reason bindings to OpenGL.

This repository follows the interface described in ReasonglInterface which is an abstraction designed on top of OpenGL 2.1 and WebGL. This package also depends on SDL to create a window and handle events.

The best way to use this is to use bsb-native, add this package to your bs-dependencies along with ReasonglInterface and then simply refer to the module Reasongl.

If you're not using bsb-native you can simply wrap your code in a functor that takes Gl : ReasonglInterface.Gl.t and have, for example, a native entry point file containing module NativeMain = Main (ReasonglNative); which just passes the right implementation manually.

If you want super thin direct bindings to OpenGL use tgls.

If you want direct bindings to SDL use tsdl.