Package com.mojang.blaze3d.vertex
Class VertexFormat
java.lang.Object
com.mojang.blaze3d.vertex.VertexFormat
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate com.google.common.collect.ImmutableMap<String,VertexFormatElement>
private com.google.common.collect.ImmutableList<VertexFormatElement>
private int
private it.unimi.dsi.fastutil.ints.IntList
private int
private int
private int
-
Constructor Summary
ConstructorDescriptionVertexFormat(com.google.common.collect.ImmutableMap<String,VertexFormatElement> p_166910_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate void
private void
void
boolean
com.google.common.collect.ImmutableList<String>
com.google.common.collect.ImmutableMap<String,VertexFormatElement>
com.google.common.collect.ImmutableList<VertexFormatElement>
int
int
getOffset(int index)
int
int
int
int
boolean
hasColor()
int
hashCode()
boolean
boolean
boolean
hasUV(int which)
void
toString()
-
Field Details
-
elements
-
elementMapping
-
offsets
private final it.unimi.dsi.fastutil.ints.IntList offsets -
vertexSize
private final int vertexSize -
vertexArrayObject
private int vertexArrayObject -
vertexBufferObject
private int vertexBufferObject -
indexBufferObject
private int indexBufferObject
-
-
Constructor Details
-
VertexFormat
-
-
Method Details
-
toString
-
getIntegerSize
public int getIntegerSize() -
getVertexSize
public int getVertexSize() -
getElements
-
getElementAttributeNames
-
equals
-
hashCode
public int hashCode() -
setupBufferState
public void setupBufferState() -
_setupBufferState
private void _setupBufferState() -
clearBufferState
public void clearBufferState() -
_clearBufferState
private void _clearBufferState() -
getOrCreateVertexArrayObject
public int getOrCreateVertexArrayObject() -
getOrCreateVertexBufferObject
public int getOrCreateVertexBufferObject() -
getOrCreateIndexBufferObject
public int getOrCreateIndexBufferObject() -
getElementMapping
-
getOffset
public int getOffset(int index) -
hasPosition
public boolean hasPosition() -
hasNormal
public boolean hasNormal() -
hasColor
public boolean hasColor() -
hasUV
public boolean hasUV(int which)
-