MCPcopy Create free account
hub / github.com/OpenEndedGroup/Field2 / lineList

Method lineList

src/main/java/field/graphics/BaseMesh.java:380–382  ·  view source on GitHub ↗

returns a new BaseMesh that draws up to numPoints vertices and numElement lines. call vertex() to get a FloatBuffer into which you can put vertex data, aux(...) to get FloatBuffers to put aux data and call elements() to connect vertices together with line segments for example: lines = li

(int numPoints, int numElements)

Source from the content-addressed store, hash-verified

378 * will give an L shaped, two line segment shape.
379 */
380 static public BaseMesh lineList(int numPoints, int numElements) {
381 return standard(numPoints, numElements, GL_LINES, 2);
382 }
383
384 /**
385 * returns a new BaseMesh that draws up to numPoints vertices and numElement lines with adjecency

Callers 6

getLineMethod · 0.95
StandardClass · 0.95
StandardLinesClass · 0.80
ShaderGroupClass · 0.80
lineBuilderMethod · 0.80
StandardClass · 0.80

Calls 1

standardMethod · 0.95

Tested by

no test coverage detected