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

Method pointList

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

returns a new BaseMesh that draws up to numPoints. call vertex() to get a FloatBuffer into which you can put vertex data, aux(...) to get FloatBuffers to put aux data. for example: list = pointList(2).vertex().put([0,0,0]).put([1,1,1]) will give you a point list that draws two points

(int numPoints)

Source from the content-addressed store, hash-verified

362 * will give you a point list that draws two points, one at the origin, one at 1,1,1
363 */
364 static public BaseMesh pointList(int numPoints) {
365 return standard(numPoints, 0, GL_POINTS, 0);
366 }
367
368 /**
369 * returns a new BaseMesh that draws up to numPoints vertices and numElement lines.

Callers 4

getPointsMethod · 0.95
StandardClass · 0.95
ShaderGroupClass · 0.80
pointBuilderMethod · 0.80

Calls 1

standardMethod · 0.95

Tested by

no test coverage detected