elm-explorations / webgl

Functional rendering with WebGL in Elm
https://package.elm-lang.org/packages/elm-explorations/webgl/latest/
BSD 3-Clause "New" or "Revised" License
116 stars 17 forks source link

Allow creation of Textures from existing image data #19

Open davesmith00000 opened 5 years ago

davesmith00000 commented 5 years ago

Apologies if this is already supported or due to be released, I couldn't find any references, but I think it's sort of related to the open PR about creating textures from bytes.

Textures can be loaded from a url, but I'd like to be able to read image data directly from an image I've already loaded, or a 2D canvas that is already on the page.

shamansir commented 4 years ago

Could be the brother issue of this one: https://github.com/elm-explorations/webgl/issues/6. Should not the name confuse you, since the Pull Request it was created from, supported exactly what you describe: https://github.com/elm-community/webgl/pull/45.