Package com.mojang.blaze3d.vertex
Class VertexFormat
java.lang.Object
com.mojang.blaze3d.vertex.VertexFormat
- All Implemented Interfaces:
IForgeVertexFormat
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static enum
static enum
-
Field Summary
Modifier and TypeFieldDescriptionprivate final com.google.common.collect.ImmutableMap
<String, VertexFormatElement> private final List
<VertexFormatElement> private final int
private VertexBuffer
private final int[]
static final int
private final int
-
Constructor Summary
ConstructorDescriptionVertexFormat
(List<VertexFormatElement> p_343616_, List<String> p_345241_, it.unimi.dsi.fastutil.ints.IntList p_345522_, int p_344162_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
static VertexFormat.Builder
builder()
void
boolean
contains
(VertexFormatElement p_345196_) boolean
com.google.common.collect.ImmutableMap
<String, VertexFormatElement> getElementName
(VertexFormatElement p_345336_) int
int
getOffset
(int index) int
getOffset
(VertexFormatElement p_342517_) int[]
int
int
hashCode()
void
toString()
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraftforge.client.extensions.IForgeVertexFormat
hasColor, hasNormal, hasPosition, hasUV
-
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
-
elementMapping
-
-
Constructor Details
-
VertexFormat
VertexFormat(List<VertexFormatElement> p_343616_, List<String> p_345241_, it.unimi.dsi.fastutil.ints.IntList p_345522_, int p_344162_)
-
-
Method Details
-
builder
-
toString
-
getVertexSize
public int getVertexSize() -
getElements
- Specified by:
getElements
in interfaceIForgeVertexFormat
-
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
-
getOffset
public int getOffset(int index)
-