trying to integrate legacy index buffer rendering

This commit is contained in:
2023-11-06 22:24:40 +01:00
parent 4c567b60f3
commit 46a0befb80
16 changed files with 203 additions and 87 deletions
+7 -1
View File
@@ -28,7 +28,8 @@ void VertexData::updateMesh(const Component::Transform& transform, PMesh mesh)
.id = mesh->id,
.instance = InstanceData {
.transformMatrix = transform.toMatrix(),
}
},
.indexBuffer = mesh->indexBuffer,
});
}
@@ -150,6 +151,11 @@ MeshId VertexData::allocateVertexData(uint64 numVertices)
return res;
}
uint32 VertexData::getMeshOffset(MeshId id)
{
return meshOffsets[id];
}
List<VertexData*> vertexDataList;
List<VertexData*> VertexData::getList()