Package com.mojang.blaze3d.vertex
Class VertexFormat
java.lang.Object
com.mojang.blaze3d.vertex.VertexFormat
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate final List
<VertexFormatElement> private final int
private VertexBuffer
private final int[]
static final int
private final int
-
Constructor Summary
ConstructorDescriptionVertexFormat
(List<VertexFormatElement> p_350393_, List<String> p_350887_, it.unimi.dsi.fastutil.ints.IntList p_350817_, int p_350310_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
static VertexFormat.Builder
builder()
void
boolean
contains
(VertexFormatElement p_351022_) boolean
com.google.common.collect.ImmutableMap
<String, VertexFormatElement> getElementName
(VertexFormatElement p_350904_) int
int
getOffset
(VertexFormatElement p_350713_) int[]
int
boolean
hasColor()
int
hashCode()
boolean
boolean
boolean
hasUV
(int which) void
toString()
-
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)
-