golem icon indicating copy to clipboard operation
golem copied to clipboard

Update glow and remove it from the public API

Open ryanisaacg opened this issue 3 years ago • 1 comments

Users shouldn't be subjected to breaking golem changes for every single glow breakage (which are pretty common, because glow has a bigger API surface.)

Additionally, stdweb is not longer a priority because it is unmaintained. Only web-sys will be supported going forward.

Closes #33

ryanisaacg avatar Sep 12 '20 16:09 ryanisaacg

What if, instead of manually having the cfg for every instantiation, there was a function on blinds::Window like fn gl_initializer(&self) -> {impl FnMut(&str) -> *const c_void OR web_sys::WebGLRenderingContext} and a function on golem::Context like fn from_gl_init(init: {impl FnMut.. OR web_sys::...}). That way it's sort of just a convention (i.e. no semver dependencies), and it's still easy to create a golem context from a blinds window.

coolreader18 avatar Jan 22 '21 00:01 coolreader18