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.

Functions

build
Link copied to clipboard
abstract Mesh build()
Returns a new Mesh instance containing allquads added to this builder and resets the builder to an empty state.
getEmitter
Link copied to clipboard
abstract 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.

Sources

jvm source
Link copied to clipboard