Class BlockVertex

java.lang.Object
com.jozufozu.flywheel.core.vertex.BlockVertex
All Implemented Interfaces:
VertexType

public class BlockVertex extends Object implements VertexType
  • Field Details

  • Constructor Details

    • BlockVertex

      public BlockVertex()
  • Method Details

    • getLayout

      public BufferLayout getLayout()
      Description copied from interface: VertexType
      The layout of this type of vertex when buffered.
      Specified by:
      getLayout in interface VertexType
    • createWriter

      public BlockWriterUnsafe createWriter(ByteBuffer buffer)
      Description copied from interface: VertexType
      Create a writer backed by the given ByteBuffer.

      Implementors are encouraged to override the return type for ergonomics.

      Specified by:
      createWriter in interface VertexType
    • createReader

      public BlockVertexListUnsafe createReader(ByteBuffer buffer, int vertexCount)
      Description copied from interface: VertexType
      Create a view of the given ByteBuffer as if it were already filled with vertices.

      Implementors are encouraged to override the return type for ergonomics.

      Specified by:
      createReader in interface VertexType
    • getShaderHeader

      public String getShaderHeader()
      Specified by:
      getShaderHeader in interface VertexType
    • createReader

      public BlockVertexListUnsafe.Shaded createReader(ByteBuffer buffer, int vertexCount, int unshadedStartVertex)
    • createReader

      public VertexList createReader(com.mojang.blaze3d.vertex.BufferBuilder.RenderedBuffer renderedBuffer, int unshadedStartVertex)