Base class for Visuals that use WebGL for the visualization.
Inheritance Hierarchy
Visual
WebGLVisual
Remarks
Note that instances of this class cannot be used anywhere where a Visual is required. The visualization is implemented by the render method. This means that this kind of visual does not work in a SvgVisualGroup and wrapping the visual will not work as there is no SVGElement that could be put into another SVG container. These kind of visuals can be used at the top-level of a CanvasComponent's ICanvasObjects, only.
Type Details
- yfiles module
- view-component
- yfiles-umd modules
- All view modules
- Legacy UMD name
- yfiles.view.WebGLVisual
See Also
WebGLVisual.render,
Predefined Visuals,
The WebGL Rendering API,
When should I avoid WebGL rendering?
Methods
Renders into the context using WebGL operations.
Remarks
Implementations should not destroy the context's state, but should make sure to restore the state to the previously active state.
Parameters
options - Object
A map of options to pass to the method.
A map of options to pass to the method.
- ctx - IRenderContext
- The render context of the CanvasComponent
- gl - WebGLRenderingContext
- The WebGL Rendering context to use for rendering.