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

Method triangleList

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

returns a new BaseMesh that draws up to numPoints vertices and numElement lines with adjecency 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:

(int numPoints, int numElements)

Source from the content-addressed store, hash-verified

427 * will give an triangle.
428 */
429 static public BaseMesh triangleList(int numPoints, int numElements) {
430 return standard(numPoints, numElements, GL_TRIANGLES, 3);
431 }
432
433 /**
434 * destroy this mesh and all OpenGL resources associated with it.

Callers 15

getMeshMethod · 0.95
FontSupportMethod · 0.95
TextureLoaderMethod · 0.95
StandardClass · 0.95
TextureLoaderMethod · 0.95
drawIntoMethod · 0.95
compositeWithMethod · 0.95
blurIntoMethod · 0.95
defaultMeshMethod · 0.95
webcam.box.jsFile · 0.80

Calls 1

standardMethod · 0.95

Tested by

no test coverage detected