Class VertexBuffer

java.lang.Object
com.mojang.blaze3d.vertex.VertexBuffer
All Implemented Interfaces:
AutoCloseable

public class VertexBuffer extends Object implements AutoCloseable
  • Field Details

    • vertextBufferId

      private int vertextBufferId
    • indexBufferId

      private int indexBufferId
    • indexType

      private VertexFormat.IndexType indexType
    • arrayObjectId

      private int arrayObjectId
    • indexCount

      private int indexCount
    • mode

      private VertexFormat.Mode mode
    • sequentialIndices

      private boolean sequentialIndices
    • format

      private VertexFormat format
  • Constructor Details

    • VertexBuffer

      public VertexBuffer()
  • Method Details

    • bind

      public void bind()
    • upload

      public void upload(BufferBuilder p_85926_)
    • uploadLater

      public CompletableFuture<Void> uploadLater(BufferBuilder p_85933_)
    • upload_

      private void upload_(BufferBuilder p_85936_)
    • bindVertexArray

      private void bindVertexArray()
    • unbindVertexArray

      public static void unbindVertexArray()
    • draw

      public void draw()
    • drawWithShader

      public void drawWithShader(Matrix4f p_166868_, Matrix4f p_166869_, ShaderInstance p_166870_)
    • _drawWithShader

      public void _drawWithShader(Matrix4f p_166877_, Matrix4f p_166878_, ShaderInstance p_166879_)
    • drawChunkLayer

      public void drawChunkLayer()
    • unbind

      public static void unbind()
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • getFormat

      public VertexFormat getFormat()