Class VertexFormat.Builder
java.lang.Object
com.mojang.blaze3d.vertex.VertexFormat.Builder
- Enclosing class:
VertexFormat
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<VertexFormatElement> private intprivate final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAttribute(String name, int offset, int stride, GpuFormat elementFormat, int columnCount) addAttribute(String name, int stride, GpuFormat elementFormat) addAttribute(String name, GpuFormat elementFormat) addAttribute(String name, GpuFormat elementFormat, int columnCount) build()private voidcreateAttribute(String name, int offset, GpuFormat elementFormat) private voidvalidateUniqueName(String name)
-
Field Details
-
elements
-
offset
private int offset -
stepRate
private final int stepRate
-
-
Constructor Details
-
Builder
private Builder(int stepRate)
-
-
Method Details
-
createAttribute
-
validateUniqueName
-
addAttribute
-
addAttribute
-
addAttribute
-
addAttribute
public VertexFormat.Builder addAttribute(String name, int offset, int stride, GpuFormat elementFormat, int columnCount) -
build
-