Class MutableTemplateMesh
java.lang.Object
com.simibubi.create.foundation.render.TemplateMesh
com.simibubi.create.foundation.render.MutableTemplateMesh
-
Field Summary
Fields inherited from class com.simibubi.create.foundation.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
Constructors -
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) 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)
-
-
Method Details
-
copyFrom
-
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
-