WebGL rendering strategy for a Viewer.

See @xeokit/webglrenderer for usage.

Implements

Constructors

Properties

renderContext: RenderContext
rendererObjects: { [key: string]: RendererObject }

Interfaces through which each !ViewObject | ViewObject shows/hides/highlights/selects/xrays/colorizes its SceneObject within the WebGLRenderer that's configured on its !Viewer | Viewer.

renderStats: RenderStats
tileManager: WebGLTileManager

Accessors

Methods

  • Internal

    Renders a frame for a View.

    Parameters

    • viewIndex: number

      Handle to the View.

    • Optionalparams: { force?: boolean; opaqueOnly?: boolean }
      • Optionalforce?: boolean

        True to force a render, else only render if needed.

      • OptionalopaqueOnly?: boolean

    Returns void | SDKError

    SDKError

    • No View is currently attached to this Renderer.
    • Can't find a View attached to this Renderer with the given handle.

Events

onCompiled: EventEmitter<WebGLRenderer, boolean>
onDestroyed: EventEmitter<WebGLRenderer, boolean>