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 TypeMethodDescriptionbuild()Returns a newMeshinstance containing all quads added to this builder and resets the builder to an empty state.Returns theQuadEmitterused to append quad to this mesh.
-
Method Details
-
getEmitter
QuadEmitter getEmitter()Returns theQuadEmitterused 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 newMeshinstance containing all quads added to this builder and resets the builder to an empty state.
-