Class StaticMesh
java.lang.Object
lol.trq.helios.mesh.StaticMesh
- All Implemented Interfaces:
AutoCloseable
A mesh uploaded once into its own
GL_STATIC_DRAW buffers and vertex array. Built by
MeshRecorder.build(MeshRenderer), drawn by MeshRenderer.draw(StaticMesh, float[]). Close it when
it is no longer needed.-
Method Details
-
format
-
quads
public int quads()Returns the number of quads; a line counts as one.- Returns:
- the quad count
-
close
public void close()Deletes the buffers and the vertex array.- Specified by:
closein interfaceAutoCloseable
-