PointDrawer

A utility class for rendering points in 2D and 3D space using custom styles, shaders, and batching. Optimizes point rendering by handling vertex buffers and batching mechanisms.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun drawPoint(drawContext: DrawContext, drawStyle: DrawStyle, x: Double, y: Double, z: Double)

Draws a single 3D point using the specified drawing context and style at the given coordinates.

Link copied to clipboard
@JvmName(name = "drawPoints2D")
fun drawPoints(drawContext: DrawContext, drawStyle: DrawStyle, positions: List<Vector2>)

Draws a list of 2D points using the specified drawing context and style.

@JvmName(name = "drawPoints3D")
fun drawPoints(drawContext: DrawContext, drawStyle: DrawStyle, positions: List<Vector3>)

Draws a list of 3D points using the specified drawing context and style.

fun drawPoints(drawContext: DrawContext, drawStyle: DrawStyle, batch: PointBatch, count: Int)

Draws a batch of points using the specified drawing context and style.