Package com.hbm_m.client.render
Class AbstractGpuMesh
java.lang.Object
com.hbm_m.client.render.AbstractGpuMesh
- Direct Known Subclasses:
InstancedStaticPartRenderer,SingleMeshVboRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected intprotected intprotected booleanПри true - init уже провалился, не пытаемся снова и не логируемprotected booleanprotected final float[]Object-space AABB of this mesh: {minX, minY, minZ, maxX, maxY, maxZ}.protected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcleanup()Освобождение GL-ресурсов (VAO/VBO/EBO) на render-треде.float[]protected void
-
Field Details
-
vaoId
protected int vaoId -
vboId
protected int vboId -
eboId
protected int eboId -
indexCount
protected int indexCount -
initialized
protected boolean initialized -
objBbox
protected final float[] objBboxObject-space AABB of this mesh: {minX, minY, minZ, maxX, maxY, maxZ}. Populated fromSingleMeshVboRenderer.VboDatawhen the mesh is built. Used for the 8-corner trilinear lightmap sampling so the shader can interpolate per-vertex brightness from corner samples taken at the bbox' world-space corners. -
initFailed
protected boolean initFailedПри true - init уже провалился, не пытаемся снова и не логируем
-
-
Constructor Details
-
AbstractGpuMesh
public AbstractGpuMesh()
-
-
Method Details
-
getObjBbox
public float[] getObjBbox() -
setObjBboxFrom
-
cleanup
public void cleanup()Освобождение GL-ресурсов (VAO/VBO/EBO) на render-треде. Конкретные рендереры должны вызывать этот метод из своего cleanup().
-