Package com.mojang.blaze3d.vertex
Class VertexFormat
java.lang.Object
com.mojang.blaze3d.vertex.VertexFormat
- Mappings:
Namespace Name named com/mojang/blaze3d/vertex/VertexFormatintermediary com/mojang/blaze3d/vertex/VertexFormatofficial com/mojang/blaze3d/vertex/VertexFormat
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<VertexFormatElement> private final intprivate final int[]static final intprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionVertexFormat(List<VertexFormatElement> list, List<String> list2, IntList intList, int int2) -
Method Summary
Modifier and TypeMethodDescriptionstatic VertexFormat.Builderbuilder()booleancontains(VertexFormatElement vertexFormatElement) booleangetElementName(VertexFormatElement vertexFormatElement) intintgetOffset(VertexFormatElement vertexFormatElement) int[]intinthashCode()toString()uploadImmediateIndexBuffer(ByteBuffer byteBuffer) uploadImmediateVertexBuffer(ByteBuffer byteBuffer)
-
Field Details
-
UNKNOWN_ELEMENT
public static final int UNKNOWN_ELEMENT- See Also:
-
elements
-
names
-
vertexSize
private final int vertexSize -
elementsMask
private final int elementsMask -
offsetsByElement
private final int[] offsetsByElement -
immediateDrawVertexBuffer
-
immediateDrawIndexBuffer
-
-
Constructor Details
-
VertexFormat
VertexFormat(List<VertexFormatElement> list, List<String> list2, IntList intList, int int2)
-
-
Method Details
-
builder
-
toString
-
getVertexSize
public int getVertexSize() -
getElements
-
getElementAttributeNames
-
getOffsetsByElement
public int[] getOffsetsByElement() -
getOffset
-
contains
-
getElementsMask
public int getElementsMask() -
getElementName
-
equals
-
hashCode
public int hashCode() -
uploadImmediateVertexBuffer
-
uploadImmediateIndexBuffer
-