Skip to content

LineArray

MisterCavespider edited this page Jun 3, 2017 · 2 revisions

The LineArray is an array of lines. This means that it's size is set, and cannot be altered.

Usage

Using the LineArray is straightforward. All you need to do is to create an instance of it and put it in a Geometry.

You can use setVertex(int, Vector3f) and setColor(int, ColorRGBA) to set a vertex or color. The index is the position of the point in the array.

Example

LineArray arr = new LineArray(8);
Geometry geom = new Geometry("LineArray", arr);
...

arr.setVertex(0, Vector3f.ZERO);
arr.setColor(0, ColorRGBA.White);
Clone this wiki locally