Interface MeshView
- All Known Subinterfaces:
Mesh, MutableMesh
public interface MeshView
A bundle of quads encoded by the renderer. It may be mutable or
immutable.
Meshes are similar in purpose to List<BakedQuad> instances passed around in vanilla pipelines, but allow
the renderer to optimize their format for performance and memory allocation.
All declared methods in this interface are not thread-safe and must not be used concurrently. Subclasses may override this contract.
Only the renderer should implement or extend this interface.
-
Method Summary
Modifier and TypeMethodDescriptionvoidAccess all quads encoded in this mesh.voidoutputTo(QuadEmitter emitter) Outputs all quads in this mesh to the given quad emitter.@Range(from=0L,to=2147483647L) intsize()Returns the number of quads encoded in this mesh.
-
Method Details
-
size
@Range(from=0L,to=2147483647L) int size()Returns the number of quads encoded in this mesh. -
forEach
-
outputTo
Outputs all quads in this mesh to the given quad emitter.
-