类 VertexFormat

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

public class VertexFormat extends Object
  • 字段详细资料

    • 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
    • immediateDrawVertexBuffer

      @Nullable private VertexBuffer immediateDrawVertexBuffer
  • 构造器详细资料

  • 方法详细资料

    • toString

      public String toString()
      覆盖:
      toString 在类中 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 pOther)
      覆盖:
      equals 在类中 Object
    • hashCode

      public int hashCode()
      覆盖:
      hashCode 在类中 Object
    • setupBufferState

      public void setupBufferState()
    • _setupBufferState

      private void _setupBufferState()
    • clearBufferState

      public void clearBufferState()
    • _clearBufferState

      private void _clearBufferState()
    • getImmediateDrawVertexBuffer

      public VertexBuffer getImmediateDrawVertexBuffer()
    • 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)