Use existing GL.View headless context in separate GLView components

Is there any way to have a <GLView /> component use an existing GL context instead of creating its own (with the onContextCreate prop)? Looking at the examples, it seems that the favored way of displaying the results from a headless context is to make snapshots, but this has its own share of overheads (slow, dealing with the filesystem…), I wonder if there is a better way.

Hey @ksesong,

Unfortunately, it’s not possible yet and I’m a bit afraid it wouldn’t be easy to implement. Also, as far as I know, it’s not doable on web where WebGL contexts are being created from specific canvas.

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.