InternalCreates a ViewRenderState.
Shared render context used for WebGL access and shared resources.
Picking manager used by this view.
Render manager used to draw this view.
The logical view being wrapped.
Per-view render targets/buffers (eg. snapshot render buffers).
Cached DOM bounds of view.htmlElement.
The logical view this renderer view represents.
Begins a snapshot operation for this view.
Intended to prepare any render buffers and state required to render the view into an offscreen snapshot target (eg. for displaying the last rendered frame when the view is inactive).
Optionalparams: { height: number; width: number }Optional snapshot parameters.
Snapshot height in CSS pixels.
Snapshot width in CSS pixels.
This method is currently a stub. A typical implementation might:
<img>)
Renderer-side wrapper for a View.
A ViewRenderState bundles the per-view resources needed by the WebGL renderer, including:
Remarks
The renderer uses a single shared WebGL canvas that is moved/resized to the currently active view. ViewRenderState stores per-view buffers so inactive views can still keep a last-frame snapshot.