Some warning fixes

This commit is contained in:
Dynamitos committed 2023-10-29 09:20:23 +01:00
1 parent 1ca861459c
commit 7773c55e1a
10 files changed
+66 -16

No files matched your search

@@ -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;
}