Some warning fixes

This commit is contained in:
2023-10-29 09:20:23 +01:00
parent 1ca861459c
commit 7773c55e1a
10 changed files with 66 additions and 16 deletions
@@ -6,6 +6,7 @@ extern List<VertexData*> vertexDataList;
StaticMeshVertexData::StaticMeshVertexData(Gfx::PGraphics graphics)
: VertexData(graphics)
, head(0)
{
vertexDataList.add(this);
}
@@ -13,3 +14,10 @@ StaticMeshVertexData::StaticMeshVertexData(Gfx::PGraphics graphics)
StaticMeshVertexData::~StaticMeshVertexData()
{}
MeshId StaticMeshVertexData::allocateVertexData(uint64 numVertices)
{
MeshId res{idCounter++};
meshOffsets[res] = head;
head += numVertices;
return res;
}