Package com.hbm_m.client.render
Class SingleMeshVboRenderer.VboData
java.lang.Object
com.hbm_m.client.render.SingleMeshVboRenderer.VboData
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
- SingleMeshVboRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal ByteBufferfinal intStride одной вершины вbyteBuffer: pos(12) + normal(12) + uv(8) + boneId(int32) = 36.final IntBufferfinal floatObject-space AABB of the mesh, computed once while packing vertices.final floatObject-space AABB of the mesh, computed once while packing vertices.final floatObject-space AABB of the mesh, computed once while packing vertices.final floatObject-space AABB of the mesh, computed once while packing vertices.final floatObject-space AABB of the mesh, computed once while packing vertices.final floatObject-space AABB of the mesh, computed once while packing vertices. -
Constructor Summary
ConstructorsConstructorDescriptionVboData(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
-
Field Details
-
byteBuffer
-
indices
-
minX
public final float minXObject-space AABB of the mesh, computed once while packing vertices. -
minY
public final float minYObject-space AABB of the mesh, computed once while packing vertices. -
minZ
public final float minZObject-space AABB of the mesh, computed once while packing vertices. -
maxX
public final float maxXObject-space AABB of the mesh, computed once while packing vertices. -
maxY
public final float maxYObject-space AABB of the mesh, computed once while packing vertices. -
maxZ
public final float maxZObject-space AABB of the mesh, computed once while packing vertices. -
bytesPerVertex
public final int bytesPerVertexStride одной вершины вbyteBuffer: pos(12) + normal(12) + uv(8) + boneId(int32) = 36. Старые 32-байтные буферы не поддерживаются для instanced-пути.
-
-
Constructor Details
-
VboData
-
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:
closein interfaceAutoCloseable
-