Base class for Visuals that use WebGL version 1 for rendering the visualization onto a WebGLRenderingContext.
Inheritance Hierarchy
Visual
WebGLVisual
Remarks
The visualization is implemented by the render method. Note that instances of this class cannot be used everywhere where a raw Visual is required. 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 IRenderTreeElements, only. Note that this is not the visual that is used by WebGLGraphModelManager, which uses WebGL2Visuals under the hood.
Type Details
- yFiles module
- view
See Also
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.