LineBatch Module
A simple batcher for drawing line primitives in 2D and 3D.
Lines use VertexPositionColor and are drawn with PrimitiveType.LineList.
Types
| Type | Description |
|
|
Functions and values
| Function or value |
Description
|
|
|
|
|
|
|
Full Usage:
addLines vertices lineCount state
Parameters:
VertexPositionColor[]
-
Array of vertices (2 per line segment).
lineCount : int
-
Number of line segments to add.
state : State
|
Adds multiple line segments from a pre-built vertex array.
|
|
|
|
Begin a batch.
|
|
|
|
Return pooled arrays. Call when the batch is no longer needed.
|
|
|
|
Mibo