MeshBuilderImpl

public class MeshBuilderImpl implements MeshBuilder

Our implementation of MeshBuilder, used for static mesh creation and baking. Not much to it - mainly it just needs to grow the int[] array as quads are appended and maintain/provide a properly-configured net.fabricmc.fabric.api.renderer.v1.mesh.MutableQuadView instance. All the encoding and other work is handled in the quad base classes. The one interesting bit is in emit.

Functions

build
Link copied to clipboard
abstract Mesh build()
Mesh build()
getEmitter
Link copied to clipboard
abstract QuadEmitter getEmitter()
QuadEmitter getEmitter()

Sources

jvm source
Link copied to clipboard