Class SingleMeshVboRenderer.VboData

java.lang.Object
com.hbm_m.client.render.SingleMeshVboRenderer.VboData
All Implemented Interfaces:
AutoCloseable
Enclosing class:
SingleMeshVboRenderer

public static class SingleMeshVboRenderer.VboData extends Object implements AutoCloseable
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
    final int
    Stride одной вершины в byteBuffer: pos(12) + normal(12) + uv(8) + boneId(int32) = 36.
    final IntBuffer
     
    final float
    Object-space AABB of the mesh, computed once while packing vertices.
    final float
    Object-space AABB of the mesh, computed once while packing vertices.
    final float
    Object-space AABB of the mesh, computed once while packing vertices.
    final float
    Object-space AABB of the mesh, computed once while packing vertices.
    final float
    Object-space AABB of the mesh, computed once while packing vertices.
    final float
    Object-space AABB of the mesh, computed once while packing vertices.
  • Constructor Summary

    Constructors
    Constructor
    Description
    VboData(ByteBuffer byteBuffer, IntBuffer indices)
     
    VboData(ByteBuffer byteBuffer, IntBuffer indices, float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
     
    VboData(ByteBuffer byteBuffer, IntBuffer indices, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, int bytesPerVertex)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    boolean
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • byteBuffer

      public final ByteBuffer byteBuffer
    • indices

      public final IntBuffer indices
    • minX

      public final float minX
      Object-space AABB of the mesh, computed once while packing vertices.
    • minY

      public final float minY
      Object-space AABB of the mesh, computed once while packing vertices.
    • minZ

      public final float minZ
      Object-space AABB of the mesh, computed once while packing vertices.
    • maxX

      public final float maxX
      Object-space AABB of the mesh, computed once while packing vertices.
    • maxY

      public final float maxY
      Object-space AABB of the mesh, computed once while packing vertices.
    • maxZ

      public final float maxZ
      Object-space AABB of the mesh, computed once while packing vertices.
    • bytesPerVertex

      public final int bytesPerVertex
      Stride одной вершины в byteBuffer: pos(12) + normal(12) + uv(8) + boneId(int32) = 36. Старые 32-байтные буферы не поддерживаются для instanced-пути.
  • Constructor Details

    • VboData

      public VboData(ByteBuffer byteBuffer, IntBuffer indices)
    • VboData

      public VboData(ByteBuffer byteBuffer, IntBuffer indices, float minX, float minY, float minZ, float maxX, float maxY, float maxZ)
    • VboData

      public VboData(ByteBuffer byteBuffer, IntBuffer indices, float minX, float minY, float minZ, float maxX, float maxY, float maxZ, int bytesPerVertex)
  • Method Details

    • isConsumed

      public boolean isConsumed()
    • close

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