Package net.createmod.catnip.render
Class MutableTemplateMesh
java.lang.Object
net.createmod.catnip.render.TemplateMesh
net.createmod.catnip.render.MutableTemplateMesh
-
Field Summary
Fields inherited from class net.createmod.catnip.render.TemplateMesh
BYTE_STRIDE, COLOR_OFFSET, data, INT_STRIDE, LIGHT_OFFSET, NORMAL_OFFSET, OVERLAY_OFFSET, U_OFFSET, V_OFFSET, vertexCount, X_OFFSET, Y_OFFSET, Z_OFFSET -
Constructor Summary
ConstructorsConstructorDescriptionMutableTemplateMesh(int vertexCount) MutableTemplateMesh(int[] data) MutableTemplateMesh(com.mojang.blaze3d.vertex.MeshData data) -
Method Summary
Modifier and TypeMethodDescriptionvoidcolor(int index, int color) voidcopyFrom(int index, TemplateMesh template) voidlight(int index, int light) voidnormal(int index, int normal) voidoverlay(int index, int overlay) static voidtransferFromVertexData(int srcIndex, int dstIndex, int vertexCount, MutableTemplateMesh mutableMesh, ByteBuffer vertexBuffer, int stride) voidu(int index, float u) voidv(int index, float v) voidx(int index, float x) voidy(int index, float y) voidz(int index, float z)
-
Constructor Details
-
MutableTemplateMesh
public MutableTemplateMesh(int[] data) -
MutableTemplateMesh
public MutableTemplateMesh(int vertexCount) -
MutableTemplateMesh
public MutableTemplateMesh(com.mojang.blaze3d.vertex.MeshData data)
-
-
Method Details
-
copyFrom
-
transferFromVertexData
public static void transferFromVertexData(int srcIndex, int dstIndex, int vertexCount, MutableTemplateMesh mutableMesh, ByteBuffer vertexBuffer, int stride) -
x
public void x(int index, float x) -
y
public void y(int index, float y) -
z
public void z(int index, float z) -
color
public void color(int index, int color) -
u
public void u(int index, float u) -
v
public void v(int index, float v) -
overlay
public void overlay(int index, int overlay) -
light
public void light(int index, int light) -
normal
public void normal(int index, int normal) -
toImmutable
-