I didn't allow all attributes because I don't know whether they would even be useful from elm.
If you have a better name than toHtmlWithEvenMore than I can change it if needed.
I also took the liberty to modify the fps example, because it seems like a good candidate for showing off the new available settings. E.g. for an fps I think it makes sense to disable alpha.
As discussed in https://github.com/elm-community/elm-webgl/issues/19, I added a function
toHtmlWithEvenMore
that makes it possible to set some of the attributes outlined here and section 5.2 of the specs.I didn't allow all attributes because I don't know whether they would even be useful from elm.
If you have a better name than
toHtmlWithEvenMore
than I can change it if needed.I also took the liberty to modify the fps example, because it seems like a good candidate for showing off the new available settings. E.g. for an fps I think it makes sense to disable alpha.