Class MeshDrawWriter

java.lang.Object
icyllis.arc3d.granite.MeshDrawWriter
All Implemented Interfaces:
AutoCloseable

public class MeshDrawWriter extends Object implements AutoCloseable
  • Constructor Details

  • Method Details

    • close

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

      public void newPipelineState(int vertexBinding, int instanceBinding, int vertexStride, int instanceStride)
    • newDynamicState

      public void newDynamicState()
    • flush

      public void flush()
    • beginVertices

      public void beginVertices()
    • beginInstances

      public void beginInstances(@Nullable BufferViewInfo vertexBufferInfo, @Nullable BufferViewInfo indexBufferInfo, int vertexCount)
      Start writing instance data and bind static vertex buffer and index buffer.
      Parameters:
      vertexBufferInfo -
      indexBufferInfo -
      vertexCount -
    • reserve

      public void reserve(int count)
    • append

      public long append(int count)
      The caller must write count * stride bytes to the pointer.
      Parameters:
      count - vertex count or instance count
    • endAppender

      public void endAppender()