public interface MeshBuilder
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.
Modifier and Type | Method and Description |
---|---|
Mesh |
build()
Returns a new
Mesh instance containing all
quads added to this builder and resets the builder to an empty state. |
QuadEmitter |
getEmitter()
Returns the
QuadEmitter used to append quad to this mesh. |
QuadEmitter getEmitter()
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.