Interface MeshBuilder


public interface MeshBuilder
Similar in purpose to BufferBuilder but simpler and not tied to NIO or any other specific implementation, plus designed to handle both static and dynamic building.

Decouples models from the vertex format(s) used by ModelRenderer to allow compatibility across diverse implementations.

  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a new Mesh instance containing all quads added to this builder and resets the builder to an empty state.
    Returns the QuadEmitter used to append quad to this mesh.
  • Method Details

    • getEmitter

      QuadEmitter getEmitter()
      Returns the QuadEmitter used to append quad to this mesh. Calling this method a second time invalidates any prior result. Do not retain references outside the context of building the mesh.
    • build

      Mesh build()
      Returns a new Mesh instance containing all quads added to this builder and resets the builder to an empty state.