Package com.mojang.blaze3d.vertex
Class VertexFormat
java.lang.Object
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 VertexBufferprivate final int[]static final intprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionVertexFormat(List<VertexFormatElement> p_350393_, List<String> p_350887_, it.unimi.dsi.fastutil.ints.IntList p_350817_, int p_350310_) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidprivate voidstatic VertexFormat.Builderbuilder()voidbooleancontains(VertexFormatElement p_351022_) booleancom.google.common.collect.ImmutableMap<String, VertexFormatElement> getElementName(VertexFormatElement p_350904_) intintgetOffset(VertexFormatElement p_350713_) int[]intbooleanhasColor()inthashCode()booleanbooleanbooleanhasUV(int which) voidtoString()
-
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
-
-
Constructor Details
-
VertexFormat
VertexFormat(List<VertexFormatElement> p_350393_, List<String> p_350887_, it.unimi.dsi.fastutil.ints.IntList p_350817_, int p_350310_)
-
-
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() -
setupBufferState
public void setupBufferState() -
_setupBufferState
private void _setupBufferState() -
clearBufferState
public void clearBufferState() -
_clearBufferState
private void _clearBufferState() -
getImmediateDrawVertexBuffer
-
getElementMapping
-
hasPosition
public boolean hasPosition() -
hasNormal
public boolean hasNormal() -
hasColor
public boolean hasColor() -
hasUV
public boolean hasUV(int which)
-