-
Notifications
You must be signed in to change notification settings - Fork 0
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.
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.
LineArray arr = new LineArray(8);
Geometry geom = new Geometry("LineArray", arr);
...
arr.setVertex(0, Vector3f.ZERO);
arr.setColor(0, ColorRGBA.White);