valderman / haste-compiler

A GHC-based Haskell to JavaScript compiler
http://haste-lang.org
BSD 3-Clause "New" or "Revised" License
1.45k stars 109 forks source link

Feature Request: WebGL #186

Open bananu7 opened 10 years ago

bananu7 commented 10 years ago

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).

valderman commented 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.

valderman commented 9 years ago

There is some work in this direction, and running code as well: https://groups.google.com/forum/#!topic/haste-compiler/zfNLJqsJKgE

Looks promising!