Class VertexFormat

java.lang.Object
com.mojang.blaze3d.vertex.VertexFormat

public class VertexFormat extends Object
  • Field Details

    • elements

      private final com.google.common.collect.ImmutableList<VertexFormatElement> elements
    • elementMapping

      private final com.google.common.collect.ImmutableMap<String,​VertexFormatElement> 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

  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getIntegerSize

      public int getIntegerSize()
    • getVertexSize

      public int getVertexSize()
    • getElements

      public com.google.common.collect.ImmutableList<VertexFormatElement> getElements()
    • getElementAttributeNames

      public com.google.common.collect.ImmutableList<String> getElementAttributeNames()
    • equals

      public boolean equals(Object p_86026_)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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

      public com.google.common.collect.ImmutableMap<String,​VertexFormatElement> 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)