trying to integrate legacy index buffer rendering
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user