webgl.nim
Experimental wrapper to webgl for Nim (JS backend).
Mostly taken from mozilla webgl api
NOTE: it is still incomplete and there are probably bugs
A couple of examples are provided in /examples
( they are direct translation of js code taken from mozilla tutorials and webgl-lessons, so
don't expect idiomatic nim code. I'll work on improving them )
Using this wrapper
While this wrapper is not currently in nimble, you can still use it by
cloning it into your project folder and then using import <webgl>/webgl
, where
<webgl>
is the path to the folder containing the file webgl.nim
Compiling to JS
nim js <filename>
You can find your compiled file inside nimcache