Currently in Babylon Native, the lifetime of the engine is tied to a single view. We should support multi-view. I would imagine this working by:
- Having a small
Babylon object that controls the lifetime of the engine.
- Allow for multiple native views, where each one effectively registers a view exposed to Babylon.js.
- On the js side, basically make it work the same as multi-view with an HTML DOM (where there are multiple canvases (one per view) which are associated with cameras, and the render loop just renders each view). I imagine to do this we might need to introduce the concept of a view identity or name that can be matched up between the native side (where an
EngineView is declared) and the js side (where we try to render a camera to a view).
Currently in Babylon Native, the lifetime of the engine is tied to a single view. We should support multi-view. I would imagine this working by:
Babylonobject that controls the lifetime of the engine.EngineViewis declared) and the js side (where we try to render a camera to a view).