Skip to content

ryanartecona/reasongl-native

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Native OpenGL backend for ReasonGL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 88.5%
  • Rust 6.0%
  • Objective-C 2.8%
  • C++ 2.0%
  • Other 0.7%