Interface Mesh
public interface Mesh
A bundle of one or more
QuadView instances encoded by the renderer,
typically via Renderer.meshBuilder().
Similar in purpose to the List<BakedQuad> instances returned by BakedModel, but
affords the renderer the ability to optimize the format for performance
and memory allocation.
Only the renderer should implement or extend this interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidUse to access all of the quads encoded in this mesh.default voidoutputTo(QuadEmitter emitter) Outputs all quads in this mesh to the given quad emitter.
-
Method Details
-
forEach
Use to access all of the quads encoded in this mesh. The quad instances sent to the consumer will likely be thread-local/reused and should never be retained by the consumer. -
outputTo
Outputs all quads in this mesh to the given quad emitter.- API Note:
- The default implementation will be removed in the next breaking release.
-