Files
Seele/src/Engine/Graphics/StaticMeshVertexData.cpp
T

24 lines
466 B
C++
Raw Normal View History

2023-10-07 19:29:53 +02:00
#include "StaticMeshVertexData.h"
using namespace Seele;
2023-10-26 18:37:29 +02:00
extern List<VertexData*> vertexDataList;
StaticMeshVertexData::StaticMeshVertexData(Gfx::PGraphics graphics)
: VertexData(graphics)
2023-10-29 09:20:23 +01:00
, head(0)
2023-10-26 18:37:29 +02:00
{
vertexDataList.add(this);
}
2023-10-07 19:29:53 +02:00
StaticMeshVertexData::~StaticMeshVertexData()
{}
2023-10-29 09:20:23 +01:00
MeshId StaticMeshVertexData::allocateVertexData(uint64 numVertices)
{
MeshId res{idCounter++};
meshOffsets[res] = head;
head += numVertices;
return res;
}