Some warning fixes
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user