22 Commits

Author SHA1 Message Date
Martin Booth
37821b421b Replace usage of legacy context api and remove loseGL
React double mounts/unmounts components and loseGL is not compatible with that
Moved usage of the legacy context to newer context apis
2025-01-01 17:36:17 -08:00
Gaëtan Renaudeau
06d5648599
Make gl-react-dom fallback to "webgl" when "webgl2" fails
By default, we'll do "auto" compatible mode until Safari supports webgl2.
This behavior can be overriden if needed by forcing version="webgl2" or version="webgl" on the Surface. it will implicitly be version="auto" until 100% browser supports webgl2.
2021-03-13 20:12:38 +01:00
Gaëtan Renaudeau
be57c71188
gl-react-dom to allow Surface to be absolute positionned
Fixes #238
2020-12-26 18:50:53 +01:00
Gaëtan Renaudeau
b116482240
Support WebGL2 2020-12-26 16:04:56 +01:00
Gaëtan Renaudeau
f655a83469
Upgrade libs and prettier 2020-12-23 21:18:54 +01:00
Gaëtan Renaudeau
6002ea969c
Update dependencies to latest libaries 2019-08-14 13:45:59 +08:00
Gaëtan Renaudeau
dab6ded6d0 typecheck window is here (attempt to fix next.js) 2018-02-25 10:01:39 +01:00
Gaëtan Renaudeau
f8e462233d internal refactoring. fixes https://github.com/gre/gl-react/issues/134
the texture loader system was externalized into a set of libs webgltexture-loader*
2017-09-05 17:15:15 +02:00
Gaëtan Renaudeau
6b8fac5a72 fixes https://github.com/gre/gl-react/issues/147
we'll work later on the RN/Expo implementation implication of that
2017-09-01 18:35:59 +02:00
Gaëtan Renaudeau
843edf4ce1 fix legacy support of uri to have getSize working 2017-08-29 16:52:33 +02:00
Gaëtan Renaudeau
a7123da63c fixed gl-react-dom ImageTextureLoader getSize feature 2017-08-29 16:27:47 +02:00
Gaëtan Renaudeau
16d46c50cf wip 2017-07-05 14:53:52 +02:00
Gaëtan Renaudeau
b506c56061 prettier pass: don't use es5 trailing comma 2017-07-04 18:15:29 +02:00
Gaëtan Renaudeau
0f500100aa update flow & prettier 2017-07-04 16:05:11 +02:00
Gaëtan Renaudeau
837647e7c3 prettier update pass 2017-05-15 12:34:20 +02:00
Gaëtan Renaudeau
cff1bd7e4c update dev deps & drop eslint 2017-04-30 17:07:19 +02:00
Gaëtan Renaudeau
84b600a373 move raf into implementations https://github.com/gre/gl-react/issues/98 2017-04-30 16:25:22 +02:00
Gaëtan Renaudeau
c16cebc165 Unify cookbook-rn & cookbook-expo code! also prettier pass on the proj 2017-04-30 15:21:34 +02:00
Gaëtan Renaudeau
d4ea74d922 fixes https://github.com/gre/gl-react/issues/97
upgrade some projects.. next release will be 3.0.0 ! not that it's fully ready yet (will still be in @next, but in order to get semver on track.. & so the projects can properly dep on the right version)
there were currently an issue with gl-react@3.0.0-alpha1 being installed instead of gl-react@3.0.0-alpha.8 when not depending on exact version, 'cause it's just not very compliant with semver
2017-04-23 17:12:42 +02:00
Gaëtan Renaudeau
4d4b567726 fundamentally refactor the way width/height works
in gl-react: the context no longer have {width,height} but have {glSizable} which is an object with a getGLSize function. the size is dynamically calculated in the graph & using gl.drawingBufferWidth / gl.drawingBufferHeight which allows more flexible implementations.
in gl-react-dom: nothing fundamentally changes
in gl-react-native/exponent: Surface no longer takes width/height props! instead, it is just the style object, like any usual React Native view. e.g. you can use flexbox!
2017-03-02 14:42:21 +01:00
Gaëtan Renaudeau
511e78a0cf wip on refactoring without using gl-fbo & gl-texture2d
some tests still don't pass, got to fix all cases.
however, it's a first step toward better controls of gl calls (and less complexity of that)
the RN impl is a bit more supported to match Exponent implemented subset
2016-12-27 20:37:33 +01:00
Gaëtan Renaudeau
4600bcedd0 initial release 2016-12-02 10:55:17 +01:00