Open bananu7 opened 10 years ago
The Canvas stuff is actually written by hand. It'd be nice to have a WebGL implementation, but I don't currently have the time to work on it. I'd gladly merge any such implementation, if someone else were to create it.
There is some work in this direction, and running code as well: https://groups.google.com/forum/#!topic/haste-compiler/zfNLJqsJKgE
Looks promising!
I'd be glad to submit that along with a PR, but since I don't have much time for that as of now, I figured someone might be able to do it.
I think that a lot might be done similar to how GLRaw does things; there are numerous WebGL specs in parsable format; I personally think it would be acceptable, at least for now, to generate and commit an API from such a document (at least, Canvas API seems to have been generated either that way or simply hardcoded by hand).