Class StaticMesh

java.lang.Object
lol.trq.helios.mesh.StaticMesh
All Implemented Interfaces:
AutoCloseable

public final class StaticMesh extends Object implements 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

      public MeshFormat format()
      Returns the vertex format.
      Returns:
      the 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:
      close in interface AutoCloseable