elm-community / elm-webgl

Moved to elm-explorations/webgl
http://package.elm-lang.org/packages/elm-explorations/webgl/latest
BSD 3-Clause "New" or "Revised" License
95 stars 22 forks source link

Added ability to specify options for the WebGL context #38

Closed Zinggi closed 7 years ago

Zinggi commented 8 years ago

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.

emptyflash commented 7 years ago

This looks pretty good to me, will change #32 once merged. 👍

w0rm commented 7 years ago

@Zinggi I've reopened your pull request here https://github.com/elm-community/webgl/pull/4