MeshLineDrawer

A utility class for rendering mesh-based lines in graphical contexts. This class provides methods for drawing line segments and strips with customizable width, color, and other visual properties using shaders.

The implementation leverages a shader-driven approach for efficient rendering. It maintains internal management of vertex buffers and shaders to handle the drawing of complex line geometries.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
fun drawLineSegments(    drawContext: DrawContext,     drawStyle: DrawStyle,     segments: List<Vector3>,     weights: List<Double> = emptyList(),     colors: List<ColorRGBa> = emptyList())
Link copied to clipboard
fun drawLineStrips(    drawContext: DrawContext,     drawStyle: DrawStyle,     strips: List<List<Vector3>>,     weights: List<Double> = emptyList(),     colors: List<ColorRGBa> = emptyList(),     closed: List<Boolean> = emptyList())