GL library for web and native.
If you'd like a higher level API than GL, check out Reprocessing.
This library is designed to be used with bsb-native.
Install it using:
npm install bsansouci/reasongl
All of the method names are taken directly from opengl, and their docs should apply.
If you want to get started quickly, check out this simple branch of ReasonglExampleProject. It's a great starting point to any project using ReasonGL
directly. The master branch is a much bigger and complete example.
ReWitness is another big example project using those bindings.
ReasonGL works by exposing a common interface between WebGL and OpenGL and then choosing a backend to use as the implementation of the interface at compile time.
If you want super thin direct bindings to OpenGL use tgls.
If you want direct bindings to SDL use tsdl.